Updated to Java driver 2.4 for JRuby
This commit is contained in:
parent
9babfc95bb
commit
dbcc9042bf
@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|||||||
s.files = ['LICENSE.txt']
|
s.files = ['LICENSE.txt']
|
||||||
s.files += ['lib/bson.rb'] + Dir['lib/bson/**/*.rb']
|
s.files += ['lib/bson.rb'] + Dir['lib/bson/**/*.rb']
|
||||||
s.files += ['bin/b2json', 'bin/j2bson']
|
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.files += ["ext/java/jar/bson-2.2.jar", "ext/java/jar/jbson.jar", "ext/java/jar/mongo-2.4.jar"]
|
||||||
s.test_files = Dir['test/bson/*.rb']
|
s.test_files = Dir['test/bson/*.rb']
|
||||||
|
|
||||||
s.executables = ['b2json', 'j2bson']
|
s.executables = ['b2json', 'j2bson']
|
||||||
|
Binary file not shown.
BIN
ext/java/jar/mongo-2.4.jar
Normal file
BIN
ext/java/jar/mongo-2.4.jar
Normal file
Binary file not shown.
@ -40,7 +40,7 @@ end
|
|||||||
|
|
||||||
if RUBY_PLATFORM =~ /java/
|
if RUBY_PLATFORM =~ /java/
|
||||||
jar_dir = File.join(File.dirname(__FILE__), '..', 'ext', 'java', 'jar')
|
jar_dir = File.join(File.dirname(__FILE__), '..', 'ext', 'java', 'jar')
|
||||||
require File.join(jar_dir, 'mongo-2.2.jar')
|
require File.join(jar_dir, 'mongo-2.4.jar')
|
||||||
require File.join(jar_dir, 'bson-2.2.jar')
|
require File.join(jar_dir, 'bson-2.2.jar')
|
||||||
require File.join(jar_dir, 'jbson.jar')
|
require File.join(jar_dir, 'jbson.jar')
|
||||||
require 'bson/bson_java'
|
require 'bson/bson_java'
|
||||||
|
Loading…
Reference in New Issue
Block a user