bson 1.6.0-jruby → 1.6.1-jruby
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bson might be problematic. Click here for more details.
- data/ext/java/jar/jbson.jar +0 -0
- data/lib/bson.rb +3 -8
- data/lib/bson/version.rb +3 -0
- metadata +4 -3
data/ext/java/jar/jbson.jar
CHANGED
Binary file
|
data/lib/bson.rb
CHANGED
@@ -16,11 +16,9 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
# ++
|
18
18
|
|
19
|
-
|
19
|
+
require 'bson/version'
|
20
20
|
|
21
21
|
module BSON
|
22
|
-
VERSION = "1.6.0"
|
23
|
-
|
24
22
|
if defined? Mongo::DEFAULT_MAX_BSON_SIZE
|
25
23
|
DEFAULT_MAX_BSON_SIZE = Mongo::DEFAULT_MAX_BSON_SIZE
|
26
24
|
else
|
@@ -65,15 +63,12 @@ else
|
|
65
63
|
# Need this for running test with and without c ext in Ruby 1.9.
|
66
64
|
raise LoadError if ENV['TEST_MODE'] && !ENV['C_EXT']
|
67
65
|
|
68
|
-
# Raise LoadError unless little endian
|
66
|
+
# Raise LoadError unless little endian, since the C extensions
|
67
|
+
# only work on little-endian architectures.
|
69
68
|
raise LoadError unless "\x01\x00\x00\x00".unpack("i").first == 1
|
70
69
|
|
71
70
|
require 'bson_ext/cbson'
|
72
71
|
raise LoadError unless defined?(CBson::VERSION)
|
73
|
-
if CBson::VERSION < MINIMUM_BSON_EXT_VERSION
|
74
|
-
puts "Able to load bson_ext version #{CBson::VERSION}, but >= #{MINIMUM_BSON_EXT_VERSION} is required."
|
75
|
-
raise LoadError
|
76
|
-
end
|
77
72
|
require 'bson/bson_c'
|
78
73
|
module BSON
|
79
74
|
BSON_CODER = BSON_C
|
data/lib/bson/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: jruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-03-07 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: A Ruby BSON implementation for MongoDB. For more information about Mongo,
|
17
17
|
see http://www.mongodb.org. For more information on BSON, see http://www.bsonspec.org.
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- lib/bson/types/min_max_keys.rb
|
37
37
|
- lib/bson/types/object_id.rb
|
38
38
|
- lib/bson/types/timestamp.rb
|
39
|
+
- lib/bson/version.rb
|
39
40
|
- bin/b2json
|
40
41
|
- bin/j2bson
|
41
42
|
- ext/java/jar/jbson.jar
|
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
70
|
version: '0'
|
70
71
|
requirements: []
|
71
72
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.8.
|
73
|
+
rubygems_version: 1.8.17
|
73
74
|
signing_key:
|
74
75
|
specification_version: 3
|
75
76
|
summary: Ruby implementation of BSON
|