bson 3.2.6-java → 3.2.7-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -2
- data/Rakefile +1 -1
- data/lib/bson-ruby.jar +0 -0
- data/lib/bson/object_id.rb +7 -2
- data/lib/bson/version.rb +1 -1
- data/spec/bson/object_id_spec.rb +37 -0
- metadata +12 -12
- 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: 2a5293be2b750f0c2995673bdb3bafcf4134b1e3
|
4
|
+
data.tar.gz: 81b1291f4fd4b50983b523defd408eb84fbeba77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a59e4379133878b8cee99a68486663f0bbebef22d20dd92b05466a01e8541f40fc5428cf755febd7b771bcefd5b432f2744c8c35864037c2b636dddd18a2555
|
7
|
+
data.tar.gz: 2be69d69bbbeba1174d65b88d5c069e58f564258cb4bb488f46363f666dfe7cc426b7d0887dca72e5ef0afa15e3386ed083819bc0d67665dfe101d155cb02d7b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
����W)���d="{x��y�RB��w��;���8Ȫ
|
2
|
+
�h��Cf�(eVR�x:e���R/pr,g<����:+y��r��Yv�O�����B�����7�-���d�����Y0=��+���sSy��;�O$�|�Jq�l�ݶ��
|
3
|
+
���T���<?b8�ճз��K��^%�[/�S����N��]������^�DǼ�ɣ�$����`���(�/>qc��}#�}�t���q:%b�������*)y���}���
|
data/Rakefile
CHANGED
data/lib/bson-ruby.jar
CHANGED
Binary file
|
data/lib/bson/object_id.rb
CHANGED
@@ -194,6 +194,11 @@ module BSON
|
|
194
194
|
|
195
195
|
private
|
196
196
|
|
197
|
+
def initialize_copy(other)
|
198
|
+
to_bson
|
199
|
+
other.instance_variable_set(:@raw_data, @raw_data)
|
200
|
+
end
|
201
|
+
|
197
202
|
def repair
|
198
203
|
@raw_data = @data.to_bson_object_id
|
199
204
|
remove_instance_variable(:@data)
|
@@ -253,10 +258,10 @@ module BSON
|
|
253
258
|
# Create a new object id from a time.
|
254
259
|
#
|
255
260
|
# @example Create an object id from a time.
|
256
|
-
# BSON::ObjectId.
|
261
|
+
# BSON::ObjectId.from_time(time)
|
257
262
|
#
|
258
263
|
# @example Create an object id from a time, ensuring uniqueness.
|
259
|
-
# BSON::ObjectId.
|
264
|
+
# BSON::ObjectId.from_time(time, unique: true)
|
260
265
|
#
|
261
266
|
# @param [ Time ] time The time to generate from.
|
262
267
|
# @param [ Hash ] options The options.
|
data/lib/bson/version.rb
CHANGED
data/spec/bson/object_id_spec.rb
CHANGED
@@ -383,6 +383,43 @@ describe BSON::ObjectId do
|
|
383
383
|
end
|
384
384
|
end
|
385
385
|
|
386
|
+
describe "#clone" do
|
387
|
+
|
388
|
+
context "when the data has not been generated yet" do
|
389
|
+
|
390
|
+
let!(:object_id) do
|
391
|
+
described_class.new
|
392
|
+
end
|
393
|
+
|
394
|
+
let!(:clone) do
|
395
|
+
object_id.clone
|
396
|
+
end
|
397
|
+
|
398
|
+
it "generates and copies the data" do
|
399
|
+
expect(clone).to eq(object_id)
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
context "when the data has been generated" do
|
404
|
+
|
405
|
+
let!(:object_id) do
|
406
|
+
described_class.new
|
407
|
+
end
|
408
|
+
|
409
|
+
let(:clone) do
|
410
|
+
object_id.clone
|
411
|
+
end
|
412
|
+
|
413
|
+
before do
|
414
|
+
object_id.to_s
|
415
|
+
end
|
416
|
+
|
417
|
+
it "copies the data" do
|
418
|
+
expect(clone).to eq(object_id)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
386
423
|
describe "#inspect" do
|
387
424
|
|
388
425
|
let(:object_id) do
|
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: 3.2.
|
4
|
+
version: 3.2.7
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Tyler Brock
|
@@ -16,7 +16,7 @@ cert_chain:
|
|
16
16
|
-----BEGIN CERTIFICATE-----
|
17
17
|
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
|
18
18
|
ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
|
19
|
-
|
19
|
+
Y29tMB4XDTE3MDcwMzE0NTAxOFoXDTE4MDcwMzE0NTAxOFowQjEUMBIGA1UEAwwL
|
20
20
|
ZHJpdmVyLXJ1YnkxFTATBgoJkiaJk/IsZAEZFgUxMGdlbjETMBEGCgmSJomT8ixk
|
21
21
|
ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANFdSAa8fRm1
|
22
22
|
bAM9za6Z0fAH4g02bqM1NGnw8zJQrE/PFrFfY6IFCT2AsLfOwr1maVm7iU1+kdVI
|
@@ -27,14 +27,14 @@ cert_chain:
|
|
27
27
|
u8KAcPHm5KkCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
28
28
|
BBYEFFt3WbF+9JpUjAoj62cQBgNb8HzXMCAGA1UdEQQZMBeBFWRyaXZlci1ydWJ5
|
29
29
|
QDEwZ2VuLmNvbTAgBgNVHRIEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5jb20wDQYJ
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
KoZIhvcNAQEFBQADggEBAAf1WueNrStLMBvhVHoXERwehB4y15Duth9WSgLHMv2D
|
31
|
+
xsmGflY0fdykhVTc7GkH2wM2WzLFiPy4SFZlnqgxiuPtpOdVSSjtF0xxCkH7zl0G
|
32
|
+
BANPw/VzoRyeYKiPNTBPxICssceU7MdIeUibjCDQzZE4oNNfWoDn3rpqNgkk6n9H
|
33
|
+
GvK8YqU+WXTfVtb4wKCSUG8S490M1t6ZkSPdHRPLDd3SSLU3VSTfS4eIE9RCZJsr
|
34
|
+
Iar/l8KaXB2Jb5Tx+JzpKjZ9PxbEPbKPLiMvIoL6IzyeZChfwz4SHN/eB8s2nO71
|
35
|
+
7gPoXx2RY+zJKB0K93PwB0c6a4ID4Ok1BvCO2Wnw0T8=
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date:
|
37
|
+
date: 2017-07-03 00:00:00.000000000 Z
|
38
38
|
dependencies: []
|
39
39
|
description: A full featured BSON specification implementation, in Ruby
|
40
40
|
email:
|
@@ -124,17 +124,17 @@ require_paths:
|
|
124
124
|
- lib
|
125
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: 1.9.3
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: 1.3.6
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project: bson
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.6.8
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Ruby Implementation of the BSON specification
|
metadata.gz.sig
CHANGED
Binary file
|