require 'rubygems' gem 'hoe', '>= 2.1.0' require 'hoe' require 'fileutils' require './lib/rtml' Hoe.plugin :newgem # Hoe.plugin :website # Hoe.plugin :cucumberfeatures # Generate all the Rake tasks # Run 'rake -T' to see list of generated tasks (from gem root directory) $hoe = Hoe.spec 'rtml' do f = File.read(File.join(File.dirname(__FILE__), "app_generators/rtml/templates/rtml/lib/rtml/version.rb")) f =~ /MAJOR\s*=\s*([0-9]+)/ maj = $~[1] f =~ /MINOR\s*=\s*([0-9]+)/ min = $~[1] f =~ /TINY\s*=\s*([0-9]+)/ tin = $~[1] self.version = "#{maj}.#{min}.#{tin}" self.developer 'Colin MacKenzie IV', 'sinisterchipmunk@gmail.com' #self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required #self.rubyforge_name = self.name # TODO this is default value self.extra_deps = [['rails', '>= 2.3.5'], ['hpricot', '>= 0.8.2'], ['rubigen', '>= 1.5.2']] end require 'newgem/tasks' Dir['tasks/**/*.rake'].each { |t| load t } # TODO - want other tests/tasks run by default? Add them to the list # remove_task :default # task :default => [:spec, :features]