Rakefile in rails-geocoder-0.9.8 vs Rakefile in rails-geocoder-0.9.9

- old
+ new

@@ -1,44 +1,13 @@ -require 'rubygems' -require 'rake' +require 'bundler' +Bundler::GemHelper.install_tasks -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "rails-geocoder" - gem.summary = %Q{Add geocoding functionality to Rails models.} - gem.description = %Q{Geocoder adds object geocoding and database-agnostic distance calculations to Ruby on Rails. It does not rely on proprietary database functions so finding geocoded objects in a given area is easily done using out-of-the-box MySQL or even SQLite.} - gem.email = "alex@alexreisner.com" - gem.homepage = "http://github.com/alexreisner/geocoder" - gem.authors = ["Alex Reisner"] - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" -end - require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end - -begin - require 'rcov/rcovtask' - Rcov::RcovTask.new do |test| - test.libs << 'test' - test.pattern = 'test/**/*_test.rb' - test.verbose = true - end -rescue LoadError - task :rcov do - abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" - end -end - -task :test => :check_dependencies task :default => :test require 'rake/rdoctask' Rake::RDocTask.new do |rdoc|