Rakefile in cfoundry-0.2.2 vs Rakefile in cfoundry-0.3.0

- old
+ new

@@ -1,11 +1,31 @@ -require 'rake' -require "bundler/gem_tasks" +require "rake" +$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) +require "cfoundry/version" + task :default => "spec" desc "Run specs" task "spec" => ["bundler:install", "test:spec"] + +task :build do + sh "gem build cfoundry.gemspec" +end + +task :install => :build do + sh "gem install --local cfoundry-#{CFoundry::VERSION}" +end + +task :uninstall do + sh "gem uninstall cfoundry" +end + +task :reinstall => [:uninstall, :install] + +task :release => :build do + sh "gem push cfoundry-#{CFoundry::VERSION}.gem" +end namespace "bundler" do desc "Install gems" task "install" do sh("bundle install")