Sha256: 4a925a4814f05d2c9de57c98917f4bf7c45582ffcd26a18672f1265ba8a24c87
Contents?: true
Size: 1.12 KB
Versions: 8
Compression:
Stored size: 1.12 KB
Contents
#encoding: utf-8 begin require 'bundler/gem_tasks' require 'rubocop/rake_task' namespace :install do desc 'Install the gem as current user (NOT RECOMMENDED)' task :user => ['build'] do sh "gem install #{Dir['pkg/*.gem'].sort.last} --user-install" end end namespace :lint do RuboCop::RakeTask.new do |task| task.patterns = ['lib/**/*.rb'] end desc 'Run inch to see documentation coverage' task :doc do sh 'bundle exec inch' end end namespace :spec do task :prepare do verbose false puts 'Prepare …' sh 'mkdir -p tmp' rm_rf 'tmp/*' end desc 'Run all integration specs' task :integration => [:prepare] do sh 'bundle exec bacon spec/integration.rb' end desc 'Run all unit specs' task :unit, [:spec] do |t, args| sh "bundle exec bacon #{specs(args[:spec] || '**/*')}" end def specs(dir) FileList["spec/unit/#{dir}_spec.rb"].shuffle.join(' ') end desc 'Run all specs' task :all => [ :unit, :integration ] end desc 'Run all specs' task :spec => 'spec:all' end
Version data entries
8 entries across 8 versions & 1 rubygems
Version | Path |
---|---|
xcres-0.6.1 | Rakefile |
xcres-0.6.0 | Rakefile |
xcres-0.5.0 | Rakefile |
xcres-0.4.4 | Rakefile |
xcres-0.4.3 | Rakefile |
xcres-0.4.2 | Rakefile |
xcres-0.4.1 | Rakefile |
xcres-0.4.0 | Rakefile |