bbk-utils 1.1.0.273317 → 1.1.0.274232

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: 92bd4633caa38405fd9ec5f01f101842716c0808c3bc86776c4880d0120006c1
4
- data.tar.gz: 3593415e0eec611b5ca305a4d5ba6f59c92591943b00c9c96415f5bfc6441b4a
3
+ metadata.gz: aa5bf79355f0502dac8a98c8787110d2b01005c65b75fa2324c2cd60e8acbebd
4
+ data.tar.gz: ae180dd77410662e8e51844d3b66196b4a25447228b7c517b5f11895c029e796
5
5
  SHA512:
6
- metadata.gz: 90f54d3498b381d24f737147ce5eaf7f5ca717a44c2e830ff307fa41616f5866e5c2f3dba3fe1495904b15da1480d24691f90113c97ede2ea1d4e04c7c7d532c
7
- data.tar.gz: 3306151c09eba11399f139134d65457d52d355fd7b23a59cb056ba2a6f901c4e7744d47acb0d56fe5d86ce3441ad1dde05589f46a3b2beb6d2fbdec0d113f399
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.273317)
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.2.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)
@@ -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] = content
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.273317
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-15 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport