1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/tasks/gem.rake

25 lines
655 B
Ruby
Raw Normal View History

require 'hoe'
2011-09-22 22:24:43 -04:00
HOE = Hoe.spec 'puma' do
self.rubyforge_name = 'puma'
2011-10-07 15:01:21 -04:00
self.readme_file = "README.md"
2011-09-22 22:24:43 -04:00
developer 'Evan Phoenix', 'evan@phx.io'
2011-10-21 19:42:54 -04:00
spec_extras[:extensions] = ["ext/puma_http11/extconf.rb"]
2011-09-23 23:24:32 -04:00
spec_extras[:executables] = ['puma']
2011-11-22 18:18:42 -05:00
dependency 'rack', '~> 1.2'
2011-10-25 18:07:54 -04:00
2010-01-17 12:08:35 -05:00
extra_dev_deps << ['rake-compiler', "~> 0.7.0"]
clean_globs.push('test_*.log', 'log')
end
file "#{HOE.spec.name}.gemspec" => ['Rakefile', 'tasks/gem.rake'] do |t|
puts "Generating #{t.name}"
2011-10-07 15:01:21 -04:00
File.open(t.name, 'w') { |f| f.puts HOE.spec.to_ruby }
end
desc "Generate or update the standalone gemspec file for the project"
task :gemspec => ["#{HOE.spec.name}.gemspec"]