bson 4.2.0.rc0-java → 4.2.0.rc1-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: 27121b5942deab11b383a355fb5018e2577cec8d
4
- data.tar.gz: 721db207affef9b6d0caa67d204bcce4fff54901
3
+ metadata.gz: 5569a79201c43476b8fdc4e8c4a174da9d87799d
4
+ data.tar.gz: e513ddc4a5b5681ecb72652eb44564a40093b89e
5
5
  SHA512:
6
- metadata.gz: a6b48b6dc440d6b982b753b0506646b9727086736d29d9cafc8320552956ba26587b4c0c6e15357cd43f4d573c2bb64a877341b182c5ceb4ac5b65066d31978b
7
- data.tar.gz: 2287495c751b11052e831967505aae5ce06b8b0c3cc913f6e35376ad21497eddb2907cb46e0db1b02437d0fec052b0f28f6c79d52d80932d296557db61c9e6ba
6
+ metadata.gz: 4d9edc30f7d9e07edd6e6a8fa22b57daf5d8a08e020b8ac0fd6fbda4107c2df0594b9ec96b3d5cd7e1f2acd3bdbb6809c76deb554ebfb8fdbad6f6e7357998f7
7
+ data.tar.gz: 9664210d79035ecd9306d7e5242c9bdbdedf890337fad3b06ce6de237f676d833f16b79c93d0b98b553bf4c46440cf6669f9c72b7db7d08d240b769aa594d617
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- 1��0�<59b��hY ����r[WbI�� ^�!�C �3[��f�*ӡ�n��4"w��9���Ը�nlȝj�v݀U�/��
2
- ����������y4ll߁��}EQ���
3
- ��q�
1
+ Zn��t��([dSZ}�����%H���Ď�� 2T��)�3 .��µ�����):��l�ףx+�L�~�l��T1��'SXL1_��ՍͿ4��������ꆗ�y������:vT;zM���2
2
+ 3���a��`���~)J����04�Ai�-O���0=F��1�q`"*���%ן��%5*i��=Ǫ��#����S�ν'��A��z6�V�~%i�&��s �%z�|�DV�
3
+ V(��
Binary file
@@ -91,8 +91,7 @@ require "bson/undefined"
91
91
  require "bson/version"
92
92
 
93
93
  # If we are using JRuby, attempt to load the Java extensions, if we are using
94
- # MRI or Rubinius, attempt to load the C extenstions. If either of these fail,
95
- # we revert back to a pure Ruby implementation of the Buffer class.
94
+ # MRI or Rubinius, attempt to load the C extensions.
96
95
  #
97
96
  # @since 2.0.0
98
97
  begin
@@ -103,5 +102,6 @@ begin
103
102
  require "bson_native"
104
103
  end
105
104
  rescue LoadError
106
- $stderr.puts("BSON is using the pure Ruby implementation.")
105
+ $stderr.puts("Failed to load the necessary extensions.")
106
+ raise
107
107
  end
@@ -52,7 +52,7 @@ module BSON
52
52
  # The native type to which this object can be converted.
53
53
  #
54
54
  # @since 4.2.0
55
- NATIVE_TYPE = BigDecimal.freeze
55
+ NATIVE_TYPE = BigDecimal
56
56
 
57
57
  # Get the Decimal128 as JSON hash data.
58
58
  #
@@ -61,7 +61,7 @@ module BSON
61
61
  #
62
62
  # @since 2.0.0
63
63
  def as_json(*args)
64
- { "t" => seconds, "i" => increment }
64
+ { "$timestamp" => { "t" => seconds, "i" => increment } }
65
65
  end
66
66
 
67
67
  # Instantiate the new timestamp.
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "4.2.0.rc0".freeze
16
+ VERSION = "4.2.0.rc1".freeze
17
17
  end
@@ -55,7 +55,7 @@ describe BSON::Timestamp do
55
55
  end
56
56
 
57
57
  it "returns the binary data plus type" do
58
- expect(object.as_json).to eq({ "t" => 10, "i" => 50 })
58
+ expect(object.as_json).to eq({"$timestamp" => { "t" => 10, "i" => 50 } })
59
59
  end
60
60
 
61
61
  it_behaves_like "a JSON serializable object"
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: 4.2.0.rc0
4
+ version: 4.2.0.rc1
5
5
  platform: java
6
6
  authors:
7
7
  - Tyler Brock
@@ -34,7 +34,7 @@ cert_chain:
34
34
  yVPbgNJA2D/PnLe8ZFMhgJf+VIA1V4oybP/o+9aqlghTtNfYHJpRCAluUiaywwXl
35
35
  KzD4mmIBpxtbWrWB3hx7tsVJmWx5zgO9aDAfvWnXfoo=
36
36
  -----END CERTIFICATE-----
37
- date: 2016-09-19 00:00:00.000000000 Z
37
+ date: 2016-11-01 00:00:00.000000000 Z
38
38
  dependencies: []
39
39
  description: A full featured BSON specification implementation, in Ruby
40
40
  email:
@@ -140,17 +140,17 @@ require_paths:
140
140
  - lib
141
141
  required_ruby_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 1.9.3
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - '>='
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: 1.3.6
151
151
  requirements: []
152
152
  rubyforge_project: bson
153
- rubygems_version: 2.4.8
153
+ rubygems_version: 2.6.6
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Ruby Implementation of the BSON specification
metadata.gz.sig CHANGED
Binary file