typed_params 1.0.2 → 1.0.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
  SHA256:
3
- metadata.gz: 2c59b3bb4616ea961712403ef227a38d003dcc3f1ee9a6d84f310b853c67ebd0
4
- data.tar.gz: '092c41c550392b86b7a54355d061c2a6580181a3e9c7cd159035628edcf42459'
3
+ metadata.gz: 440661d066c2dffa2f84361a952e7158ca7d56d16037ca2c937acb30f2f1cad6
4
+ data.tar.gz: ad9f0aad3b817b5fa5f99d6d9eaa9e8f73d556c037cd03207bdc10b51fb26e81
5
5
  SHA512:
6
- metadata.gz: a8861eadab77356645756dbac358566ad33e872132ac9c68b29a8769c653806a0aa7487d81cf65a4a8046720a9389a20c75d4db0009418d785d844a0a908efff
7
- data.tar.gz: ac7f14c76deb864aad8d11a3cf3cb5e2a72567ab7bf781780b8822aacb68820a8965374f439dee63568bf0a01a197c0189951cbc898e1ef15bbf4bc8840f4eb6
6
+ metadata.gz: 5919d79cc5c6f4b8bc7c8b1f65520b04e7fb11632f3b20f50f1c99f9346602f2f471058d293da5e14709c6b5f95ae2f1b1ddf04fa3c235b1314ef701333b568d
7
+ data.tar.gz: dea4d641834d9ae1184cdcc5653f1d04bdca18650d787d3557991ab03219ebc2234b36e9edaa9bd7733466852538491e3ad42e93029d9a748c7cea5a4b735105
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.3
4
+
5
+ - Revert 0b0aaa6b66edd3e4c3336e51fa340592e7ef9e86.
6
+
3
7
  ## 1.0.2
4
8
 
5
9
  - Fix parameterization of nil children.
@@ -31,8 +31,8 @@ module TypedParams
31
31
  :parent
32
32
 
33
33
  def parameterize_array_schema(key:, value:)
34
- return parameterize_value(key:, value:) if
35
- value.nil?
34
+ return parameterize_value(key:, value:) unless
35
+ value.is_a?(Array)
36
36
 
37
37
  param = Parameter.new(key:, value: [], schema:, parent:)
38
38
 
@@ -56,8 +56,8 @@ module TypedParams
56
56
  end
57
57
 
58
58
  def parameterize_hash_schema(key:, value:)
59
- return parameterize_value(key:, value:) if
60
- value.nil?
59
+ return parameterize_value(key:, value:) unless
60
+ value.is_a?(Hash)
61
61
 
62
62
  param = Parameter.new(key:, value: {}, schema:, parent:)
63
63
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TypedParams
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typed_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeke Gabrielse