Sha256: 9dff1430f818ce608aed717ec8cc8bcb228021b9d38e44ef6eae5192ffa3ccac

Contents?: true

Size: 918 Bytes

Versions: 65

Compression:

Stored size: 918 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rake/gempackagetask'
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")
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

65 entries across 65 versions & 2 rubygems

Version Path
saucy-0.4.5 Rakefile
saucy-0.4.4 Rakefile
saucy-0.4.3 Rakefile
saucy-0.4.2 Rakefile
saucy-0.4.1 Rakefile
saucy-0.3.4.1 Rakefile
saucy-0.4.0 Rakefile
saucy-0.3.4 Rakefile
saucy-0.3.3 Rakefile
saucy-0.3.2 Rakefile
saucy-0.3.1 Rakefile
saucy-0.3.0 Rakefile
saucy-0.2.45 Rakefile
saucy-0.2.44 Rakefile
saucy-0.2.43 Rakefile
saucy-0.2.42 Rakefile
saucy-0.2.41 Rakefile
saucy-0.2.40 Rakefile
saucy-0.2.39 Rakefile
saucy-0.2.38 Rakefile