Permalink
Browse files

Use platforms instead of conditionals in Gemfile

  • Loading branch information...
1 parent 99a8252 commit de1354f0ba069e704f3ea465de073e8f1ca3df2b @spastorino spastorino committed Mar 11, 2013
Showing with 7 additions and 4 deletions.
  1. +7 −4 Gemfile
View
11 Gemfile
@@ -27,10 +27,13 @@ gem 'dalli', '>= 2.2.1'
local_gemfile = File.dirname(__FILE__) + "/.Gemfile"
instance_eval File.read local_gemfile if File.exists? local_gemfile
-platforms :mri do
- group :test do
- gem 'ruby-prof', '~> 0.11.2' if RUBY_VERSION < '2.0'
- gem 'debugger' if !ENV['TRAVIS'] && RUBY_VERSION < '2.1'
+group :test do
+ platforms :mri_19 do
+ gem 'ruby-prof', '~> 0.11.2'
+ end
+
+ platforms :mri_19, :mri_20 do
+ gem 'debugger' if !ENV['TRAVIS']
end
end

0 comments on commit de1354f

Please sign in to comment.