vendor/librarian/lib/librarian/source/git.rb in librarian-puppet-0.9.7 vs vendor/librarian/lib/librarian/source/git.rb in librarian-puppet-0.9.8

- old
+ new

@@ -65,9 +65,15 @@ self.ref == other.ref && self.path == other.path && (self.sha.nil? || other.sha.nil? || self.sha == other.sha) end + alias :eql? :== + + def hash + self.to_s.hash + end + def to_spec_args options = {} options.merge!(:ref => ref) if ref != DEFAULTS[:ref] options.merge!(:path => path) if path [uri, options]