Put jar file explicitly in the gemspec so that gem will not build without it.

This commit is contained in:
James Coglan
2012-03-04 23:45:42 +00:00
parent 9410f1ce17
commit 2f148eb8bf
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ else
end
task :clean do
Dir['./**/*.{bundle,o,so}'].each do |path|
Dir['./**/*.{bundle,jar,o,so}'].each do |path|
puts "Deleting #{path} ..."
File.delete(path)
end
+3 -2
View File
@@ -11,8 +11,9 @@ Gem::Specification.new do |s|
s.require_paths = %w[lib]
s.files = %w[README.rdoc CHANGELOG.txt] +
Dir.glob("ext/**/*.{c,rb}") +
Dir.glob("lib/**/*.{jar,rb}") +
Dir.glob("ext/**/*.{c,java,rb}") +
Dir.glob("lib/**/*.rb") +
["lib/faye_websocket_mask.jar"] +
Dir.glob("{examples,spec}/**/*")
s.extensions << "ext/faye_websocket_mask/extconf.rb"