summaryrefslogtreecommitdiff
path: root/lib/bundler/fetcher.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-02-01 17:36:33 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-02-01 17:36:33 -0600
commit4764a822af4925b1f086605e4011daa194a7f64d (patch)
tree338f870b3daba99ed7169f55fafb454a3fc12d9e /lib/bundler/fetcher.rb
parentf91b2367ec1c354d4a1c545ebba9b09d9a8d0761 (diff)
downloadbundler-4764a822af4925b1f086605e4011daa194a7f64d.tar.gz
[Fetcher] Update user agent construction for new RubyVersion API
Diffstat (limited to 'lib/bundler/fetcher.rb')
-rw-r--r--lib/bundler/fetcher.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index 348c29dcbe..dfadfc0631 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -166,14 +166,14 @@ module Bundler
agent = String.new("bundler/#{Bundler::VERSION}")
agent << " rubygems/#{Gem::VERSION}"
- agent << " ruby/#{ruby.version}"
+ agent << " ruby/#{ruby.versions}"
agent << " (#{ruby.host})"
agent << " command/#{ARGV.first}"
if ruby.engine != "ruby"
# engine_version raises on unknown engines
engine_version = begin
- ruby.engine_version
+ ruby.engine_versions
rescue
"???"
end