Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 624 Bytes
require 'rspec/core/rake_task'
require File.dirname(__FILE__) + '/lib/console_tweet/version'
task :build => :test do
system "gem build console_tweet.gemspec"
end
task :release => :build do
# tag and push
system "git tag v#{ConsoleTweet::VERSION}"
system "git push origin --tags"
# push the gem
system "gem push console_tweet-#{ConsoleTweet::VERSION}.gem"
end
RSpec::Core::RakeTask.new(:test) do |t|
t.pattern = 'spec/**/*_spec.rb'
fail_on_error = true # be explicit
end
RSpec::Core::RakeTask.new(:rcov) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rcov = true
fail_on_error = true # be explicit
end