diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-02-01 17:36:33 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-02-01 17:36:33 -0600 |
commit | 4764a822af4925b1f086605e4011daa194a7f64d (patch) | |
tree | 338f870b3daba99ed7169f55fafb454a3fc12d9e /lib/bundler/fetcher.rb | |
parent | f91b2367ec1c354d4a1c545ebba9b09d9a8d0761 (diff) | |
download | bundler-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.rb | 4 |
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 |