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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b54a207fcf892998eddef3722b31d1007cb2d2ed
4
- data.tar.gz: b2f341d0bd70e96f9fde14f70fcb41aa13603c31
3
+ metadata.gz: 2a5293be2b750f0c2995673bdb3bafcf4134b1e3
4
+ data.tar.gz: 81b1291f4fd4b50983b523defd408eb84fbeba77
5
5
  SHA512:
6
- metadata.gz: 19645bb9a29de8bf44f8494a487c42aa8d5305ac37ef1ef5ce3cb9201c1b242a0c2c2bcf9e19872b7a0e49257c4dd46ef1f5968616cac1606296a6f5ce4deaf1
7
- data.tar.gz: 5e402c6f0af5a8a9960cf757717ae1827b5ffe130eda593065d600e64217b822d7540ddcff683233102645cf954f318f997a5596bef18ea7aceaeb07d41988f7
6
+ metadata.gz: 1a59e4379133878b8cee99a68486663f0bbebef22d20dd92b05466a01e8541f40fc5428cf755febd7b771bcefd5b432f2744c8c35864037c2b636dddd18a2555
7
+ data.tar.gz: 2be69d69bbbeba1174d65b88d5c069e58f564258cb4bb488f46363f666dfe7cc426b7d0887dca72e5ef0afa15e3386ed083819bc0d67665dfe101d155cb02d7b
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- 2��I��Tݳ�mݴ�ZLJS�w[�V�����6_�_��6�T*�!s\��$�Za��ˊ��/8%�R+p�I�d�樁�z`�X�o���o�u݀����g�r�y��^Mq!����`�%�US��$�83~��R9Lvݰ�{��Z(�-�T��P��&{m��q+��V��`.0 ���&��'
2
- �n]\�L�@��uiL~�ӝ^E,�t&K6]#m�����w�^��m+����$�5Y$:�cL&g��f349Eq5
1
+ ����W)���d="{x��y�RB��w� �;���8Ȫ
2
+ �h��Cf�(eVR�x:e���R/pr,g<����:+y��r��YvO�����B�����7�-���d�����Y0=��+���sSy��;�O$�|�Jql�ݶ��
3
+ ���T���<?b8�ճз��K��^%�[/�S����N�›�]������^�DǼ�ɣ�$����`���(�/>qc��}#�}�t���q:%b�������*)y� ��}���
data/Rakefile CHANGED
@@ -47,7 +47,7 @@ def extension
47
47
  RUBY_PLATFORM =~ /darwin/ ? "bundle" : "so"
48
48
  end
49
49
 
50
- require_relative "perf/bench" unless jruby?
50
+ require_relative "perf/bench"
51
51
 
52
52
  RSpec::Core::RakeTask.new(:spec)
53
53
  RSpec::Core::RakeTask.new(:rspec)
Binary file
@@ -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.from_id(time)
261
+ # BSON::ObjectId.from_time(time)
257
262
  #
258
263
  # @example Create an object id from a time, ensuring uniqueness.
259
- # BSON::ObjectId.from_id(time, unique: true)
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.
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "3.2.6"
16
+ VERSION = "3.2.7"
17
17
  end
@@ -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.6
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
- Y29tMB4XDTE1MDMzMTA5NDIzNVoXDTE2MDMzMDA5NDIzNVowQjEUMBIGA1UEAwwL
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
- KoZIhvcNAQEFBQADggEBAH+jEbhVRjZke7ZgM3EjERSblLM8RtHZBczjQKuG0Eor
31
- HUF/hyq7D+mz75Ch7K8m5NRwvppePbBV4lAF+DzuDGjh+V6cz4wNKaWWFIL8eNCY
32
- F+0vDVtGok06CXnb2swHEtd1Z8zpQviJ3xpSGAvF88+glzvPQmCyA071kPUAmDvd
33
- 5og5x3Bv8IxaxmEpFndXhT3NHL/tOBeT9VJuJWMCxOXRCv4y9bBBTrxoRVuos59Z
34
- XZOS48LlWh15EG4yZo/gRzqNAW2LUIkYA5eMS2Kp6r+KV8IBUO/LaHdrXbdilpa8
35
- BRsuCo7UZDbFVRns04HLyjVvkj+K/ywIcdKdS0csz5M=
30
+ KoZIhvcNAQEFBQADggEBAAf1WueNrStLMBvhVHoXERwehB4y15Duth9WSgLHMv2D
31
+ xsmGflY0fdykhVTc7GkH2wM2WzLFiPy4SFZlnqgxiuPtpOdVSSjtF0xxCkH7zl0G
32
+ BANPw/VzoRyeYKiPNTBPxICssceU7MdIeUibjCDQzZE4oNNfWoDn3rpqNgkk6n9H
33
+ GvK8YqU+WXTfVtb4wKCSUG8S490M1t6ZkSPdHRPLDd3SSLU3VSTfS4eIE9RCZJsr
34
+ Iar/l8KaXB2Jb5Tx+JzpKjZ9PxbEPbKPLiMvIoL6IzyeZChfwz4SHN/eB8s2nO71
35
+ 7gPoXx2RY+zJKB0K93PwB0c6a4ID4Ok1BvCO2Wnw0T8=
36
36
  -----END CERTIFICATE-----
37
- date: 2015-10-08 00:00:00.000000000 Z
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.4.5
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