lib/travis/client.rb in travis-1.6.15.travis.552.6 vs lib/travis/client.rb in travis-1.6.15.travis.554.6
- old
+ new
@@ -26,10 +26,10 @@
module Client
ORG_URI = 'https://api.travis-ci.org/'
PRO_URI = 'https://api.travis-ci.com/'
def self.new(options = {})
- options['uri'] ||= ORG_URI if options.is_a? Hash
+ options[:uri] ||= ORG_URI if options.is_a? Hash and not options['uri']
Session.new(options)
end
end
end