From 2828b1911157fa0dc517a23868ad1716cbcad2c2 Mon Sep 17 00:00:00 2001 From: Ben Burkert Date: Thu, 30 Dec 2010 13:39:00 -0800 Subject: [PATCH] Better .gemspec. * Seperate gemspec for the java platform gem. * Don't include jruby.jar. * Don't include unnecessary files. --- bson.gemspec | 3 +-- bson.java.gemspec | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 bson.java.gemspec diff --git a/bson.gemspec b/bson.gemspec index 589d921..a79f0a9 100644 --- a/bson.gemspec +++ b/bson.gemspec @@ -11,10 +11,9 @@ Gem::Specification.new do |s| s.require_paths = ['lib'] - s.files = ['Rakefile', 'bson.gemspec', 'LICENSE.txt'] + s.files = ['LICENSE.txt'] s.files += ['lib/bson.rb'] + Dir['lib/bson/**/*.rb'] s.files += ['bin/b2json', 'bin/j2bson'] - s.files += Dir['ext/java/jar/**/*.jar'] s.test_files = Dir['test/bson/*.rb'] s.executables = ['b2json', 'j2bson'] diff --git a/bson.java.gemspec b/bson.java.gemspec new file mode 100644 index 0000000..27701bd --- /dev/null +++ b/bson.java.gemspec @@ -0,0 +1,27 @@ +require "./lib/bson" + +Gem::Specification.new do |s| + s.name = 'bson' + + s.version = BSON::VERSION + + s.platform = 'jruby' + s.summary = 'Ruby implementation of BSON' + s.description = 'A Ruby BSON implementation for MongoDB. For more information about Mongo, see http://www.mongodb.org. For more information on BSON, see http://www.bsonspec.org.' + + s.require_paths = ['lib', 'ext'] + + s.files = ['LICENSE.txt'] + s.files += ['lib/bson.rb'] + Dir['lib/bson/**/*.rb'] + s.files += ['bin/b2json', 'bin/j2bson'] + s.files += ["ext/java/jar/bson-2.2.jar", "ext/java/jar/jbson.jar", "ext/java/jar/mongo-2.2.jar"] + s.test_files = Dir['test/bson/*.rb'] + + s.executables = ['b2json', 'j2bson'] + + s.has_rdoc = true + + s.authors = ['Jim Menard', 'Mike Dirolf', 'Kyle Banker'] + s.email = 'mongodb-dev@googlegroups.com' + s.homepage = 'http://www.mongodb.org' +end