Rakefile in postgis_adapter-0.3.8 vs Rakefile in postgis_adapter-0.5.0

- old
+ new

@@ -9,10 +9,11 @@ gem.description = "Execute PostGIS functions on Active Record" gem.email = "x@nofxx.com" gem.homepage = "http://github.com/nofxx/postgis_adapter" gem.authors = ["Marcos Augusto"] gem.rubyforge_project = "postgis_adapter" + gem.add_dependency 'geo_ruby' # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end @@ -26,24 +27,17 @@ Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end - - task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| - if File.exist?('VERSION.yml') - config = YAML.load(File.read('VERSION.yml')) - version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" - else - version = "" - end + config = YAML.load(File.read('VERSION.yml')) + version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" rdoc.rdoc_dir = 'rdoc' rdoc.title = "postgis_adapter #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end -