vox-etf 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/vox/encoder.hpp +6 -1
- data/lib/vox/etf/version.rb +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: e3745f75f9a0e5ea20d7ad1706dd25ac300839caecc8bf1263842e8ff1439652
|
4
|
+
data.tar.gz: e1c7a531f1e24b2af0b29bd5fd691874c6c3db0a6023aa5988c550575c2baeec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ae99c55b1320297ba7e79449979d744491adf02622cfb1bd0c58cb0249354026866c1bbb9f198f31ea5d32605eafa8142bb112b30e479855881102d12870488
|
7
|
+
data.tar.gz: 55076b6cea67d53c7c6acedae4806979e3ff933d56b4786d9062cbf2b6c57a407b34f9605535091e449538d86cf38ba5b9b11834d55a0afbf959cd0d3461d2e0
|
data/ext/vox/encoder.hpp
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#include "erlpack/encoder.h"
|
2
2
|
#include "erlpack/constants.h"
|
3
3
|
#include "etf.hpp"
|
4
|
+
#include "ruby.h"
|
4
5
|
|
5
6
|
namespace etf
|
6
7
|
{
|
@@ -173,7 +174,11 @@ namespace etf
|
|
173
174
|
for (uint32_t index = 0; index < size * 2; index += 2)
|
174
175
|
{
|
175
176
|
VALUE key = RARRAY_AREF(keys, index / 2);
|
176
|
-
|
177
|
+
// Normalize keys to strings because discord
|
178
|
+
if (TYPE(key) == T_SYMBOL)
|
179
|
+
encode_object(rb_sym2str(key));
|
180
|
+
else
|
181
|
+
encode_object(key);
|
177
182
|
encode_object(rb_hash_aref(hash, key));
|
178
183
|
}
|
179
184
|
}
|
data/lib/vox/etf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vox-etf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Carey
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
163
|
+
rubygems_version: 3.0.3
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: ETF decoding/encoding for vox.
|