vox-etf 0.1.3 → 0.1.4

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: 20430b5c79bc96dd01b89eb8a15e4f18ad5387d2da0401a32757207a8e4bb997
4
- data.tar.gz: 030dfda27dbe590878dd76514f151afb2d0ef275dfa1d3056f8712ecd514efda
3
+ metadata.gz: 23e933f7516643febe38cf5e2d8ee5e9f1ab3fe68ff1fb6dd97c6fa62ff9aa4f
4
+ data.tar.gz: 84aba301392e4726c27d60be188965cd0657cf312a89e839e315b6a02992c023
5
5
  SHA512:
6
- metadata.gz: 8abe290ea1d4816ec4c9db1e408bc0540d54ebb8659d1e6f617c6524adfd2ce010013bf20d25eca76bd5ad9fd284343219b9d22c14cfc81de57d1ef663e73e4b
7
- data.tar.gz: f1c124d99a11e882a2351b95937ce8b341e25322d057111be055b229cb44ea4f1d21c1fc0aa6f5fe638ec1f6369851f1957f3f812bada7fcb4bf5fd4980ee68c
6
+ metadata.gz: 8772aad812bc659a49137e275e369c91dc32923f1ebb1dbbd596bdbc5b9d63d325f0d62cc8379e3dc7d050d4ed2e6112aee88437923b6fcef92b963668596af5
7
+ data.tar.gz: bcf8b1923f65051c018c092d41e797d3dd4760dce007f5e82dd63a2b139214009c658ee96a508c0aedb245c43dde931bb0b09841684f9173f3c9e96f4d9e217c
@@ -137,12 +137,20 @@ namespace etf
137
137
 
138
138
  void encode_array(VALUE array)
139
139
  {
140
- erlpack_append_list_header(erl_buff, RARRAY_LEN(array));
141
140
  uint32_t size = RARRAY_LEN(array);
141
+ if (size == 0)
142
+ {
143
+ erlpack_append_nil_ext(erl_buff);
144
+ return;
145
+ }
146
+
147
+ erlpack_append_list_header(erl_buff, size);
142
148
  for (uint32_t index = 0; index < size; index++)
143
149
  {
144
150
  encode_object(RARRAY_AREF(array, index));
145
151
  }
152
+
153
+ erlpack_append_nil_ext(erl_buff);
146
154
  }
147
155
 
148
156
  void encode_symbol(VALUE symbol)
@@ -21,6 +21,6 @@ module Vox
21
21
  # end
22
22
 
23
23
  # Gem version
24
- VERSION = '0.1.3'
24
+ VERSION = '0.1.4'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Carey