fancybox2 0.0.11 → 0.1.0
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/lib/fancybox2/core_ext/hash.rb +23 -0
- data/lib/fancybox2/module/base.rb +1 -1
- data/lib/fancybox2/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea4bd33159c6f45a46b9957c894992fb8322f4ae1907a178c0a325d769daa61
|
4
|
+
data.tar.gz: 5c65c4dddaec5f3604aeb85bc9d6507aa24ab848ff5bc615f20cbafef81282df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24bb5082543f2dec358d3f89bb032e26d74b86bb895d3995d16b2101a86fda79300993024a7fb5d6831ed6780e2fe556b729d3c22cb4b43ac4e428a4bf723cd9
|
7
|
+
data.tar.gz: d478e88a59b7f7171cbf74994178f3f71ca6dc701fd1cb9a87cc523629202efe947606283a5ffee3bde586f19f9ec35dbad55eb0334520976d36ea1baeb90d48
|
@@ -188,4 +188,27 @@ class Hash
|
|
188
188
|
object
|
189
189
|
end
|
190
190
|
end
|
191
|
+
|
192
|
+
# support methods for deep transforming nested hashes and arrays
|
193
|
+
def _deep_transform_values_in_object(object, &block)
|
194
|
+
case object
|
195
|
+
when Hash
|
196
|
+
object.transform_values { |value| _deep_transform_values_in_object(value, &block) }
|
197
|
+
when Array
|
198
|
+
object.map { |e| _deep_transform_values_in_object(e, &block) }
|
199
|
+
else
|
200
|
+
yield(object)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
def _deep_transform_values_in_object!(object, &block)
|
205
|
+
case object
|
206
|
+
when Hash
|
207
|
+
object.transform_values! { |value| _deep_transform_values_in_object!(value, &block) }
|
208
|
+
when Array
|
209
|
+
object.map! { |e| _deep_transform_values_in_object!(e, &block) }
|
210
|
+
else
|
211
|
+
yield(object)
|
212
|
+
end
|
213
|
+
end
|
191
214
|
end
|
@@ -379,7 +379,7 @@ module Fancybox2
|
|
379
379
|
# :nocov:
|
380
380
|
|
381
381
|
def load_fbx_file
|
382
|
-
if File.
|
382
|
+
if File.exist? @fbxfile_path
|
383
383
|
@fbxfile = YAML.load(File.read(@fbxfile_path)).deep_symbolize_keys
|
384
384
|
else
|
385
385
|
raise Exceptions::FbxfileNotFound.new @fbxfile_path
|
data/lib/fancybox2/version.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancybox2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Verlato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.7.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.7.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: paho-mqtt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.12
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.12
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: concurrent-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.3.5
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.3.5
|
55
55
|
description:
|
56
56
|
email: alessandro@fancypixel.it
|
57
57
|
executables: []
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
96
|
+
rubygems_version: 3.5.21
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Fancybox 2 Ruby SDK
|