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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39c5fae670a686e0b7ca1009abd4648bc42b6401
4
- data.tar.gz: 1d6cf649502763ff02b8462af4759fcd618f3cf3
3
+ metadata.gz: 937db78eae703c14681a7301a2237690395c6760
4
+ data.tar.gz: ccd89dea00d672b14bda5171a8781821d0f3857b
5
5
  SHA512:
6
- metadata.gz: 80621a687bbb95c7fefab42acca539d5feff018734061a5684efc2331f161716efb8434c52258d04995e45f6054450e7ff17055b245dceba83ed42dea9bda349
7
- data.tar.gz: ca0323d3ad8180d220dc2dde7b449e54a5fd54250bbb594c0e239371d999ba97de0d48ea64130705faf8e5d815eeddd12e2553e8fbf4f38548b2acf5c9b3e9ef
6
+ metadata.gz: 69075c84bb1cba84f3f52c6421db9c8ee47e7995639a9999ec78b4f7da718d812e664ef3663fe1541b4a4eeb271e1cb2f1a8699ca3d68b476560face66fc191f
7
+ data.tar.gz: 16a494317eff8f119a8b1df08e5f4fec68c86fc4121b3f2460242c38228d136b1079d5b6c73b11d0ce22e8cc85ea398f2c5340e7c59f521e999c42484e8c6724
@@ -1 +1 @@
1
- *��������?U���� �vӥ��еY,նP$!QI5��&
1
+ a�땅0v��e�sG������}߾���Q�c���9 :�t�_�h�:�(0,��n>c������9�eu�pRm�8N�ߦ5㒖��ˢ��8M”7�]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
@@ -1 +1,3 @@
1
- s�&��0#vtn��������K�~�+� ?��M�Yd�z�m����1ZX���� ��,
1
+ 0�^h�=�e�Oޡ
2
+ 9,4z#�D��N����j��M��/=�7䞔3y�\Uz��(�O�=L=͍�M�*7g�*\�|�$����e;d!r��h�R�H�1�>L��l�8�b�0��,c�Qn��#��b!��
3
+ *֑M¸
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.1
1
+ 1.9.2
@@ -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.1
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-07-09 00:00:00.000000000 Z
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.3
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