aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-04-13 09:00:24 -0700
committerAndre Arko <andre@arko.net>2015-04-13 18:47:31 -0700
commit99a71299d1991e5b31a651e48b31a651d7065510 (patch)
tree3d90ac8fe888e097a9ba9af74fb534e91e614fa0
parent10d94dcee83ae2c82cd39152c29cb4477f42c5c0 (diff)
downloadbundler-99a71299d1991e5b31a651e48b31a651d7065510.tar.gz
platform can be of type string so it must be cast into a Gem::Platform
-rw-r--r--lib/bundler/match_platform.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/match_platform.rb b/lib/bundler/match_platform.rb
index 757f2c6a..4f2ba0a2 100644
--- a/lib/bundler/match_platform.rb
+++ b/lib/bundler/match_platform.rb
@@ -8,7 +8,7 @@ module Bundler
Gem::Platform::RUBY == platform or
platform.nil? or p == platform or
generic(Gem::Platform.new(platform)) == p or
- platform === p
+ Gem::Platform.new(platform) === p
end
end
end