diff options
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r-- | lib/bundler/lazy_specification.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index e9d6b22656..b10d142b74 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -25,6 +25,11 @@ module Bundler end end + def ==(other) + [name, version, dependencies, platform, source] == + [other.name, other.version, other.dependencies, other.platform, other.source] + end + def satisfies?(dependency) @name == dependency.name && dependency.requirement.satisfied_by?(Gem::Version.new(@version)) end |