thaip 0.0.1 → 0.0.2

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: '053683a92e0c8d3aef39eaa0acdbd4250201541612e3e80121066accda05abd8'
4
- data.tar.gz: 34e9692dbe01b7a60d408dc649814c22d0cc31a5bc8ab56ca58af2ac1a32aa04
3
+ metadata.gz: 802ed4d749cb3992d62d4e1fa0e637da44fe44435790a9889bbc882e91bd84a8
4
+ data.tar.gz: 4dbb04a3321929143c4a260f30402a89470a211c86c0ab83a5520c0427cd496b
5
5
  SHA512:
6
- metadata.gz: 2ec7085583013ef659ca2aa571323de75e655774315ec0fbe41d60c4eab0d1c032bdb60293144b22da8d325c651bcfbfbeb89a0d632eef92f35383335375b46f
7
- data.tar.gz: cb3a585213967a2bfbbeebee959d1d0c117345a8e7d6dc90c8f2564f28efa1613bf716fabb58975a6892bfdbdc2bca000987af83b60ccbfa8a70af1e8c9d6ccd
6
+ metadata.gz: c26f1da730ece91f9c3ee2cff0d1157764ac61d0a216406ecb67001951a475dd5f2a398b1a62f8caa8b8bc01e42d41abb5b4b682ecccbed0943247351e51c6e0
7
+ data.tar.gz: 3097c009501a0ff3274e27c90aa0719da9818c533cfeab228de37a2f906cc0648fd46f86a498fd3bf1783e8435cbd2acc7399b8b0eb2a3b2574efe7aea2389e7
data/lib/thaip.rb CHANGED
File without changes
@@ -24,6 +24,8 @@ class MakeStruct
24
24
  end
25
25
 
26
26
  def __default_value(key)
27
+ return nil unless __ctor_args[1][key]
28
+ return __ctor_args[1][key].call if __ctor_args[1][key].is_a?(Proc)
27
29
  __ctor_args[1][key]
28
30
  end
29
31
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thaip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - itarato
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  requirements: []
55
- rubygems_version: 3.1.2
55
+ rubygems_version: 3.2.3
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Thaip