bbk-utils 1.1.0.273317 → 1.1.0.274232
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/Gemfile.lock +2 -2
- data/lib/bbk/utils/config.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa5bf79355f0502dac8a98c8787110d2b01005c65b75fa2324c2cd60e8acbebd
|
|
4
|
+
data.tar.gz: ae180dd77410662e8e51844d3b66196b4a25447228b7c517b5f11895c029e796
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b59a647ba32ba9cd150beeb1c5aa9dd3c387f4695162099fb30278bc6237d534ab086a7d6415fd0da62ec187804a4679704bcf00e4723fe0c1948213da42bb91
|
|
7
|
+
data.tar.gz: 8b806d3b3871d8713a564a35b75ceadb72e8e7336c6fec1362772233b4b48cf86aa0f88d9183dc5803fc28253d222dae45200b7c685f0c8d089d604a2e94aa3a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bbk-utils (1.1.0.
|
|
4
|
+
bbk-utils (1.1.0.274232)
|
|
5
5
|
activesupport (>= 7.0)
|
|
6
6
|
russian
|
|
7
7
|
|
|
@@ -63,7 +63,7 @@ GEM
|
|
|
63
63
|
addressable (~> 2.7)
|
|
64
64
|
logger (1.6.1)
|
|
65
65
|
minitest (5.25.1)
|
|
66
|
-
mutex_m (0.
|
|
66
|
+
mutex_m (0.3.0)
|
|
67
67
|
parallel (1.21.0)
|
|
68
68
|
parser (3.0.3.1)
|
|
69
69
|
ast (~> 2.4.1)
|
data/lib/bbk/utils/config.rb
CHANGED
|
@@ -257,7 +257,7 @@ module BBK
|
|
|
257
257
|
|
|
258
258
|
# Если данные есть, либо указан тип (нужно для того чтобы переменная была нужного типа)
|
|
259
259
|
if content.present? || item[:type].present?
|
|
260
|
-
if file = item[:file]
|
|
260
|
+
if (file = item[:file])
|
|
261
261
|
dirname = File.dirname(file)
|
|
262
262
|
FileUtils.mkdir_p(dirname) unless File.directory?(dirname)
|
|
263
263
|
File.write(file, content)
|
|
@@ -276,7 +276,11 @@ module BBK
|
|
|
276
276
|
elsif item[:required]
|
|
277
277
|
required!(item)
|
|
278
278
|
else
|
|
279
|
-
item[:value] =
|
|
279
|
+
item[:value] = if (file = item[:file]).present? && File.exist?(file)
|
|
280
|
+
file
|
|
281
|
+
else
|
|
282
|
+
content
|
|
283
|
+
end
|
|
280
284
|
end
|
|
281
285
|
rescue StandardError => e
|
|
282
286
|
msg = "Failed processing #{item[:env]} parameter. #{e.inspect}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bbk-utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.0.
|
|
4
|
+
version: 1.1.0.274232
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samoilenko Yuri
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-11-
|
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|