hash_wia 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/lib/hash_wia/module.rb +3 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd11115b0ef5c8f5a7dd2ff555f9945ff8452c222e0366fe027150bdb1ee10ec
|
4
|
+
data.tar.gz: de09b9b2841fde048b47341aec8f0ab2d727d08ec83f0ec280784aed6bb1b769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490f6394423acda2579fd17a40a7fa030dfcd2d3cf93a98227bf27e21b5de15d1781cb0d33064ec62ea35fe3de137a8ee1ac9ef851dfe9a65638bac2b63bdd2b
|
7
|
+
data.tar.gz: 8d1884bc2a421bbcea0942872359f41f9f856c6a6bfd863ebf179265518a18af6126c7b8d322850631850e9179297b01ed49bb154298acd14d3d289948a72b78
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/lib/hash_wia/module.rb
CHANGED
@@ -112,13 +112,10 @@ module HashWiaModule
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
else
|
115
|
-
|
116
|
-
|
117
|
-
# if we return list oh hashes, convert it to hwia
|
118
|
-
value.map {|el| el.class == Hash ? HashWia.new(el) : el }
|
119
|
-
else
|
120
|
-
value
|
115
|
+
if value.class == Array
|
116
|
+
value.map! {|el| el.class == Hash ? HashWia.new(el) : el }
|
121
117
|
end
|
118
|
+
value
|
122
119
|
end
|
123
120
|
end
|
124
121
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_wia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dino Reic
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-08 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Gem provides simple access to common Ruby hash types bundled in one simple
|
13
13
|
class
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
|
-
rubygems_version: 3.6.
|
42
|
+
rubygems_version: 3.6.6
|
43
43
|
specification_version: 4
|
44
44
|
summary: Hash with indifferent access + goodies
|
45
45
|
test_files: []
|