Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 551 Bytes
$:.unshift(File.dirname(__FILE__) + '/lib')
require 'cucumber/rake/task'
require "bundler/version"
require "ruby_reddit_api/version"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = %w{--format pretty}
t.rcov = true
t.rcov_opts = %w{ --exclude gems\/,spec\/,features\/ --comments}
t.rcov_opts << %[-o "coverage"]
end
task :build do
system "gem build ruby_reddit_api.gemspec"
end
task :release => :build do
system "gem push ruby_reddit_api-#{Reddit::VERSION}.gem"
end
task :doc do
system "yard doc"
end
task :default => [:cucumber]