From d0027e87abaee2a70769e08fb7cda074c502e756 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Mon, 28 Nov 2011 10:41:29 -0500 Subject: [PATCH] Added basic Rakefile --- Rakefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..78aea72 --- /dev/null +++ b/Rakefile @@ -0,0 +1,25 @@ +require 'rspec/core/rake_task' +require File.dirname(__FILE__) + '/lib/haste/version' + +task :build => :test do + system "gem build haste.gemspec" +end + +task :release => :build do + # tag and push + system "git tag v#{Haste::VERSION}" + system "git push origin --tags" + # push the gem + system "gem push haste-#{Haste::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