bson 1.5.1 → 1.5.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.

Files changed (3) hide show
  1. data/lib/bson.rb +2 -4
  2. metadata +21 -23
  3. data/test/bson/bson_string_test.rb +0 -30
@@ -16,12 +16,10 @@
16
16
  # limitations under the License.
17
17
  # ++
18
18
 
19
- $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
20
-
21
- MINIMUM_BSON_EXT_VERSION = "1.5.1"
19
+ MINIMUM_BSON_EXT_VERSION = "1.5.2"
22
20
 
23
21
  module BSON
24
- VERSION = "1.5.1"
22
+ VERSION = "1.5.2"
25
23
 
26
24
  if defined? Mongo::DEFAULT_MAX_BSON_SIZE
27
25
  DEFAULT_MAX_BSON_SIZE = Mongo::DEFAULT_MAX_BSON_SIZE
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Menard
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-11-29 00:00:00 Z
20
+ date: 2011-12-13 00:00:00 Z
21
21
  dependencies: []
22
22
 
23
23
  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.
@@ -32,30 +32,29 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - LICENSE.txt
34
34
  - lib/bson.rb
35
- - lib/bson/bson_c.rb
36
35
  - lib/bson/bson_java.rb
37
- - lib/bson/bson_ruby.rb
38
- - lib/bson/byte_buffer.rb
39
- - lib/bson/exceptions.rb
40
- - lib/bson/ordered_hash.rb
41
36
  - lib/bson/types/binary.rb
42
- - lib/bson/types/code.rb
43
- - lib/bson/types/dbref.rb
44
37
  - lib/bson/types/min_max_keys.rb
45
- - lib/bson/types/object_id.rb
46
38
  - lib/bson/types/timestamp.rb
39
+ - lib/bson/types/code.rb
40
+ - lib/bson/types/object_id.rb
41
+ - lib/bson/types/dbref.rb
42
+ - lib/bson/exceptions.rb
43
+ - lib/bson/bson_c.rb
44
+ - lib/bson/ordered_hash.rb
45
+ - lib/bson/byte_buffer.rb
46
+ - lib/bson/bson_ruby.rb
47
47
  - bin/b2json
48
48
  - bin/j2bson
49
49
  - test/bson/binary_test.rb
50
- - test/bson/bson_string_test.rb
51
- - test/bson/bson_test.rb
52
- - test/bson/byte_buffer_test.rb
53
- - test/bson/hash_with_indifferent_access_test.rb
54
50
  - test/bson/json_test.rb
55
- - test/bson/object_id_test.rb
51
+ - test/bson/byte_buffer_test.rb
56
52
  - test/bson/ordered_hash_test.rb
53
+ - test/bson/object_id_test.rb
57
54
  - test/bson/test_helper.rb
55
+ - test/bson/bson_test.rb
58
56
  - test/bson/timestamp_test.rb
57
+ - test/bson/hash_with_indifferent_access_test.rb
59
58
  - test/support/hash_with_indifferent_access.rb
60
59
  homepage: http://www.mongodb.org
61
60
  licenses: []
@@ -86,19 +85,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
85
  requirements: []
87
86
 
88
87
  rubyforge_project:
89
- rubygems_version: 1.8.11
88
+ rubygems_version: 1.8.10
90
89
  signing_key:
91
90
  specification_version: 3
92
91
  summary: Ruby implementation of BSON
93
92
  test_files:
94
93
  - test/bson/binary_test.rb
95
- - test/bson/bson_string_test.rb
96
- - test/bson/bson_test.rb
97
- - test/bson/byte_buffer_test.rb
98
- - test/bson/hash_with_indifferent_access_test.rb
99
94
  - test/bson/json_test.rb
100
- - test/bson/object_id_test.rb
95
+ - test/bson/byte_buffer_test.rb
101
96
  - test/bson/ordered_hash_test.rb
97
+ - test/bson/object_id_test.rb
102
98
  - test/bson/test_helper.rb
99
+ - test/bson/bson_test.rb
103
100
  - test/bson/timestamp_test.rb
101
+ - test/bson/hash_with_indifferent_access_test.rb
104
102
  - test/support/hash_with_indifferent_access.rb
@@ -1,30 +0,0 @@
1
- # encoding:utf-8
2
- require './test/bson/test_helper'
3
- require 'complex'
4
- require 'bigdecimal'
5
- require 'rational'
6
-
7
- class BSONTest < Test::Unit::TestCase
8
-
9
- include BSON
10
-
11
- def setup
12
- @encoder = BSON::BSON_CODER
13
- end
14
-
15
- def assert_doc_pass(doc, options={})
16
- bson = @encoder.serialize(doc)
17
- if options[:debug]
18
- puts "DEBUGGING DOC:"
19
- p bson.to_a
20
- puts "DESERIALIZES TO:"
21
- end
22
- assert_equal @encoder.serialize(doc).to_a, bson.to_a
23
- assert_equal doc, @encoder.deserialize(bson)
24
- end
25
-
26
- def test_string
27
- assert_doc_pass({:a => "hello"})
28
- end
29
-
30
- end