bson 1.9.1 → 1.9.2
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +3 -1
- data/VERSION +1 -1
- data/lib/bson/types/object_id.rb +3 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 937db78eae703c14681a7301a2237690395c6760
|
4
|
+
data.tar.gz: ccd89dea00d672b14bda5171a8781821d0f3857b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69075c84bb1cba84f3f52c6421db9c8ee47e7995639a9999ec78b4f7da718d812e664ef3663fe1541b4a4eeb271e1cb2f1a8699ca3d68b476560face66fc191f
|
7
|
+
data.tar.gz: 16a494317eff8f119a8b1df08e5f4fec68c86fc4121b3f2460242c38228d136b1079d5b6c73b11d0ce22e8cc85ea398f2c5340e7c59f521e999c42484e8c6724
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
a�땅0v��e�sG������}߾���Q�c���9 :�t�_�h�:�(0,��n>c������9�eu�pRm�8N�ߦ5㒖��ˢ��8M7�]h�qh)��qZ��{����5���%s|FW��^[�s��RMkY�paF�x���qyF��堆#��g~sO��7��3��@r7>J��l��X]�G����R�YC$�*ըս(��6w�������?CJa�2òUT��9,F&�3�M
|
data.tar.gz.sig
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.2
|
data/lib/bson/types/object_id.rb
CHANGED
@@ -41,6 +41,9 @@ module BSON
|
|
41
41
|
# the remaining bytes will consist of the standard machine id, pid, and counter. If
|
42
42
|
# you need a zeroed timestamp, used ObjectId.from_time.
|
43
43
|
def initialize(data=nil, time=nil)
|
44
|
+
if data && (!data.is_a?(Array) || data.size != 12)
|
45
|
+
raise InvalidObjectId, 'ObjectId requires 12 byte array'
|
46
|
+
end
|
44
47
|
@data = data || generate(time)
|
45
48
|
end
|
46
49
|
|
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.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Brock
|
@@ -33,7 +33,7 @@ cert_chain:
|
|
33
33
|
8v7zLF2XliYbfurYIwkcXs8yPn8ggApBIy9bX6VJxRs/l2+UvqzaHIFaFy/F8/GP
|
34
34
|
RNTuXsVG5NDACo7Q
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2013-
|
36
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
37
37
|
dependencies: []
|
38
38
|
description: A Ruby BSON implementation for MongoDB. For more information about Mongo,
|
39
39
|
see http://www.mongodb.org. For more information on BSON, see http://www.bsonspec.org.
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project: bson
|
86
|
-
rubygems_version: 2.0.
|
86
|
+
rubygems_version: 2.0.7
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Ruby implementation of BSON
|
metadata.gz.sig
CHANGED
Binary file
|