ruby-changes:37523
From: nobu <ko1@a...>
Date: Sun, 15 Feb 2015 12:24:22 +0900 (JST)
Subject: [ruby-changes:37523] nobu:r49604 (trunk): default.mspec: use RbConfig::CONFIG
nobu 2015-02-15 12:24:18 +0900 (Sun, 15 Feb 2015) New Revision: 49604 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49604 Log: default.mspec: use RbConfig::CONFIG * spec/default.mspec (config): use RbConfig::CONFIG directly, loading with fake.rb. Modified files: trunk/spec/default.mspec Index: spec/default.mspec =================================================================== --- spec/default.mspec (revision 49603) +++ spec/default.mspec (revision 49604) @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/spec/default.mspec#L1 +# -*- ruby -*- +load "./rbconfig.rb" load File.dirname(__FILE__) + '/rubyspec/ruby.2.2.mspec' class MSpecScript builddir = Dir.pwd @@ -7,7 +9,7 @@ class MSpecScript https://github.com/ruby/ruby/blob/trunk/spec/default.mspec#L9 f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1 } end - config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -r#{builddir}/rbconfig -e 'print RbConfig::CONFIG["#{name}"]'`} + config = RbConfig::CONFIG # The default implementation to run the specs. set :target, File.join(builddir, "miniruby#{config['exeext']}") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/