diff options
author | Andre Arko <andre@arko.net> | 2012-12-20 22:30:16 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2012-12-20 22:30:38 -0800 |
commit | add10420298e4faf1e7ed08db88672f8759853d9 (patch) | |
tree | f2e1e79ff93b6a79a844a998f00deb8e2fa61e25 /lib/bundler/dependency.rb | |
parent | 691c152190ff6be951dca2647966cc60e862a813 (diff) | |
download | bundler-add10420298e4faf1e7ed08db88672f8759853d9.tar.gz |
add ABI platforms :ruby_20 and :mri_20
closes #2151
Diffstat (limited to 'lib/bundler/dependency.rb')
-rw-r--r-- | lib/bundler/dependency.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb index 453d568e58..50ac522e16 100644 --- a/lib/bundler/dependency.rb +++ b/lib/bundler/dependency.rb @@ -12,15 +12,18 @@ module Bundler :ruby => Gem::Platform::RUBY, :ruby_18 => Gem::Platform::RUBY, :ruby_19 => Gem::Platform::RUBY, + :ruby_20 => Gem::Platform::RUBY, :mri => Gem::Platform::RUBY, :mri_18 => Gem::Platform::RUBY, :mri_19 => Gem::Platform::RUBY, + :mri_20 => Gem::Platform::RUBY, :rbx => Gem::Platform::RUBY, :jruby => Gem::Platform::JAVA, :mswin => Gem::Platform::MSWIN, :mingw => Gem::Platform::MINGW, :mingw_18 => Gem::Platform::MINGW, - :mingw_19 => Gem::Platform::MINGW + :mingw_19 => Gem::Platform::MINGW, + :mingw_20 => Gem::Platform::MINGW }.freeze def initialize(name, version, options = {}, &blk) @@ -90,6 +93,10 @@ module Bundler ruby? && RUBY_VERSION >= "1.9" end + def ruby_20? + ruby? && RUBY_VERSION >= "2.0" + end + def mri? !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby") end @@ -102,6 +109,11 @@ module Bundler mri? && RUBY_VERSION >= "1.9" end + + def mri_20? + mri? && RUBY_VERSION >= "2.0" + end + def rbx? ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" end @@ -130,5 +142,9 @@ module Bundler mingw? && RUBY_VERSION >= "1.9" end + def mingw_20? + mingw? && RUBY_VERSION >= "2.0" + end + end end |