king_konf 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 79a1662b16c52209c5cdf929117c793010c6a2bd
4
- data.tar.gz: 0cc7fa9c7cff3248513bd864f29cb3846dfee210
3
+ metadata.gz: 70845cbc41ec59e96a4bf3e4894fdba569a4bea3
4
+ data.tar.gz: 3e00f88323c2316905fd645cfba2d6fd9d41bcbb
5
5
  SHA512:
6
- metadata.gz: 04bbcae68698e1580ad31056ee67612fdfb978d0306836317abfb026e1ed40b827538fd5b11fdb1c2e993cf5e70054768bb0e827b3d00993bca0009a913b8786
7
- data.tar.gz: 76b6918917d47f8fdc10dc4286f510c552d39a38c3672a607bb83dd242dd8f78ef50c23d50b0cd32e4a59599e7d78682471d738aaa271b4060b08d5196f74dec
6
+ metadata.gz: 6f2feac2feef30ceb3440ff1dc50bd84bbcfb41a27c38382392b8799a2d15a7b6ec146fd6b93754399ab599031cce92e83da7e489a0aa267dfbde90760a81180
7
+ data.tar.gz: 94e6a8ac6583ac91e3038a3b96ac5ce86545764d606c384b950d0f388a94d17dec8524e152fdcec7ebb8b76e1045649f89ad6adc8268fe1e97056066de308790
@@ -38,9 +38,9 @@ module KingKonf
38
38
 
39
39
  def valid?(value)
40
40
  case @type
41
- when :string then value.is_a?(String)
41
+ when :string then value.is_a?(String) || value.nil?
42
42
  when :list then value.is_a?(Array)
43
- when :integer then value.is_a?(Integer)
43
+ when :integer then value.is_a?(Integer) || value.nil?
44
44
  when :boolean then value == true || value == false
45
45
  else raise "invalid type #{@type}"
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module KingKonf
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: king_konf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck