diff options
Diffstat (limited to 'lib/bundler/match_platform.rb')
-rw-r--r-- | lib/bundler/match_platform.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/bundler/match_platform.rb b/lib/bundler/match_platform.rb new file mode 100644 index 0000000000..523dafbbd6 --- /dev/null +++ b/lib/bundler/match_platform.rb @@ -0,0 +1,13 @@ +require 'bundler/gem_helpers' + +module Bundler + module MatchPlatform + include GemHelpers + + def match_platform(p) + Gem::Platform::RUBY == platform or + platform.nil? or p == platform or + generic(Gem::Platform.new(platform)) == p + end + end +end |