bson 1.9.1.rc0-java → 1.9.2-java

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.
data.tar.gz.sig CHANGED
Binary file
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.1.rc0
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,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1.rc0
5
- prerelease: 6
4
+ version: 1.9.2
5
+ prerelease:
6
6
  platform: java
7
7
  authors:
8
8
  - Tyler Brock
@@ -34,7 +34,7 @@ cert_chain:
34
34
  8v7zLF2XliYbfurYIwkcXs8yPn8ggApBIy9bX6VJxRs/l2+UvqzaHIFaFy/F8/GP
35
35
  RNTuXsVG5NDACo7Q
36
36
  -----END CERTIFICATE-----
37
- date: 2013-07-02 00:00:00.000000000 Z
37
+ date: 2013-08-21 00:00:00.000000000 Z
38
38
  dependencies: []
39
39
  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.
40
40
  email: mongodb-dev@googlegroups.com
@@ -80,9 +80,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  none: false
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - '>'
83
+ - - '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 1.3.1
85
+ version: '0'
86
86
  none: false
87
87
  requirements: []
88
88
  rubyforge_project: bson
metadata.gz.sig CHANGED
Binary file