bson 0.20.1 → 1.0
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 +1 -1
- data/lib/bson/bson_ruby.rb +1 -1
- data/lib/bson/types/objectid.rb +1 -1
- data/test/mongo_bson/bson_test.rb +6 -0
- data/test/mongo_bson/objectid_test.rb +2 -1
- metadata +3 -4
data/lib/bson.rb
CHANGED
data/lib/bson/bson_ruby.rb
CHANGED
data/lib/bson/types/objectid.rb
CHANGED
@@ -22,6 +22,12 @@ class BSONTest < Test::Unit::TestCase
|
|
22
22
|
|
23
23
|
include BSON
|
24
24
|
|
25
|
+
def test_serialize_returns_byte_buffer
|
26
|
+
doc = {'doc' => 'hello, world'}
|
27
|
+
bson = BSON.serialize(doc)
|
28
|
+
assert bson.is_a?(ByteBuffer)
|
29
|
+
end
|
30
|
+
|
25
31
|
def test_deprecated_bson_module
|
26
32
|
doc = {'doc' => 'hello, world'}
|
27
33
|
bson = BSON.serialize(doc)
|
metadata
CHANGED
@@ -3,10 +3,9 @@ name: bson
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
-
- 0
|
7
|
-
- 20
|
8
6
|
- 1
|
9
|
-
|
7
|
+
- 0
|
8
|
+
version: "1.0"
|
10
9
|
platform: ruby
|
11
10
|
authors:
|
12
11
|
- Jim Menard
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-04-
|
18
|
+
date: 2010-04-29 00:00:00 -04:00
|
20
19
|
default_executable:
|
21
20
|
dependencies: []
|
22
21
|
|