Sha256: 64671cbaf268612e64f138598c4c1995fcbf3be2aa1b565d0a2ab90a92d3f6cc
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rake' require 'rspec/core/rake_task' def ruby_files_for_shell files = Dir.glob 'lib/**/*.rb' files.join(' ') end desc 'Test genit' task :default => :spec desc 'Test genit with rspec' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = ['--color'] end desc 'Check for code smells' task :reek do puts 'Checking for code smells...' sh "reek --quiet #{ruby_files_for_shell} | ./reek.sed" end desc 'Check for duplicate code' task :flay do puts 'Check for duplicate code...' exec "flay #{ruby_files_for_shell}" end desc 'Build genit & install it' task :install do sh "gem build genit.gemspec" f = FileList['genit*gem'].to_a sh "gem install #{f.first} --no-rdoc --no-ri" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genit-2.1 | Rakefile |
genit-2.0 | Rakefile |