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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04c16d9d49484c220c136855e7038a9eb8674783
4
- data.tar.gz: 12f8402c537f261b6d639bd762b84d4d2aa20354
3
+ metadata.gz: 7f26a7b8ccb6c0548531e355c034502829b34de1
4
+ data.tar.gz: 8f375a231324b77bab2e4560f280fe0d75cfdb8f
5
5
  SHA512:
6
- metadata.gz: a1b8acc2247afd554a02a08f789766148efb02301a571a123316938cb5462216ba51ac35caeb62ffbeb9f777b4b89e39d96dd57fef87e4b5619ebae572f298e7
7
- data.tar.gz: 80702a5ffae74a8db8464773c32674ecd425468a36319a30e8de7d9e912e840462aaf70262ea91d37b170c828309decb1d5facb856445a60c7f93e675c0773f1
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 normazlied array.
76
+ # @return [ Array ] The normalized array.
77
77
  #
78
78
  # @since 3.0.0
79
79
  def to_bson_normalized_value
80
- map!{ |value| value.to_bson_normalized_value }
80
+ map { |value| value.to_bson_normalized_value }
81
81
  end
82
82
 
83
83
  module ClassMethods
data/lib/bson/version.rb CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "3.2.1"
16
+ VERSION = "3.2.3"
17
17
  end
@@ -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
@@ -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("l2") }
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.1
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-07-30 00:00:00.000000000 Z
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