Forum: Ruby Setting UserAgent for Ruby/RubyGems/Bundler

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.