bson_ext 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/cbson/cbson.c +2 -2
- data/ext/cbson/version.h +1 -1
- metadata +5 -8
data/ext/cbson/cbson.c
CHANGED
@@ -231,12 +231,12 @@ static int write_element(VALUE key, VALUE value, VALUE extra, int allow_id) {
|
|
231
231
|
int i;
|
232
232
|
if (RSTRING_LEN(key) > 0 && RSTRING_PTR(key)[0] == '$') {
|
233
233
|
buffer_free(buffer);
|
234
|
-
rb_raise(InvalidKeyName, "key must not start with '$'");
|
234
|
+
rb_raise(InvalidKeyName, "%s - key must not start with '$'", RSTRING_PTR(key));
|
235
235
|
}
|
236
236
|
for (i = 0; i < RSTRING_LEN(key); i++) {
|
237
237
|
if (RSTRING_PTR(key)[i] == '.') {
|
238
238
|
buffer_free(buffer);
|
239
|
-
rb_raise(InvalidKeyName, "key must not contain '.'");
|
239
|
+
rb_raise(InvalidKeyName, "%s - key must not contain '.'", RSTRING_PTR(key));
|
240
240
|
}
|
241
241
|
}
|
242
242
|
}
|
data/ext/cbson/version.h
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bson_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
8
|
+
- 1
|
9
|
+
version: 1.2.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Mike Dirolf
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-02-10 00:00:00 -05:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -51,7 +50,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
52
51
|
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
hash: 3
|
55
53
|
segments:
|
56
54
|
- 0
|
57
55
|
version: "0"
|
@@ -60,14 +58,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
58
|
requirements:
|
61
59
|
- - ">="
|
62
60
|
- !ruby/object:Gem::Version
|
63
|
-
hash: 3
|
64
61
|
segments:
|
65
62
|
- 0
|
66
63
|
version: "0"
|
67
64
|
requirements: []
|
68
65
|
|
69
66
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.3.7
|
71
68
|
signing_key:
|
72
69
|
specification_version: 3
|
73
70
|
summary: C extensions for Ruby BSON.
|