Rakefile in tumblr_client-0.7.0 vs Rakefile in tumblr_client-0.7.1

- old
+ new

@@ -1,10 +1,23 @@ #!/usr/bin/env rake -require 'bundler' -Bundler::GemHelper.install_tasks - require 'rspec/core/rake_task' -RSpec::Core::RakeTask.new(:spec) +require File.dirname(__FILE__) + '/lib/tumblr/version' -task :test => :spec -task :default => :spec +task :default => :test + +task :build => :test do + system 'gem build tumblr_client.gemspec' +end + +task :release => :build do + # tag and push + system "git tag v#{Tumblr::VERSION}" + system "git push origin --tags" + # push the gem + system "gem push ice_cube-#{Tumblr::VERSION}.gem" +end + +RSpec::Core::RakeTask.new(:test) do |t| + t.pattern = 'spec/**/*_spec.rb' + fail_on_error = true # be explicit +end