Optimize multiple if statements in Gemfile.
This commit is contained in:
parent
fb2c320a2a
commit
22001c5ecd
6
Gemfile
6
Gemfile
@ -13,12 +13,10 @@ require 'rbconfig'
|
|||||||
if RbConfig::CONFIG['target_os'] =~ /darwin/i
|
if RbConfig::CONFIG['target_os'] =~ /darwin/i
|
||||||
gem 'rb-fsevent', '>= 0.4.0', :require => false
|
gem 'rb-fsevent', '>= 0.4.0', :require => false
|
||||||
gem 'growl', '~> 1.0.3', :require => false
|
gem 'growl', '~> 1.0.3', :require => false
|
||||||
end
|
elsif RbConfig::CONFIG['target_os'] =~ /linux/i
|
||||||
if RbConfig::CONFIG['target_os'] =~ /linux/i
|
|
||||||
gem 'rb-inotify', '>= 0.8.5', :require => false
|
gem 'rb-inotify', '>= 0.8.5', :require => false
|
||||||
gem 'libnotify', '~> 0.1.3', :require => false
|
gem 'libnotify', '~> 0.1.3', :require => false
|
||||||
end
|
elsif RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
|
||||||
if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
|
|
||||||
gem 'win32console', :require => false
|
gem 'win32console', :require => false
|
||||||
gem 'rb-fchange', '>= 0.0.2', :require => false
|
gem 'rb-fchange', '>= 0.0.2', :require => false
|
||||||
gem 'rb-notifu', '>= 0.0.4', :require => false
|
gem 'rb-notifu', '>= 0.0.4', :require => false
|
||||||
|
Loading…
Reference in New Issue
Block a user