Rakefile in distribution-0.7.1 vs Rakefile in distribution-0.7.2
- old
+ new
@@ -1,28 +1,22 @@
-# -*- ruby -*-
-$:.unshift(File.expand_path(File.dirname(__FILE__)+"/lib/"))
-require 'rubygems'
-#require 'hoe'
-require 'distribution'
-# Hoe.plugin :compiler
-# Hoe.plugin :gem_prelude_sucks
-# Hoe.plugin :git
-# Hoe.plugin :inline
-# Hoe.plugin :racc
-# Hoe.plugin :rubyforge
+require 'bundler'
+require 'bundler/gem_tasks'
+require 'rake'
+require 'rspec/core/rake_task'
-#Hoe.spec 'distribution' do
-# self.developer('Claudio Bustos', 'clbustos_at_gmail.com')
-# self.version=Distribution::VERSION
-# self.extra_dev_deps << ["rspec",">=2.0"] << ["rubyforge",">=0"]
+# Setup the necessary gems, specified in the gemspec.
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
-#end
-# git log --pretty=format:"*%s[%cn]" v0.5.0..HEAD >> History.txt
desc "Open an irb session preloaded with distribution"
task :console do
sh "irb -rubygems -I lib -r distribution.rb"
end
-require 'bundler'
-Bundler::GemHelper.install_tasks
+RSpec::Core::RakeTask.new(:spec)
-# vim: syntax=ruby
+task :default => :spec