view_component_storybook 0.10.0 → 0.10.1

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: 71e48c5a57bcaf3c754570c01203b0953e0a93ae6a88bfaa62c7db065535e112
4
- data.tar.gz: ae5ab22539296310681f81b6efe156bda605c5472c41f2f5f803676664df71c2
3
+ metadata.gz: b6ef1bcb6cf8fd3beccec9242854aa913bd31fe1c7c44c44cdde6b59be8fd67f
4
+ data.tar.gz: de047bb6e4e453db106270ba7f28b4d252fed881816266e10b99bb8c2d4b93f0
5
5
  SHA512:
6
- metadata.gz: e4ac764fd6a7fc4f4d10e2693f05056ef2441ab564d48411a30eea93dd5b843e947e8470b3743c4124ad41d9eff33b1fc2830debcd8e9dbbd12002d9ff5590e7
7
- data.tar.gz: 77f2e1d325cb1c1ca4cf2e7ef2ab35ebb7230559d959f5385a95cc40f8bf3496f98e2ef715fea3a50fda3413755d1e18349df81e6510ac3de544bd47354a3ef7
6
+ metadata.gz: 4d96299b59366d1f50d034399299209a7edc01aa99f3ff728b0e6ed1721b1f80679aa8f7bbb953be549baa59fd74d090eb8d5b7e615bdc7b26164ebb0f011373
7
+ data.tar.gz: d97204b485ac6d1b61c7848e6c2b68cec798328eef7e78738f3f675daa805dc6db73a0e6d1e6e7f17373de4b5ca90cfe000716bb4b25f29f8ae77d9985f0580e
@@ -13,7 +13,9 @@ module ViewComponent
13
13
  if params_value.is_a?(String)
14
14
  parsed_json = JSON.parse(params_value)
15
15
  if parsed_json.is_a?(Array)
16
- parsed_json.map(&:deep_symbolize_keys)
16
+ parsed_json.map do |item|
17
+ item.is_a?(Hash) ? item.deep_symbolize_keys : item
18
+ end
17
19
  else
18
20
  parsed_json.deep_symbolize_keys
19
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ViewComponent
4
4
  module Storybook
5
- VERSION = "0.10.0"
5
+ VERSION = "0.10.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component_storybook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Palmer