UEL 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20137fd4dcf93bec9b07837ec1258036ebce587ed3bf449441207c0b6e8cdd2a
4
- data.tar.gz: 76291fb545ee2b209e5788f5390d3ea0e3175f54d839fe93826670692a407137
3
+ metadata.gz: bac58eaed02c9c98578c2024b7dad7927f9e32c8cebeaad48219b824a4616292
4
+ data.tar.gz: d48e13da3650560be12536db498410a7e53233dd29c5edc76dd23bf9124732bf
5
5
  SHA512:
6
- metadata.gz: eecdc2920f87a00afdc867d36dcce4d00bc1e768a1647ee241d9f421bcd1356e59115326a6b1a28f8f26f7109ddefe37a2717dd8862bb09c2616bdfc7dbda8fe
7
- data.tar.gz: 7587e3602d1858a2e7de9a29a22efb5771957f392d48f2aa98e4f064ca07a104c992b9c2db89cab30b88bdcdcda3b22cbdb4d12b5802bebf60d1813d730a6d88
6
+ metadata.gz: ea299627b7011abfbd111bea0e15611a62544bb719b745d95e63d063f66e5c72c08edb8f52f5894c40bdbb1452909c038c74fffbc55a20ea0c84719f2e7ed4ec
7
+ data.tar.gz: cdac721562453930c8444365c69cb691e749ec6970e2b8d8feac6b9e74a3337e33733e225fda61783849cb9e4210d5ca24f772b7779b2b5cdd9b0159cf4bb55a
@@ -240,10 +240,10 @@ struct uel_bert_data *uel_encode_hash(VALUE value) {
240
240
  VALUE keys;
241
241
  VALUE key;
242
242
 
243
- hash_size = rb_hash_size_num(value);
243
+ keys = rb_funcall(value, rb_intern("keys"), 0);
244
+ hash_size = RARRAY_LEN(keys);
244
245
  data = malloc(sizeof(struct uel_bert_data));
245
246
  data_ary = malloc(sizeof(struct uel_bert_data *) * (hash_size * 2));
246
- keys = rb_hash_keys(value);
247
247
 
248
248
  for (; key_index < hash_size; key_index++) {
249
249
  key = rb_ary_entry(keys, key_index);
@@ -104,7 +104,4 @@ struct uel_bert_data *uel_encode_string(VALUE value);
104
104
  struct uel_bert_data *uel_encode_ptr_atom(const char *name, uint16_t len);
105
105
  struct uel_bert_data *uel_encode_ptr_small_atom(const char *name, uint8_t len);
106
106
 
107
- /* ruby symbols */
108
- VALUE rb_hash_keys(VALUE hash);
109
-
110
107
  #endif
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "UEL"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["Matthew Carey"]
6
6
  spec.email = ["matthew.b.carey@gmail.com"]
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: UEL
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Carey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler