Browse files

Optimize multiple if statements in Gemfile.

  • Loading branch information...
1 parent fb2c320 commit 22001c5ecd92ebd6163ce9b07d405a8b09e6d6fd Rémy Coutable committed Sep 15, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 Gemfile
View
6 Gemfile
@@ -13,12 +13,10 @@ require 'rbconfig'
if RbConfig::CONFIG['target_os'] =~ /darwin/i
gem 'rb-fsevent', '>= 0.4.0', :require => false
gem 'growl', '~> 1.0.3', :require => false
-end
-if RbConfig::CONFIG['target_os'] =~ /linux/i
+elsif RbConfig::CONFIG['target_os'] =~ /linux/i
gem 'rb-inotify', '>= 0.8.5', :require => false
gem 'libnotify', '~> 0.1.3', :require => false
-end
-if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
+elsif RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
gem 'win32console', :require => false
gem 'rb-fchange', '>= 0.0.2', :require => false
gem 'rb-notifu', '>= 0.0.4', :require => false

0 comments on commit 22001c5

Please sign in to comment.