diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-04-20 17:27:00 -0700 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-04-20 17:27:00 -0700 |
commit | 4bfff00e3bfc24c92c2a4e24ed08ad4e40942db2 (patch) | |
tree | 6af8cca0c46bce5697b95b46c78940c56092d1ae /lib/bundler/lazy_specification.rb | |
parent | e00a48b5fc049488822657924aa8314a77a7dd6f (diff) | |
download | bundler-4bfff00e3bfc24c92c2a4e24ed08ad4e40942db2.tar.gz |
Be smart about handling changed Gemfiles
Diffstat (limited to 'lib/bundler/lazy_specification.rb')
-rw-r--r-- | lib/bundler/lazy_specification.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index 797ab007..d2f11df6 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -10,5 +10,9 @@ module Bundler @version = version @dependencies = [] end + + def satisfies?(dependency) + @name == dependency.name && dependency.requirement.satisfied_by?(Gem::Version.new(@version)) + end end end
\ No newline at end of file |