You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2012/10/08 12:27:27 UTC
svn commit: r1395505 - /buildr/trunk/rakelib/rspec.rake
Author: donaldp
Date: Mon Oct 8 10:27:27 2012
New Revision: 1395505
URL: http://svn.apache.org/viewvc?rev=1395505&view=rev
Log:
Use RbConfig rather than the deprecated Config
Modified:
buildr/trunk/rakelib/rspec.rake
Modified: buildr/trunk/rakelib/rspec.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/rspec.rake?rev=1395505&r1=1395504&r2=1395505&view=diff
==============================================================================
--- buildr/trunk/rakelib/rspec.rake (original)
+++ buildr/trunk/rakelib/rspec.rake Mon Oct 8 10:27:27 2012
@@ -18,7 +18,7 @@ directory '_reports'
def default_spec_opts
default = %w{--format documentation --out _reports/specs.txt --backtrace}
- default << '--colour' if $stdout.isatty && !(Config::CONFIG['host_os'] =~ /mswin|win32|dos/i)
+ default << '--colour' if $stdout.isatty && !(RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos/i)
default
end
@@ -65,7 +65,7 @@ desc 'Run all specs with CI reporter'
task 'ci' => %w(clobber load_ci_reporter spec)
def rvm_run_in(version, command)
- if !(Config::CONFIG['host_os'] =~ /mswin|win32|dos/i)
+ if !(RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos/i)
cmd_prefix = "rvm #{version} exec"
sh "rm -f Gemfile.lock; #{cmd_prefix} bundle install; #{cmd_prefix} bundle exec #{command}"
else