Rakefile in rubyXL-3.3.15 vs Rakefile in rubyXL-3.3.16
- old
+ new
@@ -1,17 +1,16 @@
# encoding: utf-8
require 'rubygems'
-require 'bundler'
+require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
-require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "rubyXL"
@@ -28,22 +27,13 @@
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
+ test.warning = true
end
-=begin
-require 'rcov/rcovtask'
-Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- test.rcov_opts << '--exclude "gems/*"'
-end
-=end
-
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
require 'rdoc/task'
@@ -54,12 +44,12 @@
rdoc.title = "rubyXL #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
-desc "Dump profiling data"
-task :profile do
+desc "Dump profiling data with stackprof"
+task :stackprof do
require 'benchmark'
require 'stackprof'
$:.unshift File.dirname(__FILE__) + '/lib' # Make Ruby aware of load path
require './lib/rubyXL'
@@ -81,11 +71,11 @@
doc.write(output)
}
}
end
-desc "Dump profiling data 2"
-task :prof do
+desc "Dump profiling data with ruby-prof"
+task :rubyprof do
require 'benchmark'
require 'ruby-prof'
$:.unshift File.dirname(__FILE__) + '/lib' # Make Ruby aware of load path
require './lib/rubyXL'