Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (27 sloc) 0.648 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
require 'bundler/gem_tasks'
require "bundler/setup"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

RSpec::Core::RakeTask.new(:rcov)

task :default => :spec

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  task :yardoc do
    abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
  end
end

desc "tag, push gem, push to github"
task :prerelease do
  require 'specjour'
  command = %(
git tag v#{Specjour::VERSION} &&
rake build &&
git push &&
gem push pkg/specjour-#{Specjour::VERSION}.gem &&
git push --tags
)
  puts command
  puts %x(#{command})
end
Something went wrong with that request. Please try again.