Skip to content

Commit

Permalink
Suppress warning from output
Browse files Browse the repository at this point in the history
-v will print Ruby version and also set $VERBOSE to true.

-W0 sets $VERBOSE to nil
  • Loading branch information
JuanitoFatas committed May 9, 2015
1 parent b5da487 commit 9c248da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -2,12 +2,12 @@ desc "run benchmark in current ruby"
task :run_benchmark do
Dir["code/general/*.rb"].each do |benchmark|
puts "$ ruby -v #{benchmark}"
system("ruby", "-v", benchmark)
system("ruby", "-v", "-W0", benchmark)
end

Dir["code/*/*.rb"].reject { |path| path =~ /^code\/general/ }.each do |benchmark|
puts "$ ruby -v #{benchmark}"
system("ruby", "-v", benchmark)
system("ruby", "-v", "-W0", benchmark)
end
end

Expand Down

0 comments on commit 9c248da

Please sign in to comment.