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 +4 -4
- data/ext/uel/encode.c +2 -2
- data/ext/uel/uel.h +0 -3
- data/uel.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bac58eaed02c9c98578c2024b7dad7927f9e32c8cebeaad48219b824a4616292
|
4
|
+
data.tar.gz: d48e13da3650560be12536db498410a7e53233dd29c5edc76dd23bf9124732bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea299627b7011abfbd111bea0e15611a62544bb719b745d95e63d063f66e5c72c08edb8f52f5894c40bdbb1452909c038c74fffbc55a20ea0c84719f2e7ed4ec
|
7
|
+
data.tar.gz: cdac721562453930c8444365c69cb691e749ec6970e2b8d8feac6b9e74a3337e33733e225fda61783849cb9e4210d5ca24f772b7779b2b5cdd9b0159cf4bb55a
|
data/ext/uel/encode.c
CHANGED
@@ -240,10 +240,10 @@ struct uel_bert_data *uel_encode_hash(VALUE value) {
|
|
240
240
|
VALUE keys;
|
241
241
|
VALUE key;
|
242
242
|
|
243
|
-
|
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);
|
data/ext/uel/uel.h
CHANGED
@@ -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
|
data/uel.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|