bson 1.5.1-jruby → 1.5.2-jruby
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bson might be problematic. Click here for more details.
- data/lib/bson.rb +2 -4
- metadata +21 -23
- data/test/bson/bson_string_test.rb +0 -30
data/lib/bson.rb
CHANGED
@@ -16,12 +16,10 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
# ++
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
MINIMUM_BSON_EXT_VERSION = "1.5.1"
|
19
|
+
MINIMUM_BSON_EXT_VERSION = "1.5.2"
|
22
20
|
|
23
21
|
module BSON
|
24
|
-
VERSION = "1.5.
|
22
|
+
VERSION = "1.5.2"
|
25
23
|
|
26
24
|
if defined? Mongo::DEFAULT_MAX_BSON_SIZE
|
27
25
|
DEFAULT_MAX_BSON_SIZE = Mongo::DEFAULT_MAX_BSON_SIZE
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 2
|
10
|
+
version: 1.5.2
|
11
11
|
platform: jruby
|
12
12
|
authors:
|
13
13
|
- Jim Menard
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-12-13 00:00:00 Z
|
21
21
|
dependencies: []
|
22
22
|
|
23
23
|
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.
|
@@ -32,32 +32,31 @@ extra_rdoc_files: []
|
|
32
32
|
files:
|
33
33
|
- LICENSE.txt
|
34
34
|
- lib/bson.rb
|
35
|
-
- lib/bson/bson_c.rb
|
36
35
|
- lib/bson/bson_java.rb
|
37
|
-
- lib/bson/bson_ruby.rb
|
38
|
-
- lib/bson/byte_buffer.rb
|
39
|
-
- lib/bson/exceptions.rb
|
40
|
-
- lib/bson/ordered_hash.rb
|
41
36
|
- lib/bson/types/binary.rb
|
42
|
-
- lib/bson/types/code.rb
|
43
|
-
- lib/bson/types/dbref.rb
|
44
37
|
- lib/bson/types/min_max_keys.rb
|
45
|
-
- lib/bson/types/object_id.rb
|
46
38
|
- lib/bson/types/timestamp.rb
|
39
|
+
- lib/bson/types/code.rb
|
40
|
+
- lib/bson/types/object_id.rb
|
41
|
+
- lib/bson/types/dbref.rb
|
42
|
+
- lib/bson/exceptions.rb
|
43
|
+
- lib/bson/bson_c.rb
|
44
|
+
- lib/bson/ordered_hash.rb
|
45
|
+
- lib/bson/byte_buffer.rb
|
46
|
+
- lib/bson/bson_ruby.rb
|
47
47
|
- bin/b2json
|
48
48
|
- bin/j2bson
|
49
49
|
- ext/java/jar/jbson.jar
|
50
50
|
- ext/java/jar/mongo-2.6.5.jar
|
51
51
|
- test/bson/binary_test.rb
|
52
|
-
- test/bson/bson_string_test.rb
|
53
|
-
- test/bson/bson_test.rb
|
54
|
-
- test/bson/byte_buffer_test.rb
|
55
|
-
- test/bson/hash_with_indifferent_access_test.rb
|
56
52
|
- test/bson/json_test.rb
|
57
|
-
- test/bson/
|
53
|
+
- test/bson/byte_buffer_test.rb
|
58
54
|
- test/bson/ordered_hash_test.rb
|
55
|
+
- test/bson/object_id_test.rb
|
59
56
|
- test/bson/test_helper.rb
|
57
|
+
- test/bson/bson_test.rb
|
60
58
|
- test/bson/timestamp_test.rb
|
59
|
+
- test/bson/hash_with_indifferent_access_test.rb
|
61
60
|
homepage: http://www.mongodb.org
|
62
61
|
licenses: []
|
63
62
|
|
@@ -87,18 +86,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
86
|
requirements: []
|
88
87
|
|
89
88
|
rubyforge_project:
|
90
|
-
rubygems_version: 1.8.
|
89
|
+
rubygems_version: 1.8.10
|
91
90
|
signing_key:
|
92
91
|
specification_version: 3
|
93
92
|
summary: Ruby implementation of BSON
|
94
93
|
test_files:
|
95
94
|
- test/bson/binary_test.rb
|
96
|
-
- test/bson/bson_string_test.rb
|
97
|
-
- test/bson/bson_test.rb
|
98
|
-
- test/bson/byte_buffer_test.rb
|
99
|
-
- test/bson/hash_with_indifferent_access_test.rb
|
100
95
|
- test/bson/json_test.rb
|
101
|
-
- test/bson/
|
96
|
+
- test/bson/byte_buffer_test.rb
|
102
97
|
- test/bson/ordered_hash_test.rb
|
98
|
+
- test/bson/object_id_test.rb
|
103
99
|
- test/bson/test_helper.rb
|
100
|
+
- test/bson/bson_test.rb
|
104
101
|
- test/bson/timestamp_test.rb
|
102
|
+
- test/bson/hash_with_indifferent_access_test.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# encoding:utf-8
|
2
|
-
require './test/bson/test_helper'
|
3
|
-
require 'complex'
|
4
|
-
require 'bigdecimal'
|
5
|
-
require 'rational'
|
6
|
-
|
7
|
-
class BSONTest < Test::Unit::TestCase
|
8
|
-
|
9
|
-
include BSON
|
10
|
-
|
11
|
-
def setup
|
12
|
-
@encoder = BSON::BSON_CODER
|
13
|
-
end
|
14
|
-
|
15
|
-
def assert_doc_pass(doc, options={})
|
16
|
-
bson = @encoder.serialize(doc)
|
17
|
-
if options[:debug]
|
18
|
-
puts "DEBUGGING DOC:"
|
19
|
-
p bson.to_a
|
20
|
-
puts "DESERIALIZES TO:"
|
21
|
-
end
|
22
|
-
assert_equal @encoder.serialize(doc).to_a, bson.to_a
|
23
|
-
assert_equal doc, @encoder.deserialize(bson)
|
24
|
-
end
|
25
|
-
|
26
|
-
def test_string
|
27
|
-
assert_doc_pass({:a => "hello"})
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|