bson 1.8.2 → 1.8.3.rc0
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.
- data.tar.gz.sig +0 -0
- data/LICENSE +1 -1
- data/VERSION +1 -1
- data/bin/b2json +0 -16
- data/bin/j2bson +2 -24
- data/bson.gemspec +4 -1
- data/lib/bson.rb +1 -21
- data/lib/bson/bson_c.rb +1 -19
- data/lib/bson/bson_java.rb +1 -1
- data/lib/bson/bson_ruby.rb +5 -26
- data/lib/bson/byte_buffer.rb +1 -19
- data/lib/bson/exceptions.rb +0 -18
- data/lib/bson/ordered_hash.rb +0 -18
- data/lib/bson/support/hash_with_indifferent_access.rb +0 -18
- data/lib/bson/types/binary.rb +0 -18
- data/lib/bson/types/code.rb +0 -18
- data/lib/bson/types/dbref.rb +0 -18
- data/lib/bson/types/min_max_keys.rb +0 -18
- data/lib/bson/types/object_id.rb +0 -18
- data/lib/bson/types/timestamp.rb +0 -18
- metadata +36 -10
- metadata.gz.sig +0 -0
data.tar.gz.sig
ADDED
Binary file
|
data/LICENSE
CHANGED
@@ -175,7 +175,7 @@
|
|
175
175
|
|
176
176
|
END OF TERMS AND CONDITIONS
|
177
177
|
|
178
|
-
Copyright 2008-
|
178
|
+
Copyright (C) 2008-2013 10gen, Inc.
|
179
179
|
|
180
180
|
Licensed under the Apache License, Version 2.0 (the "License");
|
181
181
|
you may not use this file except in compliance with the License.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.3.rc0
|
data/bin/b2json
CHANGED
@@ -1,22 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: UTF-8
|
3
3
|
|
4
|
-
# --
|
5
|
-
# Copyright (C) 2008-2010 10gen Inc.
|
6
|
-
#
|
7
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
# you may not use this file except in compliance with the License.
|
9
|
-
# You may obtain a copy of the License at
|
10
|
-
#
|
11
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
#
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
# ++
|
19
|
-
|
20
4
|
require 'rubygems'
|
21
5
|
require 'bson'
|
22
6
|
|
data/bin/j2bson
CHANGED
@@ -1,39 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: UTF-8
|
3
3
|
|
4
|
-
# --
|
5
|
-
# Copyright (C) 2008-2010 10gen Inc.
|
6
|
-
#
|
7
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
# you may not use this file except in compliance with the License.
|
9
|
-
# You may obtain a copy of the License at
|
10
|
-
#
|
11
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
#
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
# ++
|
19
|
-
|
20
4
|
require 'rubygems'
|
21
5
|
require 'bson'
|
22
6
|
|
23
|
-
# We don't use YAJL because we need to specify the class
|
24
|
-
# to store the JSON object in. BSON is ordered so we need BSON::OrderedHash
|
25
|
-
#
|
26
|
-
# We use json/pure because json/ext is broken with BSON::OrderedHash
|
27
|
-
# (probably for the same reasons that we can't use YAJL).
|
28
|
-
#
|
29
7
|
# Note that, at the moment, this will not properly round-trip
|
30
8
|
# in all cases from the output generated by b2json.
|
31
9
|
begin
|
32
10
|
require 'json/pure' # broken with 'json/ext'
|
33
11
|
rescue LoadError
|
34
12
|
puts "This script requires json/pure. Please install one of the following:"
|
35
|
-
puts " gem install json_pure"
|
36
|
-
puts " gem install json"
|
13
|
+
puts " gem install json_pure"
|
14
|
+
puts " gem install json"
|
37
15
|
Process.exit
|
38
16
|
end
|
39
17
|
|
data/bson.gemspec
CHANGED
@@ -2,13 +2,16 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'bson'
|
3
3
|
|
4
4
|
s.version = File.read(File.join(File.dirname(__FILE__), 'VERSION'))
|
5
|
-
s.authors = ['Tyler Brock', 'Gary Murakami', 'Emily Stolfo', 'Brandon Black']
|
5
|
+
s.authors = ['Tyler Brock', 'Gary Murakami', 'Emily Stolfo', 'Brandon Black', 'Durran Jordan']
|
6
6
|
s.email = 'mongodb-dev@googlegroups.com'
|
7
7
|
s.homepage = 'http://www.mongodb.org'
|
8
8
|
s.summary = 'Ruby implementation of BSON'
|
9
9
|
s.description = 'A Ruby BSON implementation for MongoDB. For more information about Mongo, see http://www.mongodb.org. For more information on BSON, see http://www.bsonspec.org.'
|
10
10
|
s.rubyforge_project = 'bson'
|
11
11
|
|
12
|
+
s.signing_key = 'gem-private_key.pem'
|
13
|
+
s.cert_chain = ['gem-public_cert.pem']
|
14
|
+
|
12
15
|
s.files = ['bson.gemspec', 'LICENSE', 'VERSION']
|
13
16
|
s.files += ['bin/b2json', 'bin/j2bson', 'lib/bson.rb']
|
14
17
|
s.files += Dir['lib/bson/**/*.rb']
|
data/lib/bson.rb
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
# --
|
2
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
# ++
|
16
|
-
|
17
1
|
module BSON
|
18
|
-
|
19
|
-
DEFAULT_MAX_BSON_SIZE = Mongo::DEFAULT_MAX_BSON_SIZE
|
20
|
-
else
|
21
|
-
DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024
|
22
|
-
end
|
2
|
+
DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024
|
23
3
|
|
24
4
|
def self.serialize(obj, check_keys=false, move_id=false)
|
25
5
|
BSON_CODER.serialize(obj, check_keys, move_id)
|
data/lib/bson/bson_c.rb
CHANGED
@@ -1,26 +1,8 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
# A thin wrapper for the CBson class
|
20
2
|
module BSON
|
21
3
|
class BSON_C
|
22
4
|
|
23
|
-
def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=
|
5
|
+
def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=DEFAULT_MAX_BSON_SIZE)
|
24
6
|
ByteBuffer.new(CBson.serialize(obj, check_keys, move_id, max_bson_size))
|
25
7
|
end
|
26
8
|
|
data/lib/bson/bson_java.rb
CHANGED
@@ -8,7 +8,7 @@ require File.join(jar_dir, 'target/jbson.jar')
|
|
8
8
|
|
9
9
|
module BSON
|
10
10
|
class BSON_JAVA
|
11
|
-
def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=
|
11
|
+
def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=DEFAULT_MAX_BSON_SIZE)
|
12
12
|
raise InvalidDocument, "BSON_JAVA.serialize takes a Hash" unless obj.is_a?(Hash)
|
13
13
|
enc = Java::OrgJbson::RubyBSONEncoder.new(JRuby.runtime, check_keys, move_id, max_bson_size)
|
14
14
|
ByteBuffer.new(enc.encode(obj))
|
data/lib/bson/bson_ruby.rb
CHANGED
@@ -1,29 +1,8 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
module BSON
|
20
2
|
NULL_BYTE = "\x00"
|
21
3
|
|
22
4
|
# A BSON seralizer/deserializer in pure Ruby.
|
23
5
|
class BSON_RUBY
|
24
|
-
|
25
|
-
DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024
|
26
|
-
|
27
6
|
@@max_bson_size = DEFAULT_MAX_BSON_SIZE
|
28
7
|
|
29
8
|
MINKEY = -1
|
@@ -53,7 +32,7 @@ module BSON
|
|
53
32
|
INT64_MIN = -2**64 / 2
|
54
33
|
INT64_MAX = 2**64 / 2 - 1
|
55
34
|
|
56
|
-
def initialize(max_bson_size=
|
35
|
+
def initialize(max_bson_size=DEFAULT_MAX_BSON_SIZE)
|
57
36
|
@buf = ByteBuffer.new('', max_bson_size)
|
58
37
|
@encoder = BSON_RUBY
|
59
38
|
end
|
@@ -111,7 +90,7 @@ module BSON
|
|
111
90
|
|
112
91
|
# Serializes an object.
|
113
92
|
# Implemented to ensure an API compatible with BSON extension.
|
114
|
-
def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=
|
93
|
+
def self.serialize(obj, check_keys=false, move_id=false, max_bson_size=DEFAULT_MAX_BSON_SIZE)
|
115
94
|
new(max_bson_size).serialize(obj, check_keys, move_id)
|
116
95
|
end
|
117
96
|
|
@@ -145,7 +124,7 @@ module BSON
|
|
145
124
|
serialize_eoo_element(@buf)
|
146
125
|
if @buf.size > @buf.max_size
|
147
126
|
raise InvalidDocument, "Document is too large (#{@buf.size}). " +
|
148
|
-
"This BSON
|
127
|
+
"This BSON document is limited to #{@buf.max_size} bytes."
|
149
128
|
end
|
150
129
|
@buf.put_int(@buf.size, 0)
|
151
130
|
@buf
|
@@ -326,7 +305,7 @@ module BSON
|
|
326
305
|
def deserialize_object_data(buf)
|
327
306
|
size = buf.get_int
|
328
307
|
buf.position -= 4
|
329
|
-
object = @encoder.new
|
308
|
+
object = @encoder.new.deserialize(buf.get(size))
|
330
309
|
if object.has_key? "$ref"
|
331
310
|
DBRef.new(object["$ref"], object["$id"])
|
332
311
|
else
|
@@ -388,7 +367,7 @@ module BSON
|
|
388
367
|
|
389
368
|
scope_size = buf.get_int
|
390
369
|
buf.position -= 4
|
391
|
-
scope = @encoder.new
|
370
|
+
scope = @encoder.new.deserialize(buf.get(scope_size))
|
392
371
|
|
393
372
|
Code.new(encoded_str(code), scope)
|
394
373
|
end
|
data/lib/bson/byte_buffer.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
# A byte buffer.
|
20
2
|
module BSON
|
21
3
|
class ByteBuffer
|
@@ -26,7 +8,7 @@ module BSON
|
|
26
8
|
INT64_PACK = 'q<'.freeze
|
27
9
|
DOUBLE_PACK = 'E'.freeze
|
28
10
|
|
29
|
-
def initialize(initial_data="", max_size=
|
11
|
+
def initialize(initial_data="", max_size=DEFAULT_MAX_BSON_SIZE)
|
30
12
|
@str = case initial_data
|
31
13
|
when String then
|
32
14
|
if initial_data.respond_to?(:force_encoding)
|
data/lib/bson/exceptions.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
module BSON
|
20
2
|
# Generic Mongo Ruby Driver exception class.
|
21
3
|
class MongoRubyError < StandardError; end
|
data/lib/bson/ordered_hash.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
# A hash in which the order of keys are preserved.
|
20
2
|
#
|
21
3
|
# Under Ruby 1.9 and greater, this class has no added methods because Ruby's
|
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
#
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
require 'active_support'
|
20
2
|
begin
|
21
3
|
require 'active_support/hash_with_indifferent_access'
|
data/lib/bson/types/binary.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
require 'bson/byte_buffer'
|
20
2
|
|
21
3
|
module BSON
|
data/lib/bson/types/code.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
module BSON
|
20
2
|
|
21
3
|
# JavaScript code to be evaluated by MongoDB.
|
data/lib/bson/types/dbref.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
module BSON
|
20
2
|
|
21
3
|
# A reference to another object in a MongoDB database.
|
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
module BSON
|
20
2
|
|
21
3
|
# A class representing the BSON MaxKey type. MaxKey will always compare greater than
|
data/lib/bson/types/object_id.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
require 'thread'
|
20
2
|
require 'socket'
|
21
3
|
require 'digest/md5'
|
data/lib/bson/types/timestamp.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
# --
|
4
|
-
# Copyright (C) 2008-2012 10gen Inc.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
# ++
|
18
|
-
|
19
1
|
module BSON
|
20
2
|
|
21
3
|
# A class for representing BSON Timestamps. The Timestamp type is used
|
metadata
CHANGED
@@ -1,18 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
5
|
-
prerelease:
|
4
|
+
version: 1.8.3.rc0
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tyler Brock
|
9
9
|
- Gary Murakami
|
10
10
|
- Emily Stolfo
|
11
11
|
- Brandon Black
|
12
|
+
- Durran Jordan
|
12
13
|
autorequire:
|
13
14
|
bindir: bin
|
14
|
-
cert_chain:
|
15
|
-
|
15
|
+
cert_chain:
|
16
|
+
- !binary |-
|
17
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURPRENDQWlDZ0F3SUJB
|
18
|
+
Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREJDTVJRd0VnWURWUVFEREF0a2Nt
|
19
|
+
bDIKWlhJdGNuVmllVEVWTUJNR0NnbVNKb21UOGl4a0FSa1dCVEV3WjJWdU1S
|
20
|
+
TXdFUVlLQ1pJbWlaUHlMR1FCR1JZRApZMjl0TUI0WERURXpNREl3TVRFME1U
|
21
|
+
RXpOMW9YRFRFME1ESXdNVEUwTVRFek4xb3dRakVVTUJJR0ExVUVBd3dMClpI
|
22
|
+
SnBkbVZ5TFhKMVlua3hGVEFUQmdvSmtpYUprL0lzWkFFWkZnVXhNR2RsYmpF
|
23
|
+
VE1CRUdDZ21TSm9tVDhpeGsKQVJrV0EyTnZiVENDQVNJd0RRWUpLb1pJaHZj
|
24
|
+
TkFRRUJCUUFEZ2dFUEFEQ0NBUW9DZ2dFQkFORmRTQWE4ZlJtMQpiQU05emE2
|
25
|
+
WjBmQUg0ZzAyYnFNMU5Hbnc4ekpRckUvUEZyRmZZNklGQ1QyQXNMZk93cjFt
|
26
|
+
YVZtN2lVMStrZFZJCklRK2lJLzkrRStBckorcmJHVjNkRFBRK1NMbDNtTFQr
|
27
|
+
dlhqZmpjeE1xSTJJVzZVdVZ0dDJVM1J4ZDRRVTBrZFQKSnhtY1BZczVmRE42
|
28
|
+
QmdZYzZYWGdVankzbStLd2hhMnBHY3RkY2lVT3dFZk9aNFJtTlJsRVpLQ01M
|
29
|
+
UkhkRlA4ago0V1RuSlNHZlhEaXVvWElDSmI1eU9QT1pQdWFhcFBTTlhwOTNR
|
30
|
+
a1Vkc3FkS0MzMkkrS01wS0tZR0JRNnlpc2ZBCjVNeVZQUEN6TFIxbFA1cVhW
|
31
|
+
R0pQbk9xVUFrdkVVZkNhaGc3RVA5dEkyMHF4aVhyUjZUU0VyYVloSUZYTDBF
|
32
|
+
R1kKdThLQWNQSG01S2tDQXdFQUFhTTVNRGN3Q1FZRFZSMFRCQUl3QURBZEJn
|
33
|
+
TlZIUTRFRmdRVVczZFpzWDcwbWxTTQpDaVByWnhBR0ExdndmTmN3Q3dZRFZS
|
34
|
+
MFBCQVFEQWdTd01BMEdDU3FHU0liM0RRRUJCUVVBQTRJQkFRQ0lhL1k2CnhT
|
35
|
+
N1lXQnhrbjlXUDBFTW5KM3BZOXZlZjlEVG1MU2kvMmp6OFB6d2xLUTg5ek5U
|
36
|
+
cnFTVUQ4TG9RWm1CcUNKQnQKZEtTUS9SVW5hSEp1eGg4SFd2V3ViUDhFQllU
|
37
|
+
dWYrSTFERm5SdjY0OElGM01SMXRDUXVtVkwwWGNZTXZaY3hCagphL3ArOERv
|
38
|
+
bVdUUXFVZE5iTm9HeXd3anRWQldmRGR3RlY4UG8xWGNOL0F0cElMT0pRZDlK
|
39
|
+
NzdJTklHR0NIeFpvCjZTT0hIYU5rbmxFOUgwdzZxMFNWeFpLWkk4LysyYzQ0
|
40
|
+
N1YwTnJISXcxUWhlMHRBR0o5VjF1M2t5OGd5eGUwU00KOHY3ekxGMlhsaVli
|
41
|
+
ZnVyWUl3a2NYczh5UG44Z2dBcEJJeTliWDZWSnhScy9sMitVdnF6YUhJRmFG
|
42
|
+
eS9GOC9HUApSTlR1WHNWRzVOREFDbzdRCi0tLS0tRU5EIENFUlRJRklDQVRF
|
43
|
+
LS0tLS0K
|
44
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
16
45
|
dependencies: []
|
17
46
|
description: A Ruby BSON implementation for MongoDB. For more information about Mongo,
|
18
47
|
see http://www.mongodb.org. For more information on BSON, see http://www.bsonspec.org.
|
@@ -62,18 +91,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
91
|
- - ! '>='
|
63
92
|
- !ruby/object:Gem::Version
|
64
93
|
version: '0'
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
hash: 682470089809443431
|
68
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
95
|
none: false
|
70
96
|
requirements:
|
71
|
-
- - ! '
|
97
|
+
- - ! '>'
|
72
98
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
99
|
+
version: 1.3.1
|
74
100
|
requirements: []
|
75
101
|
rubyforge_project: bson
|
76
|
-
rubygems_version: 1.8.
|
102
|
+
rubygems_version: 1.8.23
|
77
103
|
signing_key:
|
78
104
|
specification_version: 3
|
79
105
|
summary: Ruby implementation of BSON
|
metadata.gz.sig
ADDED
Binary file
|