From 2f148eb8bf98e73524cbf44fb99bfa0b7660bae5 Mon Sep 17 00:00:00 2001 From: James Coglan Date: Sun, 4 Mar 2012 23:45:42 +0000 Subject: [PATCH] Put jar file explicitly in the gemspec so that gem will not build without it. --- Rakefile | 2 +- faye-websocket.gemspec | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index b4ddf5d..60dc605 100644 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/faye-websocket.gemspec b/faye-websocket.gemspec index 57394f7..e55198d 100644 --- a/faye-websocket.gemspec +++ b/faye-websocket.gemspec @@ -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"