static_struct 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/static_struct.rb +2 -0
  3. metadata +6 -8
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3c1b1824caefcec9fb34913d6042d45811f6cf79
4
+ data.tar.gz: 1c501830409b6c4719595681c308f863731294c7
5
+ SHA512:
6
+ metadata.gz: 586a3a16e3f9e4553511e8fbbc2e7711e550fbee4e1beae94259ecba3a7c9ab441c9208f5c50dd651a295aa68f9e7b0a1ff8f2f2cb91eb57554c112e03ba0f1b
7
+ data.tar.gz: 52d01e40a74261dd9b4bd500c528679a8473d6c0462993a9468c1e3a44980b015556b69ed6800afa50a83c3427a1c6ca4b2e15d38e2c9feec7200632ae750457
data/lib/static_struct.rb CHANGED
@@ -65,6 +65,8 @@ class StaticStruct
65
65
  end
66
66
 
67
67
  def build_hash(node)
68
+ return nil if node == nil
69
+
68
70
  case node when Array
69
71
  node.map { |item| build_hash(item) }
70
72
  else
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Federico Poli
@@ -21,26 +20,25 @@ files:
21
20
  - lib/static_struct.rb
22
21
  homepage: http://github.com/fapoli/static-struct
23
22
  licenses: []
23
+ metadata: {}
24
24
  post_install_message:
25
25
  rdoc_options: []
26
26
  require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
- none: false
30
29
  requirements:
31
- - - ! '>='
30
+ - - '>='
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
33
  required_rubygems_version: !ruby/object:Gem::Requirement
35
- none: false
36
34
  requirements:
37
- - - ! '>='
35
+ - - '>='
38
36
  - !ruby/object:Gem::Version
39
37
  version: '0'
40
38
  requirements: []
41
39
  rubyforge_project:
42
- rubygems_version: 1.8.24
40
+ rubygems_version: 2.2.2
43
41
  signing_key:
44
- specification_version: 3
42
+ specification_version: 4
45
43
  summary: Static Struct
46
44
  test_files: []