Sha256: 78a48221946843db4203b892b7d738c142b83efda9de2031e797d1af0e6ece16
Contents?: true
Size: 976 Bytes
Versions: 3
Compression:
Stored size: 976 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new do |t| t.libs.push "lib" t.test_files = FileList['spec/**/*_spec.rb'] t.verbose = true end task :default => [ :test ] unless RUBY_ENGINE == 'jruby' require 'cane/rake_task' require 'tailor/rake_task' desc "Run cane to check quality metrics" Cane::RakeTask.new do |cane| cane.abc_exclude = %w( Jamie::RakeTasks#define Jamie::ThorTasks#define Jamie::CLI#pry_prompts Jamie::Instance#synchronize_or_call ) cane.style_exclude = %w( lib/vendor/hash_recursive_merge.rb ) cane.doc_exclude = %w( lib/vendor/hash_recursive_merge.rb ) end Tailor::RakeTask.new Rake::Task[:default].enhance [ :cane, :tailor ] end desc "Display LOC stats" task :stats do puts "\n## Production Code Stats" sh "countloc -r lib/jamie lib/jamie.rb" puts "\n## Test Code Stats" sh "countloc -r spec" end Rake::Task[:default].enhance [ :stats ]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jamie-0.1.0.beta3 | Rakefile |
jamie-0.1.0.beta2 | Rakefile |
jamie-0.1.0.beta1 | Rakefile |