diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-05-19 11:24:51 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-19 21:32:45 +0200 |
commit | 61001e766de974a8864c0bc2cf915888d277a0ea (patch) | |
tree | 05266c69c3b75476ac03203a644747fec15122d3 /Gemfile | |
parent | 39a246f545a714b21c669e2f6eda4012526c3874 (diff) | |
download | rails-61001e766de974a8864c0bc2cf915888d277a0ea.tar.gz rails-61001e766de974a8864c0bc2cf915888d277a0ea.tar.bz2 rails-61001e766de974a8864c0bc2cf915888d277a0ea.zip |
group :mri deleted in favor of RUBY_ENGINE and RUBY_VERSION usage.
Allow use json, yajl-ruby and nokogiri on MRI and Rubinius only.
jruby-debug added only for jruby platform
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'Gemfile')
-rw-r--r-- | Gemfile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -6,17 +6,18 @@ gem "rails", :path => File.dirname(__FILE__) gem "rake", ">= 0.8.7" gem "mocha", ">= 0.9.8" -group :mri do +mri = !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" +if mri && RUBY_VERSION < '1.9' + gem "system_timer" + gem "ruby-debug", ">= 0.10.3" +end + +if mri || RUBY_ENGINE == "rbx" gem 'json' gem 'yajl-ruby' gem "nokogiri", ">= 1.4.0" - - if !defined?(RUBY_ENGINE) && RUBY_VERSION < '1.9' - gem "system_timer" - gem "ruby-debug", ">= 0.10.3" - elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && RUBY_VERSION < '1.9.2' && !ENV['CI'] - gem "ruby-debug19" - end +elsif RUBY_ENGINE == "jruby" + gem "jruby-debug" end # AR |