Permalink
Browse files

Adding case statement for all the different rubies... bit redundant b…

…ut very explicit, I like explicit
  • Loading branch information...
1 parent 2f3e89c commit 75f2c0288b4eb56aafa9e54b46b193b5402fbbad @mikel committed Jun 15, 2010
Showing with 11 additions and 3 deletions.
  1. +11 −3 Gemfile
View
14 Gemfile
@@ -12,9 +12,17 @@ group :test do
gem "cucumber"
gem "rspec"
gem "diff-lcs"
- if defined?(RUBY_ENGINE) && RUBY_ENGINE != 'rbx' && RUBY_PLATFORM != 'java'
- gem "ruby-debug" if RUBY_VERSION < '1.9'
- gem "ruby-debug19" if RUBY_VERSION > '1.9' && RUBY_VERSION < '1.9.2'
+ case
+ when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
+ # Skip it
+ when RUBY_PLATFORM == 'java'
+ # Skip it
+ when RUBY_VERSION < '1.9'
+ gem "ruby-debug"
+ when RUBY_VERSION > '1.9' && RUBY_VERSION < '1.9.2'
+ gem "ruby-debug19"
+ else
+ # Skip it
end
gem "ZenTest"
end

0 comments on commit 75f2c02

Please sign in to comment.