bson 3.2.1-java → 3.2.3-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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +10 -0
- data/lib/bson-ruby.jar +0 -0
- data/lib/bson/array.rb +2 -2
- data/lib/bson/version.rb +1 -1
- data/spec/bson/array_spec.rb +13 -0
- data/spec/bson/timestamp_spec.rb +1 -1
- metadata +2 -2
- 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: 7f26a7b8ccb6c0548531e355c034502829b34de1
|
4
|
+
data.tar.gz: 8f375a231324b77bab2e4560f280fe0d75cfdb8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce3ae7127770804eead1d2af180f28af63399ab1eda8f8b4047e0c500e7749966b1c469827b6d245efc391179b5647100c2cdfca00a41b45dff047e7de28866
|
7
|
+
data.tar.gz: f58f0144e81a0cf2b9079d48741840da6881a1351e150b3654bbf1a199ffc0bd7363cd9325e7be243e6c91207899948bcc8999d530812a82506a7b5676ff4022
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
BSON Changelog
|
2
2
|
==============
|
3
3
|
|
4
|
+
## 3.2.3
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* [#41](https://github.com/mongodb/bson-ruby/pull/41) Normalizing arrays does not mutate. (Agis Anastasopoulos)
|
9
|
+
|
10
|
+
* [#40](https://github.com/mongodb/bson-ruby/pull/40) Added big endian support. (Jeff Blight)
|
11
|
+
|
12
|
+
* [RUBY-1019](https://jira.mongodb.org/browse/RUBY-1019) Performace improvements on deserialization.
|
13
|
+
|
4
14
|
## 3.2.1
|
5
15
|
|
6
16
|
### Bug Fixes
|
data/lib/bson-ruby.jar
CHANGED
Binary file
|
data/lib/bson/array.rb
CHANGED
@@ -73,11 +73,11 @@ module BSON
|
|
73
73
|
# @example Convert the array to a normalized value.
|
74
74
|
# array.to_bson_normalized_value
|
75
75
|
#
|
76
|
-
# @return [ Array ] The
|
76
|
+
# @return [ Array ] The normalized array.
|
77
77
|
#
|
78
78
|
# @since 3.0.0
|
79
79
|
def to_bson_normalized_value
|
80
|
-
map
|
80
|
+
map { |value| value.to_bson_normalized_value }
|
81
81
|
end
|
82
82
|
|
83
83
|
module ClassMethods
|
data/lib/bson/version.rb
CHANGED
data/spec/bson/array_spec.rb
CHANGED
@@ -29,6 +29,19 @@ describe Array do
|
|
29
29
|
it_behaves_like "a deserializable bson element"
|
30
30
|
end
|
31
31
|
|
32
|
+
describe "#to_bson_normalized_value" do
|
33
|
+
|
34
|
+
let(:klass) { Class.new(Hash) }
|
35
|
+
let(:obj) {[ Foo.new ]}
|
36
|
+
|
37
|
+
before(:each) { stub_const "Foo", klass }
|
38
|
+
|
39
|
+
it "does not mutate the receiver" do
|
40
|
+
obj.to_bson_normalized_value
|
41
|
+
expect(obj.first.class).to eq(Foo)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
32
45
|
describe "#to_bson_object_id" do
|
33
46
|
|
34
47
|
context "when the array has 12 elements" do
|
data/spec/bson/timestamp_spec.rb
CHANGED
@@ -65,7 +65,7 @@ describe BSON::Timestamp do
|
|
65
65
|
|
66
66
|
let(:type) { 17.chr }
|
67
67
|
let(:obj) { described_class.new(1, 10) }
|
68
|
-
let(:bson) { [ 10, 1 ].pack(
|
68
|
+
let(:bson) { [ 10, 1 ].pack(BSON::Int32::PACK * 2) }
|
69
69
|
|
70
70
|
it_behaves_like "a bson element"
|
71
71
|
it_behaves_like "a serializable bson element"
|
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.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Tyler Brock
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
XZOS48LlWh15EG4yZo/gRzqNAW2LUIkYA5eMS2Kp6r+KV8IBUO/LaHdrXbdilpa8
|
35
35
|
BRsuCo7UZDbFVRns04HLyjVvkj+K/ywIcdKdS0csz5M=
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2015-
|
37
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
38
38
|
dependencies: []
|
39
39
|
description: A full featured BSON specification implementation, in Ruby
|
40
40
|
email:
|
metadata.gz.sig
CHANGED
Binary file
|