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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23e933f7516643febe38cf5e2d8ee5e9f1ab3fe68ff1fb6dd97c6fa62ff9aa4f
4
- data.tar.gz: 84aba301392e4726c27d60be188965cd0657cf312a89e839e315b6a02992c023
3
+ metadata.gz: e3745f75f9a0e5ea20d7ad1706dd25ac300839caecc8bf1263842e8ff1439652
4
+ data.tar.gz: e1c7a531f1e24b2af0b29bd5fd691874c6c3db0a6023aa5988c550575c2baeec
5
5
  SHA512:
6
- metadata.gz: 8772aad812bc659a49137e275e369c91dc32923f1ebb1dbbd596bdbc5b9d63d325f0d62cc8379e3dc7d050d4ed2e6112aee88437923b6fcef92b963668596af5
7
- data.tar.gz: bcf8b1923f65051c018c092d41e797d3dd4760dce007f5e82dd63a2b139214009c658ee96a508c0aedb245c43dde931bb0b09841684f9173f3c9e96f4d9e217c
6
+ metadata.gz: 0ae99c55b1320297ba7e79449979d744491adf02622cfb1bd0c58cb0249354026866c1bbb9f198f31ea5d32605eafa8142bb112b30e479855881102d12870488
7
+ data.tar.gz: 55076b6cea67d53c7c6acedae4806979e3ff933d56b4786d9062cbf2b6c57a407b34f9605535091e449538d86cf38ba5b9b11834d55a0afbf959cd0d3461d2e0
@@ -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
- encode_object(key);
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
  }
@@ -21,6 +21,6 @@ module Vox
21
21
  # end
22
22
 
23
23
  # Gem version
24
- VERSION = '0.1.4'
24
+ VERSION = '0.1.5'
25
25
  end
26
26
  end
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
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.1.2
163
+ rubygems_version: 3.0.3
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: ETF decoding/encoding for vox.