Permalink
Browse files

cleaned up the rakefile

  • Loading branch information...
1 parent ba0b5b2 commit d4bb9d64638838d30f8c3bd8113802a9cabd0360 @rubiii rubiii committed Sep 28, 2011
Showing with 5 additions and 36 deletions.
  1. +5 −36 Rakefile
View
@@ -1,39 +1,8 @@
-require "rake"
+require "bundler/gem_tasks"
+require "rspec/core/rake_task"
-begin
- require "yard"
-
- YARD::Rake::YardocTask.new do |t|
- t.files = ["README.md", "lib/**/*.rb"]
- end
-rescue LoadError
- desc message = %{"gem install yard" to generate documentation}
- task("yard") { abort message }
-end
-
-begin
- require "metric_fu"
-
- MetricFu::Configuration.run do |c|
- c.metrics = [:churn, :flog, :flay, :reek, :roodi, :saikuro] # :rcov seems to be broken
- c.graphs = [:flog, :flay, :reek, :roodi]
- c.flay = { :dirs_to_flay => ["lib"], :minimum_score => 20 }
- c.rcov[:rcov_opts] << "-Ilib -Ispec"
- end
-rescue LoadError
- desc message = %{"gem install metric_fu" to generate metrics}
- task("metrics:all") { abort message }
-end
-
-begin
- require "rspec/core/rake_task"
-
- RSpec::Core::RakeTask.new do |t|
- t.rspec_opts = %w(-fd -c)
- end
-rescue LoadError
- desc message = %{"gem install rspec" to run the specs}
- task(:spec) { abort message }
-end
+RSpec::Core::RakeTask.new
task :default => :spec
+task :test => :spec
+

0 comments on commit d4bb9d6

Please sign in to comment.