bson 1.12.5-java → 2.0.0-java
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 +80 -0
- data/CONTRIBUTING.md +42 -0
- data/NOTICE +2 -0
- data/README.md +190 -0
- data/Rakefile +109 -0
- data/lib/bson-ruby.jar +0 -0
- data/lib/bson.rb +60 -87
- data/lib/bson/array.rb +104 -0
- data/lib/bson/binary.rb +193 -0
- data/lib/bson/boolean.rb +48 -0
- data/lib/bson/code.rb +109 -0
- data/lib/bson/code_with_scope.rb +120 -0
- data/lib/bson/document.rb +549 -0
- data/lib/bson/encodable.rb +86 -0
- data/lib/bson/environment.rb +98 -0
- data/lib/bson/false_class.rb +61 -0
- data/lib/bson/float.rb +82 -0
- data/lib/bson/hash.rb +84 -0
- data/lib/bson/int32.rb +59 -0
- data/lib/bson/int64.rb +59 -0
- data/lib/bson/integer.rb +185 -0
- data/lib/bson/json.rb +37 -0
- data/lib/bson/max_key.rb +70 -0
- data/lib/bson/min_key.rb +70 -0
- data/lib/bson/nil_class.rb +70 -0
- data/lib/bson/object_id.rb +395 -0
- data/lib/bson/regexp.rb +124 -0
- data/lib/bson/registry.rb +70 -0
- data/lib/bson/specialized.rb +74 -0
- data/lib/bson/string.rb +203 -0
- data/lib/bson/symbol.rb +87 -0
- data/lib/bson/time.rb +72 -0
- data/lib/bson/timestamp.rb +113 -0
- data/lib/bson/true_class.rb +61 -0
- data/lib/bson/undefined.rb +74 -0
- data/lib/bson/version.rb +17 -0
- data/spec/bson/array_spec.rb +58 -0
- data/spec/bson/binary_spec.rb +115 -0
- data/spec/bson/boolean_spec.rb +48 -0
- data/spec/bson/code_spec.rb +42 -0
- data/spec/bson/code_with_scope_spec.rb +74 -0
- data/spec/bson/document_spec.rb +778 -0
- data/spec/bson/false_class_spec.rb +28 -0
- data/spec/bson/float_spec.rb +29 -0
- data/spec/bson/hash_spec.rb +56 -0
- data/spec/bson/int32_spec.rb +28 -0
- data/spec/bson/int64_spec.rb +28 -0
- data/spec/bson/integer_spec.rb +76 -0
- data/spec/bson/json_spec.rb +53 -0
- data/spec/bson/max_key_spec.rb +75 -0
- data/spec/bson/min_key_spec.rb +75 -0
- data/spec/bson/nil_class_spec.rb +29 -0
- data/spec/bson/object_id_spec.rb +527 -0
- data/spec/bson/regexp_spec.rb +89 -0
- data/spec/bson/registry_spec.rb +55 -0
- data/spec/bson/string_spec.rb +298 -0
- data/spec/bson/symbol_spec.rb +55 -0
- data/spec/bson/time_spec.rb +43 -0
- data/spec/bson/timestamp_spec.rb +74 -0
- data/spec/bson/true_class_spec.rb +28 -0
- data/spec/bson/undefined_spec.rb +29 -0
- data/{lib/bson/types/dbref.rb → spec/bson_spec.rb} +22 -16
- data/spec/spec_helper.rb +32 -0
- data/spec/support/shared_examples.rb +95 -0
- metadata +116 -48
- metadata.gz.sig +1 -1
- data/VERSION +0 -1
- data/bin/b2json +0 -63
- data/bin/j2bson +0 -64
- data/bson.gemspec +0 -34
- data/ext/jbson/lib/java-bson.jar +0 -0
- data/ext/jbson/target/jbson.jar +0 -0
- data/lib/bson/bson_c.rb +0 -37
- data/lib/bson/bson_java.rb +0 -49
- data/lib/bson/bson_ruby.rb +0 -645
- data/lib/bson/byte_buffer.rb +0 -241
- data/lib/bson/exceptions.rb +0 -37
- data/lib/bson/grow.rb +0 -173
- data/lib/bson/ordered_hash.rb +0 -197
- data/lib/bson/support/hash_with_indifferent_access.rb +0 -174
- data/lib/bson/types/binary.rb +0 -52
- data/lib/bson/types/code.rb +0 -55
- data/lib/bson/types/min_max_keys.rb +0 -56
- data/lib/bson/types/object_id.rb +0 -226
- data/lib/bson/types/regex.rb +0 -116
- data/lib/bson/types/timestamp.rb +0 -72
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "spec_helper"
|
16
|
+
|
17
|
+
describe Time do
|
18
|
+
|
19
|
+
describe "#to_bson/#from_bson" do
|
20
|
+
|
21
|
+
let(:type) { 9.chr }
|
22
|
+
|
23
|
+
it_behaves_like "a bson element"
|
24
|
+
|
25
|
+
context "when the time is post epoch" do
|
26
|
+
|
27
|
+
let(:obj) { Time.utc(2012, 1, 1, 0, 0, 0) }
|
28
|
+
let(:bson) { [ (obj.to_f * 1000).to_i ].pack(BSON::Int64::PACK) }
|
29
|
+
|
30
|
+
it_behaves_like "a serializable bson element"
|
31
|
+
it_behaves_like "a deserializable bson element"
|
32
|
+
end
|
33
|
+
|
34
|
+
context "when the time is pre epoch" do
|
35
|
+
|
36
|
+
let(:obj) { Time.utc(1969, 1, 1, 0, 0, 0) }
|
37
|
+
let(:bson) { [ (obj.to_f * 1000).to_i ].pack(BSON::Int64::PACK) }
|
38
|
+
|
39
|
+
it_behaves_like "a serializable bson element"
|
40
|
+
it_behaves_like "a deserializable bson element"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "spec_helper"
|
16
|
+
|
17
|
+
describe BSON::Timestamp do
|
18
|
+
|
19
|
+
describe "#==" do
|
20
|
+
|
21
|
+
let(:timestamp) do
|
22
|
+
described_class.new(1, 10)
|
23
|
+
end
|
24
|
+
|
25
|
+
context "when the objects are equal" do
|
26
|
+
|
27
|
+
let(:other) { described_class.new(1, 10) }
|
28
|
+
|
29
|
+
it "returns true" do
|
30
|
+
expect(timestamp).to eq(other)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
context "when the objects are not equal" do
|
35
|
+
|
36
|
+
let(:other) { described_class.new(1, 15) }
|
37
|
+
|
38
|
+
it "returns false" do
|
39
|
+
expect(timestamp).to_not eq(other)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
context "when the other object is not a timestamp" do
|
44
|
+
|
45
|
+
it "returns false" do
|
46
|
+
expect(timestamp).to_not eq("test")
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
describe "#as_json" do
|
52
|
+
|
53
|
+
let(:object) do
|
54
|
+
described_class.new(10, 50)
|
55
|
+
end
|
56
|
+
|
57
|
+
it "returns the binary data plus type" do
|
58
|
+
expect(object.as_json).to eq({ "t" => 10, "i" => 50 })
|
59
|
+
end
|
60
|
+
|
61
|
+
it_behaves_like "a JSON serializable object"
|
62
|
+
end
|
63
|
+
|
64
|
+
describe "#to_bson/#from_bson" do
|
65
|
+
|
66
|
+
let(:type) { 17.chr }
|
67
|
+
let(:obj) { described_class.new(1, 10) }
|
68
|
+
let(:bson) { [ 10, 1 ].pack("l2") }
|
69
|
+
|
70
|
+
it_behaves_like "a bson element"
|
71
|
+
it_behaves_like "a serializable bson element"
|
72
|
+
it_behaves_like "a deserializable bson element"
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "spec_helper"
|
16
|
+
|
17
|
+
describe TrueClass do
|
18
|
+
|
19
|
+
describe "#to_bson" do
|
20
|
+
|
21
|
+
let(:obj) { true }
|
22
|
+
let(:bson) { 1.chr }
|
23
|
+
let(:type) { 8.chr }
|
24
|
+
|
25
|
+
it_behaves_like "a bson element"
|
26
|
+
it_behaves_like "a serializable bson element"
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "spec_helper"
|
16
|
+
|
17
|
+
describe BSON::Undefined do
|
18
|
+
|
19
|
+
describe "#to_bson/#from_bson" do
|
20
|
+
|
21
|
+
let(:type) { 6.chr }
|
22
|
+
let(:obj) { described_class.new }
|
23
|
+
let(:bson) { BSON::NO_VALUE }
|
24
|
+
|
25
|
+
it_behaves_like "a bson element"
|
26
|
+
it_behaves_like "a serializable bson element"
|
27
|
+
it_behaves_like "a deserializable bson element"
|
28
|
+
end
|
29
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-2013 MongoDB
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -12,29 +12,35 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
-
|
15
|
+
require "spec_helper"
|
16
16
|
|
17
|
-
|
18
|
-
class DBRef
|
17
|
+
describe BSON do
|
19
18
|
|
20
|
-
|
19
|
+
describe "::BINARY" do
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
# @param [String] namespace a collection name.
|
25
|
-
# @param [ObjectId] object_id an object id.
|
26
|
-
def initialize(namespace, object_id)
|
27
|
-
@namespace = namespace
|
28
|
-
@object_id = object_id
|
21
|
+
it "returns BINARY" do
|
22
|
+
expect(BSON::BINARY).to eq("BINARY")
|
29
23
|
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "::NO_VAUE" do
|
30
27
|
|
31
|
-
|
32
|
-
|
28
|
+
it "returns an empty string" do
|
29
|
+
expect(BSON::NO_VALUE).to be_empty
|
33
30
|
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "::NULL_BYTE" do
|
34
34
|
|
35
|
-
|
36
|
-
|
35
|
+
it "returns the char 0x00" do
|
36
|
+
expect(BSON::NULL_BYTE).to eq(0.chr)
|
37
37
|
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "::UTF8" do
|
38
41
|
|
42
|
+
it "returns UTF-8" do
|
43
|
+
expect(BSON::UTF8).to eq("UTF-8")
|
44
|
+
end
|
39
45
|
end
|
40
46
|
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
16
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
17
|
+
|
18
|
+
if ENV["CI"]
|
19
|
+
require "simplecov"
|
20
|
+
require "coveralls"
|
21
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
22
|
+
SimpleCov.start do
|
23
|
+
add_filter "spec"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
require "bson"
|
28
|
+
require "json"
|
29
|
+
require "rspec"
|
30
|
+
require "yaml"
|
31
|
+
|
32
|
+
Dir["./spec/support/**/*.rb"].each { |file| require file }
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# Copyright (C) 2009-2013 MongoDB Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
shared_examples_for "a binary encoded string" do
|
16
|
+
|
17
|
+
let(:binary_encoding) do
|
18
|
+
Encoding.find(BSON::BINARY)
|
19
|
+
end
|
20
|
+
|
21
|
+
unless RUBY_VERSION < "1.9"
|
22
|
+
it "returns the string with binary encoding" do
|
23
|
+
expect(encoded.encoding).to eq(binary_encoding)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
shared_examples_for "a bson element" do
|
29
|
+
|
30
|
+
let(:element) do
|
31
|
+
defined?(obj) ? obj : described_class.new
|
32
|
+
end
|
33
|
+
|
34
|
+
it "has the correct single byte BSON type" do
|
35
|
+
expect(element.bson_type).to eq(type)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
shared_examples_for "a serializable bson element" do
|
40
|
+
|
41
|
+
let(:previous_content) do
|
42
|
+
'previous_content'.force_encoding(BSON::BINARY)
|
43
|
+
end
|
44
|
+
|
45
|
+
it "serializes to bson" do
|
46
|
+
expect(obj.to_bson).to eq(bson)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "serializes to bson by appending" do
|
50
|
+
expect(obj.to_bson(previous_content)).to eq(previous_content << bson)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
shared_examples_for "a deserializable bson element" do
|
55
|
+
|
56
|
+
let(:io) do
|
57
|
+
StringIO.new(bson)
|
58
|
+
end
|
59
|
+
|
60
|
+
it "deserializes from bson" do
|
61
|
+
expect(described_class.from_bson(io)).to eq(obj)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
shared_examples_for "a JSON serializable object" do
|
66
|
+
|
67
|
+
it "serializes the JSON from #as_json" do
|
68
|
+
expect(object.to_json).to eq(object.as_json.to_json)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
shared_examples_for "immutable when frozen" do |block|
|
73
|
+
|
74
|
+
context "when the document is frozen" do
|
75
|
+
|
76
|
+
before do
|
77
|
+
doc.freeze
|
78
|
+
end
|
79
|
+
|
80
|
+
it "raises a runtime error" do
|
81
|
+
expect {
|
82
|
+
block.call(doc)
|
83
|
+
}.to raise_error(RuntimeError)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
shared_examples_for "a document able to handle utf-8" do
|
89
|
+
|
90
|
+
it "serializes and deserializes properly" do
|
91
|
+
expect(
|
92
|
+
BSON::Document.from_bson(StringIO.new(document.to_bson))
|
93
|
+
).to eq(document)
|
94
|
+
end
|
95
|
+
end
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
|
-
- Emily Stolfo
|
8
|
-
- Durran Jordan
|
9
|
-
- Gary Murakami
|
10
7
|
- Tyler Brock
|
8
|
+
- Durran Jordan
|
11
9
|
- Brandon Black
|
10
|
+
- Emily Stolfo
|
11
|
+
- Gary Murakami
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain:
|
15
15
|
- |
|
16
16
|
-----BEGIN CERTIFICATE-----
|
17
|
-
|
17
|
+
MIIDODCCAiCgAwIBAgIBADANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
|
18
18
|
ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
|
19
|
-
|
19
|
+
Y29tMB4XDTEzMDIwMTE0MTEzN1oXDTE0MDIwMTE0MTEzN1owQjEUMBIGA1UEAwwL
|
20
20
|
ZHJpdmVyLXJ1YnkxFTATBgoJkiaJk/IsZAEZFgUxMGdlbjETMBEGCgmSJomT8ixk
|
21
21
|
ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANFdSAa8fRm1
|
22
22
|
bAM9za6Z0fAH4g02bqM1NGnw8zJQrE/PFrFfY6IFCT2AsLfOwr1maVm7iU1+kdVI
|
@@ -24,50 +24,90 @@ cert_chain:
|
|
24
24
|
JxmcPYs5fDN6BgYc6XXgUjy3m+Kwha2pGctdciUOwEfOZ4RmNRlEZKCMLRHdFP8j
|
25
25
|
4WTnJSGfXDiuoXICJb5yOPOZPuaapPSNXp93QkUdsqdKC32I+KMpKKYGBQ6yisfA
|
26
26
|
5MyVPPCzLR1lP5qXVGJPnOqUAkvEUfCahg7EP9tI20qxiXrR6TSEraYhIFXL0EGY
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
BRsuCo7UZDbFVRns04HLyjVvkj+K/ywIcdKdS0csz5M=
|
27
|
+
u8KAcPHm5KkCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUW3dZsX70mlSM
|
28
|
+
CiPrZxAGA1vwfNcwCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IBAQCIa/Y6
|
29
|
+
xS7YWBxkn9WP0EMnJ3pY9vef9DTmLSi/2jz8PzwlKQ89zNTrqSUD8LoQZmBqCJBt
|
30
|
+
dKSQ/RUnaHJuxh8HWvWubP8EBYTuf+I1DFnRv648IF3MR1tCQumVL0XcYMvZcxBj
|
31
|
+
a/p+8DomWTQqUdNbNoGywwjtVBWfDdwFV8Po1XcN/AtpILOJQd9J77INIGGCHxZo
|
32
|
+
6SOHHaNknlE9H0w6q0SVxZKZI8/+2c447V0NrHIw1Qhe0tAGJ9V1u3ky8gyxe0SM
|
33
|
+
8v7zLF2XliYbfurYIwkcXs8yPn8ggApBIy9bX6VJxRs/l2+UvqzaHIFaFy/F8/GP
|
34
|
+
RNTuXsVG5NDACo7Q
|
36
35
|
-----END CERTIFICATE-----
|
37
|
-
date:
|
36
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
38
37
|
dependencies: []
|
39
|
-
description: A
|
40
|
-
email:
|
41
|
-
|
42
|
-
|
43
|
-
- j2bson
|
38
|
+
description: A full featured BSON specification implementation, in Ruby
|
39
|
+
email:
|
40
|
+
- mongodb-dev@googlegroups.com
|
41
|
+
executables: []
|
44
42
|
extensions: []
|
45
43
|
extra_rdoc_files: []
|
46
44
|
files:
|
45
|
+
- CONTRIBUTING.md
|
46
|
+
- CHANGELOG.md
|
47
47
|
- LICENSE
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
- bson.
|
52
|
-
- ext/jbson/lib/java-bson.jar
|
53
|
-
- ext/jbson/target/jbson.jar
|
48
|
+
- NOTICE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- lib/bson-ruby.jar
|
54
52
|
- lib/bson.rb
|
55
|
-
- lib/bson/
|
56
|
-
- lib/bson/
|
57
|
-
- lib/bson/
|
58
|
-
- lib/bson/
|
59
|
-
- lib/bson/
|
60
|
-
- lib/bson/
|
61
|
-
- lib/bson/
|
62
|
-
- lib/bson/
|
63
|
-
- lib/bson/
|
64
|
-
- lib/bson/
|
65
|
-
- lib/bson/
|
66
|
-
- lib/bson/
|
67
|
-
- lib/bson/
|
68
|
-
- lib/bson/
|
69
|
-
- lib/bson/
|
70
|
-
|
53
|
+
- lib/bson/array.rb
|
54
|
+
- lib/bson/binary.rb
|
55
|
+
- lib/bson/boolean.rb
|
56
|
+
- lib/bson/code.rb
|
57
|
+
- lib/bson/code_with_scope.rb
|
58
|
+
- lib/bson/document.rb
|
59
|
+
- lib/bson/encodable.rb
|
60
|
+
- lib/bson/environment.rb
|
61
|
+
- lib/bson/false_class.rb
|
62
|
+
- lib/bson/float.rb
|
63
|
+
- lib/bson/hash.rb
|
64
|
+
- lib/bson/int32.rb
|
65
|
+
- lib/bson/int64.rb
|
66
|
+
- lib/bson/integer.rb
|
67
|
+
- lib/bson/json.rb
|
68
|
+
- lib/bson/max_key.rb
|
69
|
+
- lib/bson/min_key.rb
|
70
|
+
- lib/bson/nil_class.rb
|
71
|
+
- lib/bson/object_id.rb
|
72
|
+
- lib/bson/regexp.rb
|
73
|
+
- lib/bson/registry.rb
|
74
|
+
- lib/bson/specialized.rb
|
75
|
+
- lib/bson/string.rb
|
76
|
+
- lib/bson/symbol.rb
|
77
|
+
- lib/bson/time.rb
|
78
|
+
- lib/bson/timestamp.rb
|
79
|
+
- lib/bson/true_class.rb
|
80
|
+
- lib/bson/undefined.rb
|
81
|
+
- lib/bson/version.rb
|
82
|
+
- spec/bson_spec.rb
|
83
|
+
- spec/spec_helper.rb
|
84
|
+
- spec/bson/array_spec.rb
|
85
|
+
- spec/bson/binary_spec.rb
|
86
|
+
- spec/bson/boolean_spec.rb
|
87
|
+
- spec/bson/code_spec.rb
|
88
|
+
- spec/bson/code_with_scope_spec.rb
|
89
|
+
- spec/bson/document_spec.rb
|
90
|
+
- spec/bson/false_class_spec.rb
|
91
|
+
- spec/bson/float_spec.rb
|
92
|
+
- spec/bson/hash_spec.rb
|
93
|
+
- spec/bson/int32_spec.rb
|
94
|
+
- spec/bson/int64_spec.rb
|
95
|
+
- spec/bson/integer_spec.rb
|
96
|
+
- spec/bson/json_spec.rb
|
97
|
+
- spec/bson/max_key_spec.rb
|
98
|
+
- spec/bson/min_key_spec.rb
|
99
|
+
- spec/bson/nil_class_spec.rb
|
100
|
+
- spec/bson/object_id_spec.rb
|
101
|
+
- spec/bson/regexp_spec.rb
|
102
|
+
- spec/bson/registry_spec.rb
|
103
|
+
- spec/bson/string_spec.rb
|
104
|
+
- spec/bson/symbol_spec.rb
|
105
|
+
- spec/bson/time_spec.rb
|
106
|
+
- spec/bson/timestamp_spec.rb
|
107
|
+
- spec/bson/true_class_spec.rb
|
108
|
+
- spec/bson/undefined_spec.rb
|
109
|
+
- spec/support/shared_examples.rb
|
110
|
+
homepage: http://bsonspec.org
|
71
111
|
licenses:
|
72
112
|
- Apache License Version 2.0
|
73
113
|
metadata: {}
|
@@ -79,16 +119,44 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
119
|
requirements:
|
80
120
|
- - '>='
|
81
121
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
122
|
+
version: 1.8.7
|
83
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
124
|
requirements:
|
85
125
|
- - '>='
|
86
126
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
127
|
+
version: 1.3.6
|
88
128
|
requirements: []
|
89
129
|
rubyforge_project: bson
|
90
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.1.9
|
91
131
|
signing_key:
|
92
132
|
specification_version: 4
|
93
|
-
summary: Ruby
|
94
|
-
test_files:
|
133
|
+
summary: Ruby Implementation of the BSON specification
|
134
|
+
test_files:
|
135
|
+
- spec/bson_spec.rb
|
136
|
+
- spec/spec_helper.rb
|
137
|
+
- spec/bson/array_spec.rb
|
138
|
+
- spec/bson/binary_spec.rb
|
139
|
+
- spec/bson/boolean_spec.rb
|
140
|
+
- spec/bson/code_spec.rb
|
141
|
+
- spec/bson/code_with_scope_spec.rb
|
142
|
+
- spec/bson/document_spec.rb
|
143
|
+
- spec/bson/false_class_spec.rb
|
144
|
+
- spec/bson/float_spec.rb
|
145
|
+
- spec/bson/hash_spec.rb
|
146
|
+
- spec/bson/int32_spec.rb
|
147
|
+
- spec/bson/int64_spec.rb
|
148
|
+
- spec/bson/integer_spec.rb
|
149
|
+
- spec/bson/json_spec.rb
|
150
|
+
- spec/bson/max_key_spec.rb
|
151
|
+
- spec/bson/min_key_spec.rb
|
152
|
+
- spec/bson/nil_class_spec.rb
|
153
|
+
- spec/bson/object_id_spec.rb
|
154
|
+
- spec/bson/regexp_spec.rb
|
155
|
+
- spec/bson/registry_spec.rb
|
156
|
+
- spec/bson/string_spec.rb
|
157
|
+
- spec/bson/symbol_spec.rb
|
158
|
+
- spec/bson/time_spec.rb
|
159
|
+
- spec/bson/timestamp_spec.rb
|
160
|
+
- spec/bson/true_class_spec.rb
|
161
|
+
- spec/bson/undefined_spec.rb
|
162
|
+
- spec/support/shared_examples.rb
|