Skip to content

Commit

Permalink
use rbconfig in engine's generated Gemfile instead of deprecated Config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Winsor committed Sep 3, 2011
1 parent be93c97 commit 763dc14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/lib/generators/files/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ group :development, :test do
gem 'spork', '0.9.0.rc9'
gem 'guard-spork'

if Config::CONFIG['target_os'] =~ /darwin/i
if RbConfig::CONFIG['target_os'] =~ /darwin/i
gem 'rb-fsevent', '>= 0.3.9'
gem 'growl', '~> 1.0.3'
end
if Config::CONFIG['target_os'] =~ /linux/i
if RbConfig::CONFIG['target_os'] =~ /linux/i
gem 'rb-inotify', '>= 0.5.1'
gem 'libnotify', '~> 0.1.3'
end
end

platforms :jruby do
if Config::CONFIG['target_os'] =~ /darwin/i
if RbConfig::CONFIG['target_os'] =~ /darwin/i
gem 'growl', '~> 1.0.3'
end
if Config::CONFIG['target_os'] =~ /linux/i
if RbConfig::CONFIG['target_os'] =~ /linux/i
gem 'rb-inotify', '>= 0.5.1'
gem 'libnotify', '~> 0.1.3'
end
Expand Down

0 comments on commit 763dc14

Please sign in to comment.