bson 4.2.0.rc0 → 4.2.0.rc1

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: 6d09affc4bd194e0800ec1b21bc130b760ce0a34
4
- data.tar.gz: d084710b111c72364781cfebb6492b51abd22f91
3
+ metadata.gz: a7d7c6cc6a8abff094af51c1a8432494d09c1f72
4
+ data.tar.gz: f9994f21778f1c9e15e42c668df5321ceab814e5
5
5
  SHA512:
6
- metadata.gz: 6db9a4decef8b08a8d16dcbbd16c299027209ae4e25c43edc67e8a629da779df2df144f875775ed9ffd7974d081d744d61926168207e3275fdb2dde25922f65e
7
- data.tar.gz: 425e006755d2ea79ec961717e736f6cdac44b230364874815bafd056deef5dcbe4e7adc13e8fc2861ce95ae299292cb4fbff577612b3130018c7e8cbb83ba58f
6
+ metadata.gz: 41d44df3cbad351bbc8eb9108d71c2052ce9dc7a54af97c2663f60e92f860408e6d393bbe8f16ed0d62b3c8d183e7edf011de518b479840b4df749a080837ea5
7
+ data.tar.gz: baa1976590ed70238de71cb312db9252cbe47bbc95ba6bd407a85989d84df03f01788a5f3cee4de204af2f4e7f35cdeaea037aec601f2ebb475f7e87d8fc5d35
Binary file
data.tar.gz.sig CHANGED
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: ruby
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:
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: 1.3.6
154
154
  requirements: []
155
155
  rubyforge_project: bson
156
- rubygems_version: 2.4.5.1
156
+ rubygems_version: 2.5.1
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Ruby Implementation of the BSON specification
metadata.gz.sig CHANGED
Binary file