Forum: Ruby Setting UserAgent for Ruby/RubyGems/Bundler

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F6642797870d2dd20e4a5c8df347562c?d=identicon&s=25 vol7ron forum (vol7ron)
on 2013-06-06 21:12
I'd like to set the useragent to something else when calling bundler, or
downloading/updating gems from anywhere w/in Ruby/Rails.

Is the rubygems/remote_fetcher.rb the proper place to override the
default ua?  Could this be done in some other place?  For example can
"Gem::RemoteFetcher.new.user_agent" be set globally?

I'm a neophyte and still learning Ruby, so I appreciate any help/info to
get up and running.

Also asked here:
http://stackoverflow.com/questions/16966461/ruby-h...
F6642797870d2dd20e4a5c8df347562c?d=identicon&s=25 vol7ron forum (vol7ron)
on 2013-06-06 21:36
https://github.com/bundler/bundler/issues/2493

Regarding Bundler, it looks like it's using Net::HTTP and there may be a
commit coming to set the UA.
This topic is locked and can not be replied to.