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
Evan Phoenix 559101dcb7 Fix hoe/test + rake-compiler bug
hoe/test injects .gemtest into the spec.files, but rake-compiler tries
to invoke that as a task and doesn't find it. Presumably because
hoe/test injects the .gemtest file directly into the pkg/ directory and
rake-compiler assumes that the spec.files are available in the project
toplevel directory.
2011-11-28 11:04:28 -08:00

28 lines
809 B
Ruby

require 'hoe'
HOE = Hoe.spec 'puma' do
self.rubyforge_name = 'puma'
self.readme_file = "README.md"
developer 'Evan Phoenix', 'evan@phx.io'
spec_extras[:extensions] = ["ext/puma_http11/extconf.rb"]
spec_extras[:executables] = ['puma']
dependency 'rack', '~> 1.2'
extra_dev_deps << ['rake-compiler', "~> 0.7.0"]
clean_globs.push('test_*.log', 'log')
end
# hoe/test and rake-compiler don't seem to play well together, so disable
# hoe/test's .gemtest touch file thingy for now
HOE.spec.files -= [".gemtest"]
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_ruby }
end
desc "Generate or update the standalone gemspec file for the project"
task :gemspec => ["#{HOE.spec.name}.gemspec"]