Rakefile in hobofields-0.9.0 vs Rakefile in hobofields-0.9.100

- old
+ new

@@ -1,10 +1,10 @@ require 'rubygems' require 'activerecord' ActiveRecord::ActiveRecordError # hack for https://rails.lighthouseapp.com/projects/8994/tickets/2577-when-using-activerecordassociations-outside-of-rails-a-nameerror-is-thrown -RUBY = ENV['RUBY'] || (defined?(JRUBY_VERSION) ? 'jruby' : 'ruby') +RUBY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"') RUBYDOCTEST = ENV['RUBYDOCTEST'] || "#{RUBY} `which rubydoctest`" $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '/../hobofields/lib') $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '/../hobosupport/lib') require 'hobosupport' @@ -22,25 +22,21 @@ exit(1) if !system("#{RUBY} #{f}") end end end -begin - require 'jeweler' - Jeweler::Tasks.new do |gemspec| - gemspec.version = HoboFields::VERSION - gemspec.name = "hobofields" - gemspec.email = "tom@tomlocke.com" - gemspec.summary = "Rich field types and migration generator for Rails" - gemspec.homepage = "http://hobocentral.net/" - gemspec.authors = ["Tom Locke"] - gemspec.rubyforge_project = "hobo" - gemspec.add_dependency("rails", [">= 2.2.2"]) - gemspec.add_dependency("hobosupport", ["= #{HoboFields::VERSION}"]) - end - Jeweler::GemcutterTasks.new - Jeweler::RubyforgeTasks.new do |rubyforge| - rubyforge.doc_task = false - end -rescue LoadError - puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" +require 'jeweler' +Jeweler::Tasks.new do |gemspec| + gemspec.version = HoboFields::VERSION + gemspec.name = "hobofields" + gemspec.email = "tom@tomlocke.com" + gemspec.summary = "Rich field types and migration generator for Rails" + gemspec.homepage = "http://hobocentral.net/" + gemspec.authors = ["Tom Locke"] + gemspec.rubyforge_project = "hobo" + gemspec.add_dependency("rails", [">= 2.2.2"]) + gemspec.add_dependency("hobosupport", ["= #{HoboFields::VERSION}"]) +end +Jeweler::GemcutterTasks.new +Jeweler::RubyforgeTasks.new do |rubyforge| + rubyforge.doc_task = false end