bson 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bson might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +7 -0
- data/lib/bson/boolean.rb +1 -1
- data/lib/bson/version.rb +1 -1
- data/spec/spec_helper.rb +14 -0
- data/spec/support/shared_examples.rb +15 -0
- metadata +10 -10
- 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: 4ac84fbcc70f8632f4307aad22bd38d33d03c0a0
|
4
|
+
data.tar.gz: e15158b63b32006e7ed77bde63daac6aa4931637
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b19fa4b7b1de4a48e4bb616812be5c2a3bca4691cfea5b229554ef2f8ca0ca62d788973afe38cc6bbfd4e7ef8e8a6f6acf00198ed097d5b5d268bc152468ae8
|
7
|
+
data.tar.gz: 89f2ff69f1f03dc7bb78213be4addbd06053339b53b17364181810e23e3fadd2cacaa236da296af9eda6ed7047042d5be3187f77da87e06713f896b5779891af
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
BSON Changelog
|
2
2
|
==============
|
3
3
|
|
4
|
+
## 3.0.2
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* [RUBY-898](https://jira.mongodb.org/browse/RUBY-898) Compensated for different
|
9
|
+
return values of Socket#readbyte and OpenSSL::SSL::SSLSocket#readbyte.
|
10
|
+
|
4
11
|
## 3.0.1
|
5
12
|
|
6
13
|
### Bug Fixes
|
data/lib/bson/boolean.rb
CHANGED
data/lib/bson/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -30,3 +30,17 @@ require "rspec"
|
|
30
30
|
require "yaml"
|
31
31
|
|
32
32
|
Dir["./spec/support/**/*.rb"].each { |file| require file }
|
33
|
+
|
34
|
+
# Alternate IO class that returns a String from #readbyte.
|
35
|
+
# See RUBY-898 for more information on why we need to test this.
|
36
|
+
# Ruby core documentation says IO#readbyte returns a Fixnum, but
|
37
|
+
# OpenSSL::SSL::SSLSocket#readbyte returns a String.
|
38
|
+
class AlternateIO < StringIO
|
39
|
+
|
40
|
+
# Read a byte from the stream.
|
41
|
+
#
|
42
|
+
# @returns [ String ] A String representation of the next byte.
|
43
|
+
def readbyte
|
44
|
+
super.chr
|
45
|
+
end
|
46
|
+
end
|
@@ -64,6 +64,21 @@ shared_examples_for "a deserializable bson element" do
|
|
64
64
|
it "deserializes from bson" do
|
65
65
|
expect(result).to eq(obj)
|
66
66
|
end
|
67
|
+
|
68
|
+
context 'when io#readbyte returns a String' do
|
69
|
+
|
70
|
+
let(:io) do
|
71
|
+
AlternateIO.new(bson)
|
72
|
+
end
|
73
|
+
|
74
|
+
let(:result) do
|
75
|
+
described_class.from_bson(io)
|
76
|
+
end
|
77
|
+
|
78
|
+
it "deserializes from bson" do
|
79
|
+
expect(result).to eq(obj)
|
80
|
+
end
|
81
|
+
end
|
67
82
|
end
|
68
83
|
|
69
84
|
shared_examples_for "a JSON serializable object" 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.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Brock
|
@@ -16,7 +16,7 @@ cert_chain:
|
|
16
16
|
-----BEGIN CERTIFICATE-----
|
17
17
|
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
|
18
18
|
Z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ywIcdKdS0csz5M=
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2015-
|
37
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
38
38
|
dependencies: []
|
39
39
|
description: A full featured BSON specification implementation, in Ruby
|
40
40
|
email:
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: 1.3.6
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project: bson
|
139
|
-
rubygems_version: 2.4.
|
139
|
+
rubygems_version: 2.4.5
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Ruby Implementation of the BSON specification
|
metadata.gz.sig
CHANGED
Binary file
|