Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 648 Bytes
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
Jump to Line
Something went wrong with that request. Please try again.