Sha256: 6c821f47b1ef12311c2b13f88b2c27087f978ee37861523fd7f606c5b2f0263d
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
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 do |task| task.file_set('bin/*', 'binaries') task.file_set('lib/**/*.rb', 'code') do |style| # TODO: Tailor is confused thinking `module Jamie` is a class. Until # the classes are split in seperate files, let's punt on this style.max_code_lines_in_class 1550, level: :warn end task.file_set('spec/**/*.rb', 'tests') end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jamie-0.1.0.beta4 | Rakefile |