lib/travis/tools/token_finder.rb in travis-1.5.6.travis.320.4 vs lib/travis/tools/token_finder.rb in travis-1.5.6.travis.323.4

- old
+ new

@@ -12,10 +12,11 @@ end def initialize(options = {}) self.netrc = options[:netrc] || Netrc.default_path self.hub = options[:hub] || ENV['HUB_CONFIG'] || '~/.config/hub' - self.github = options[:github] || 'github.com' + self.github = options[:github] + self.github = 'github.com' if github.nil? or github == 'api.github.com' self.explode = options[:explode] end def hub=(file) @hub = File.expand_path(file)