From 22001c5ecd92ebd6163ce9b07d405a8b09e6d6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Thu, 15 Sep 2011 22:02:23 +0300 Subject: [PATCH] Optimize multiple if statements in Gemfile. --- Gemfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 5aa0145..36c7f02 100644 --- a/Gemfile +++ b/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