Sha256: da7f4019c6dbad1b008b9c917f95c97ffbd0dec10bdf5c8a0b72bc2af197acf2
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
require 'rubygems' require 'bundler/setup' require 'appraisal' require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' require 'cucumber/rake/task' require 'rspec/core/rake_task' require 'yard' desc 'Default: run the specs and features.' task :default => :spec do system("rake -s appraisal cucumber;") end desc 'Test the copycopter_client plugin.' RSpec::Core::RakeTask.new do |t| t.rspec_opts = ['--color', "--format progress"] t.pattern = 'spec/copycopter_client/**/*_spec.rb' end desc "Run cucumber features" Cucumber::Rake::Task.new do |t| t.cucumber_opts = ['--tags', '~@wip', '--format', (ENV['CUCUMBER_FORMAT'] || 'progress')] end YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb'] end eval("$specification = begin; #{IO.read('copycopter_client.gemspec')}; end") Rake::GemPackageTask.new($specification) do |package| package.need_zip = true package.need_tar = true end gem_file = "pkg/#{$specification.name}-#{$specification.version}.gem" desc "Build and install the latest gem" task :install => :gem do sh("gem install --local #{gem_file}") end desc "Build and release the latest gem" task :release => :gem do sh("gem push #{gem_file}") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
copycopter_client-1.0.4 | Rakefile |
copycopter_client-1.0.3 | Rakefile |
copycopter_client-1.0.2 | Rakefile |