lib/bundler/source/git.rb in bundler-1.7.15 vs lib/bundler/source/git.rb in bundler-1.8.0.pre
- old
+ new
@@ -18,11 +18,11 @@
@allow_remote = false
# Stringify options that could be set as symbols
%w(ref branch tag revision).each{|k| options[k] = options[k].to_s if options[k] }
- @uri = options["uri"]
+ @uri = options["uri"] || ''
@branch = options["branch"]
@ref = options["ref"] || options["branch"] || options["tag"] || 'master'
@submodules = options["submodules"]
@name = options["name"]
@version = options["version"]
@@ -42,9 +42,13 @@
%w(ref branch tag submodules).each do |opt|
out << " #{opt}: #{options[opt]}\n" if options[opt]
end
out << " glob: #{@glob}\n" unless @glob == DEFAULT_GLOB
out << " specs:\n"
+ end
+
+ def hash
+ [self.class, uri, ref, branch, name, version, submodules].hash
end
def eql?(o)
o.is_a?(Git) &&
uri == o.uri &&