bson_ext 1.8.3 → 1.8.4.rc0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 287e75b64b7bd5f1fe43d1e21362cf11c881b206
4
- data.tar.gz: 788e47f8cacf5538b7714ae905c46df65cc22f86
5
- SHA512:
6
- metadata.gz: 9a0b7971268eed06a75feb9362c05bcf2567dd5b4247a0d60648309f46a9b8f2118dd1305e3dacdb64d8c02bed273bb826c2ddd6dbf1de501577f05f23a22b36
7
- data.tar.gz: e219c67b0da553e281dfe317804dbdf087bd01fd890ac67b495ff14636413ca53ac6d744f236449aa7f0ae806fb7754a12d460bc0275f0298914bebd80edc30e
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Zjc2ZGE3ODczY2MyZjk1OWQ5MGYzOWNiZDhkZWJjNjhhYzM0MDg2MQ==
5
+ data.tar.gz: !binary |-
6
+ OTk0MDZlYmVhMjg3MzA5MTc0ZDAxYmRjM2I1MzE1YWQ4ZDE2NGYzNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ OGMzZjk0YzU4NGQyNGFlOGI3MmM0YzZkOTExYmM2OWRmN2MyZDAyODg1ODg0
10
+ NTE2MWViODBiZmViZjAxN2M5YzU2Yjk2Nzg3ZmVkZjM5OTNiZjkwMjliN2M3
11
+ ZDJiNzRlN2ZlMzkwZjEzODAxMjZkZWI2ZmZmYzZhODllMmFmYzc=
12
+ data.tar.gz: !binary |-
13
+ MDcwY2FlZGI3YzFiMzA1YjAwMWNiNjkyNzA5NmJiYTY1OTJlZDM3MjBkMTdh
14
+ NGYzMzM3NDc5NmVjMDFhZDQ5N2VkNDAwZDJmNmY5YzYzNmUyNDlmYWI5ZTI0
15
+ MTVlNDRlNzlhOGQ4MjAxYWNlY2U5MmQ4Y2RhOWY1YTJmNTM4OWE=
Binary file
data.tar.gz.sig CHANGED
Binary file
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.3
1
+ 1.8.4.rc0
@@ -9,6 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.summary = 'C extensions for Ruby BSON.'
10
10
  s.description = 'C extensions to accelerate the Ruby BSON serialization. For more information about BSON, see http://bsonspec.org. For information about MongoDB, see http://www.mongodb.org.'
11
11
  s.rubyforge_project = 'bson_ext'
12
+ s.license = 'Apache License Version 2.0'
12
13
 
13
14
  s.signing_key = 'gem-private_key.pem'
14
15
  s.cert_chain = ['gem-public_cert.pem']
@@ -600,7 +600,7 @@ static void write_doc(bson_buffer_t buffer, VALUE hash, VALUE check_keys, VALUE
600
600
  SAFE_WRITE(buffer, &zero, 1);
601
601
  length = bson_buffer_get_position(buffer) - start_position;
602
602
 
603
- // make sure that length doesn't exceed 4MB
603
+ // make sure that length doesn't exceed the max size (determined by server, defaults to 4mb)
604
604
  if (length > bson_buffer_get_max_size(buffer)) {
605
605
  bson_buffer_free(buffer);
606
606
  rb_raise(InvalidDocument,
@@ -954,7 +954,13 @@ static VALUE objectid_from_string(VALUE self, VALUE str)
954
954
  int i;
955
955
 
956
956
  if (!legal_objectid_str(str)) {
957
+ if (TYPE(str) == T_STRING) {
957
958
  rb_raise(InvalidObjectId, "illegal ObjectId format: %s", RSTRING_PTR(str));
959
+ } else {
960
+ VALUE inspect;
961
+ inspect = rb_funcall(str, rb_intern("to_s"), 0);
962
+ rb_raise(InvalidObjectId, "not a String: %s", inspect);
963
+ }
958
964
  }
959
965
 
960
966
  oid = rb_ary_new2(12);
@@ -1 +1 @@
1
- #define VERSION "1.8.3"
1
+ #define VERSION "1.8.4.rc0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4.rc0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Brock
@@ -12,28 +12,35 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_ch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R
29
+ a1Vkc3FkS0MzMkkrS01wS0tZR0JRNnlpc2ZBCjVNeVZQUEN6TFIxbFA1cVhW
30
+ R0pQbk9xVUFrdkVVZkNhaGc3RVA5dEkyMHF4aVhyUjZUU0VyYVloSUZYTDBF
31
+ R1kKdThLQWNQSG01S2tDQXdFQUFhTTVNRGN3Q1FZRFZSMFRCQUl3QURBZEJn
32
+ TlZIUTRFRmdRVVczZFpzWDcwbWxTTQpDaVByWnhBR0ExdndmTmN3Q3dZRFZS
33
+ MFBCQVFEQWdTd01BMEdDU3FHU0liM0RRRUJCUVVBQTRJQkFRQ0lhL1k2CnhT
34
+ N1lXQnhrbjlXUDBFTW5KM3BZOXZlZjlEVG1MU2kvMmp6OFB6d2xLUTg5ek5U
35
+ cnFTVUQ4TG9RWm1CcUNKQnQKZEtTUS9SVW5hSEp1eGg4SFd2V3ViUDhFQllU
36
+ dWYrSTFERm5SdjY0OElGM01SMXRDUXVtVkwwWGNZTXZaY3hCagphL3ArOERv
37
+ bVdUUXFVZE5iTm9HeXd3anRWQldmRGR3RlY4UG8xWGNOL0F0cElMT0pRZDlK
38
+ NzdJTklHR0NIeFpvCjZTT0hIYU5rbmxFOUgwdzZxMFNWeFpLWkk4LysyYzQ0
39
+ N1YwTnJISXcxUWhlMHRBR0o5VjF1M2t5OGd5eGUwU00KOHY3ekxGMlhsaVli
40
+ ZnVyWUl3a2NYczh5UG44Z2dBcEJJeTliWDZWSnhScy9sMitVdnF6YUhJRmFG
41
+ eS9GOC9HUApSTlR1WHNWRzVOREFDbzdRCi0tLS0tRU5EIENFUlRJRklDQVRF
42
+ LS0tLS0K
43
+ date: 2013-03-19 00:00:00.000000000 Z
37
44
  dependencies:
38
45
  - !ruby/object:Gem::Dependency
39
46
  name: bson
@@ -41,14 +48,14 @@ dependencies:
41
48
  requirements:
42
49
  - - ~>
43
50
  - !ruby/object:Gem::Version
44
- version: 1.8.3
51
+ version: 1.8.4.rc0
45
52
  type: :runtime
46
53
  prerelease: false
47
54
  version_requirements: !ruby/object:Gem::Requirement
48
55
  requirements:
49
56
  - - ~>
50
57
  - !ruby/object:Gem::Version
51
- version: 1.8.3
58
+ version: 1.8.4.rc0
52
59
  description: C extensions to accelerate the Ruby BSON serialization. For more information
53
60
  about BSON, see http://bsonspec.org. For information about MongoDB, see http://www.mongodb.org.
54
61
  email: mongodb-dev@googlegroups.com
@@ -68,7 +75,8 @@ files:
68
75
  - ext/cbson/encoding_helpers.h
69
76
  - ext/cbson/version.h
70
77
  homepage: http://www.mongodb.org
71
- licenses: []
78
+ licenses:
79
+ - Apache License Version 2.0
72
80
  metadata: {}
73
81
  post_install_message:
74
82
  rdoc_options: []
@@ -76,18 +84,19 @@ require_paths:
76
84
  - ext/bson_ext
77
85
  required_ruby_version: !ruby/object:Gem::Requirement
78
86
  requirements:
79
- - - '>='
87
+ - - ! '>='
80
88
  - !ruby/object:Gem::Version
81
89
  version: '0'
82
90
  required_rubygems_version: !ruby/object:Gem::Requirement
83
91
  requirements:
84
- - - '>='
92
+ - - ! '>'
85
93
  - !ruby/object:Gem::Version
86
- version: '0'
94
+ version: 1.3.1
87
95
  requirements: []
88
96
  rubyforge_project: bson_ext
89
- rubygems_version: 2.0.0
97
+ rubygems_version: 2.0.3
90
98
  signing_key:
91
99
  specification_version: 4
92
100
  summary: C extensions for Ruby BSON.
93
101
  test_files: []
102
+ has_rdoc: yard
metadata.gz.sig CHANGED
Binary file