aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-19 18:43:35 -0700
committerAndre Arko <andre@arko.net>2010-04-23 10:01:17 -0700
commitd9ac63aa853028d0062a662ea2cfe4ac48ca5ab6 (patch)
treeba4190547b7ac5c8d58112abe4ecb2750e316e22 /lib
parent33cd28bbc11f8ea38f1413823de4f18b84d9d775 (diff)
downloadbundler-d9ac63aa853028d0062a662ea2cfe4ac48ca5ab6.tar.gz
Ignore cached gems with the wrong platform
Closes #288
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index e08e195a..02fd8228 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -152,6 +152,7 @@ module Bundler
Dir["#{@path}/*.gem"].each do |gemfile|
spec = Gem::Format.from_file_by_path(gemfile).spec
+ next unless Gem::Platform.match(spec.platform)
spec.source = self
index << spec
end