Rakefile in benchmark_driver-0.6.1 vs Rakefile in benchmark_driver-0.6.2
- old
+ new
@@ -1,13 +1,22 @@
require 'bundler/gem_tasks'
require 'shellwords'
+task :ruby_examples do
+ Dir.glob(File.expand_path('./examples/*.rb', __dir__)).sort.each do |file|
+ Bundler.with_clean_env do
+ sh ['time', 'bundle', 'exec', 'ruby', file].shelljoin
+ end
+ puts
+ end
+end
+
task :yaml_examples do
Dir.glob(File.expand_path('./examples/yaml/*.yml', __dir__)).sort.each do |file|
Bundler.with_clean_env do
sh ['time', 'bundle', 'exec', 'exe/benchmark-driver', file].shelljoin
end
puts
end
end
-task default: :yaml_examples
+task default: [:ruby_examples, :yaml_examples]