Rakefile in vigetlabs-provisional-2.1.6 vs Rakefile in vigetlabs-provisional-2.1.7
- old
+ new
@@ -41,10 +41,34 @@
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
+begin
+ require 'reek/rake_task'
+ Reek::RakeTask.new do |t|
+ t.fail_on_error = true
+ t.verbose = false
+ t.source_files = 'lib/**/*.rb'
+ end
+rescue LoadError
+ task :reek do
+ abort "Reek is not available. In order to run reek, you must: sudo gem install reek"
+ end
+end
+begin
+ require 'roodi'
+ require 'roodi_task'
+ RoodiTask.new do |t|
+ t.verbose = false
+ end
+rescue LoadError
+ task :roodi do
+ abort "Roodi is not available. In order to run roodi, you must: sudo gem install roodi"
+ end
+end
+
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION.yml')