Rakefile in nested_set-1.6.8 vs Rakefile in nested_set-1.7.0
- old
+ new
@@ -1,32 +1,14 @@
# encoding: utf-8
require 'rubygems'
-require 'bundler'
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
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "nested_set"
- gem.summary = "An awesome nested set implementation for Active Record"
- gem.description = gem.summary
- gem.email = "info@collectiveidea.com"
- gem.homepage = "http://github.com/skyeagle/nested_set"
- gem.authors = ["Brandon Keepers", "Daniel Morrison"]
- end
- Jeweler::GemcutterTasks.new
+ require 'bundler/setup'
rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
+require 'rake'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
@@ -54,5 +36,7 @@
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "nested_set #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+
+require "bundler/gem_tasks"