Rakefile in rgl-0.5.1 vs Rakefile in rgl-0.5.2
- old
+ new
@@ -4,16 +4,16 @@
require 'bundler/setup'
require 'rubygems/package_task'
require 'rake/testtask'
+require 'rake/clean'
require 'yard'
$:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'rgl/base' # require base module to get RGL_VERSION
-SUMMARY = "Ruby Graph Library"
SOURCES = FileList['lib/**/*.rb']
# The default task is run if rake is given no explicit arguments.
desc "Default Task"
task :default => :test
@@ -22,23 +22,9 @@
Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/*_test.rb'
t.verbose = true
-end
-
-begin
- require 'rcov/rcovtask'
-
- desc "Calculate code coverage with rcov"
- Rcov::RcovTask.new(:rcov) do |t|
- t.libs << 'test'
- t.pattern = 'test/*_test.rb'
- t.verbose = true
- t.rcov_opts += ['--exclude', 'test/,gems/']
- end
-rescue LoadError
- nil # rcov is available only on Ruby 1.8
end
# Git tagging
desc "Commit all changes as a new version commit. Tag the commit with v<version> tag"