dry-stack 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry-stack/stack.rb +5 -3
- data/lib/version.rb +1 -1
- 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: 5ab436bec3dbf1350bfb81b1593fe002a3e5b59e9684320386bb6f2233955277
|
4
|
+
data.tar.gz: 5e04bf7862264a5b61c9638ac348dc3b882239104ca053c1532bf459881faef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efb9473eeedb34f7786935baecd2660021c1c3e0e6012fb9c14e2c6e366e3398da9958cde7a18f2ebdd9848538dc3fe8f15759415f09bfc329735c96860496e0
|
7
|
+
data.tar.gz: 06c5e16805ca23f4681ad0be7a505c60778764044da8d415e567058e336df64743227fb522334d3b8010d63f770dbfc94da976d910dc5a56dc966efffc0d4690
|
data/lib/dry-stack/stack.rb
CHANGED
@@ -278,11 +278,12 @@ module Dry
|
|
278
278
|
service[:networks]&.each do |name, network|
|
279
279
|
next unless network.is_a? Hash
|
280
280
|
|
281
|
-
|
282
|
-
|
283
|
-
end
|
281
|
+
(compose[:networks][name] ||= {}).merge! network.except(:aliases)
|
282
|
+
compose[:networks][name].merge(name: network[:name]) if network[:name]
|
284
283
|
network.delete :external
|
285
284
|
network.delete :name
|
285
|
+
network.delete :attachable
|
286
|
+
|
286
287
|
service[:networks][name] = EMPTY_HASH if network.empty?
|
287
288
|
end
|
288
289
|
|
@@ -312,6 +313,7 @@ module Dry
|
|
312
313
|
end
|
313
314
|
end
|
314
315
|
|
316
|
+
compose[:networks].delete_if{ |k,v| k == :default && v.empty? }
|
315
317
|
compose[:networks].transform_values! do |network|
|
316
318
|
network.empty? ? EMPTY_HASH : network
|
317
319
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artyom B
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|