1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rake/testtask.rb (Rake::TestTask#define): passes each libs

as each arguments with expanded.  incorporated from rake 0.8.4.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-06 04:45:38 +00:00
parent 84880187bd
commit c520d1fc84
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Mar 6 13:45:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rake/testtask.rb (Rake::TestTask#define): passes each libs
as each arguments with expanded. incorporated from rake 0.8.4.
Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (flo_to_s): keeps enough precision for round trip. * numeric.c (flo_to_s): keeps enough precision for round trip.

View file

@ -93,7 +93,7 @@ module Rake
# Create the tasks defined by this task lib. # Create the tasks defined by this task lib.
def define def define
lib_path = @libs.join(File::PATH_SEPARATOR) lib_path = @libs.collect {|path| "-I#{File.expand_path(path)}"}
desc "Run tests" + (@name==:test ? "" : " for #{@name}") desc "Run tests" + (@name==:test ? "" : " for #{@name}")
task @name do task @name do
run_code = '' run_code = ''
@ -107,7 +107,7 @@ module Rake
when :rake when :rake
rake_loader rake_loader
end end
@ruby_opts.unshift( "-I#{lib_path}" ) @ruby_opts.unshift( *lib_path )
@ruby_opts.unshift( "-w" ) if @warning @ruby_opts.unshift( "-w" ) if @warning
ruby @ruby_opts.join(" ") + ruby @ruby_opts.join(" ") +
" \"#{run_code}\" " + " \"#{run_code}\" " +