Sha256: 24b2f50ac6157588fef518162d58700ea5c68b9af709f51a46c1ef27ae4f0f14

Contents?: true

Size: 916 Bytes

Versions: 9

Compression:

Stored size: 916 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rubygems/package_task'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'

desc 'Default: run all tests'
task :default => [:spec, :cucumber]

Cucumber::Rake::Task.new(:cucumber) do |t|
  t.fork = true
  t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end

RSpec::Core::RakeTask.new do |t|
  t.pattern = "spec/**/*_spec.rb"
  t.rspec_opts = "--format progress"
end

eval("$specification = begin; #{IO.read('saucy.gemspec')}; end")
Gem::PackageTask.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

9 entries across 9 versions & 1 rubygems

Version Path
saucy-0.12.5 Rakefile
saucy-0.12.4 Rakefile
saucy-0.12.3 Rakefile
saucy-0.12.2 Rakefile
saucy-0.12.1 Rakefile
saucy-0.12.0 Rakefile
saucy-0.11.5 Rakefile
saucy-0.11.3 Rakefile
saucy-0.11.2 Rakefile