2009-07-06 21:33:28 -04:00
|
|
|
require 'hoe'
|
|
|
|
|
|
|
|
HOE = Hoe.spec 'mongrel' do
|
|
|
|
self.rubyforge_name = 'mongrel'
|
2010-01-17 12:08:35 -05:00
|
|
|
developer 'Zed A. Shaw', 'mongrel-users@rubyforge.org'
|
2009-07-06 21:33:28 -04:00
|
|
|
|
|
|
|
spec_extras[:required_ruby_version] = Gem::Requirement.new('>= 1.8.6')
|
|
|
|
|
|
|
|
spec_extras[:extensions] = ["ext/http11/extconf.rb"]
|
2009-07-06 21:46:03 -04:00
|
|
|
spec_extras[:executables] = ['mongrel_rails']
|
2009-07-06 21:33:28 -04:00
|
|
|
|
2010-01-17 12:08:35 -05:00
|
|
|
extra_rdoc_files << 'LICENSE'
|
2009-07-07 03:11:09 -04:00
|
|
|
|
2010-01-17 12:08:35 -05:00
|
|
|
extra_deps << ['gem_plugin', '~> 0.2.3']
|
|
|
|
extra_deps << ['daemons', '~> 1.0.10']
|
2009-07-06 22:14:02 -04:00
|
|
|
|
2010-01-17 12:08:35 -05:00
|
|
|
extra_dev_deps << ['rake-compiler', "~> 0.7.0"]
|
2009-07-07 03:31:03 -04:00
|
|
|
|
2009-07-06 22:14:02 -04:00
|
|
|
clean_globs.push('test_*.log', 'log')
|
2009-07-06 21:33:28 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
file "#{HOE.spec.name}.gemspec" => ['Rakefile', 'tasks/gem.rake'] do |t|
|
|
|
|
puts "Generating #{t.name}"
|
|
|
|
File.open(t.name, 'w') { |f| f.puts HOE.spec.to_yaml }
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Generate or update the standalone gemspec file for the project"
|
|
|
|
task :gemspec => ["#{HOE.spec.name}.gemspec"]
|