bson_ext 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/cbson/cbson.c +1 -1
  2. data/ext/cbson/version.h +1 -1
  3. metadata +4 -4
data/ext/cbson/cbson.c CHANGED
@@ -561,7 +561,7 @@ static void write_doc(buffer_t buffer, VALUE hash, VALUE check_keys, VALUE move_
561
561
 
562
562
  write_function(key, value, pack_extra(buffer, check_keys));
563
563
  }
564
- } else if (strcmp(rb_obj_classname(hash), "Hash") == 0) {
564
+ } else if (strncmp(rb_obj_classname(hash), "Hash", 4) == 0) {
565
565
  rb_hash_foreach(hash, write_function, pack_extra(buffer, check_keys));
566
566
  } else {
567
567
  buffer_free(buffer);
data/ext/cbson/version.h CHANGED
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- #define VERSION "1.0.5"
17
+ #define VERSION "1.0.6"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson_ext
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Dirolf
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-27 00:00:00 -04:00
18
+ date: 2010-08-28 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21