Sha256: 86af0363c8822de8a1a219845a4124fac064fbd7e6d30c564251dbcafc20424e
Contents?: true
Size: 1.12 KB
Versions: 16
Compression:
Stored size: 1.12 KB
Contents
require "rake" 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.pattern = "spec/httpi/**/*_spec.rb" t.rspec_opts = %w(-fd -c) end desc "Run RSpec integration examples" RSpec::Core::RakeTask.new "spec:integration" do |t| t.pattern = "spec/integration/*_spec.rb" t.rspec_opts = %w(-fd -c) end rescue LoadError task :spec do abort "Run 'gem install rspec' to be able to run specs" end end task :default => :spec
Version data entries
16 entries across 16 versions & 1 rubygems