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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e095155d87a80c873d5f1d8939f6680f2f926801d0c283306c42994f62d47be7
4
- data.tar.gz: cb09000227d74c1d7582994394af1ae23b6081ac840364931214d2f8fe9c5be1
3
+ metadata.gz: 5ab436bec3dbf1350bfb81b1593fe002a3e5b59e9684320386bb6f2233955277
4
+ data.tar.gz: 5e04bf7862264a5b61c9638ac348dc3b882239104ca053c1532bf459881faef8
5
5
  SHA512:
6
- metadata.gz: 6e256f9db28e233d07d77abd2ed5d205e76ea99fdc4205ec05237fef1e82376cd125e7c20f3b960e86fbf8e81d52631a8e5d41301e1ad87fdc2678f2415f52bc
7
- data.tar.gz: 3dfb9adaacf24bc62d6f2c811bc4018894f0b84f5280e06f4a9fa3321241492e12b3425d6a1ba9a82b35bc9061e6351945f81b82324109bbc8c4b0200774d1a9
6
+ metadata.gz: efb9473eeedb34f7786935baecd2660021c1c3e0e6012fb9c14e2c6e366e3398da9958cde7a18f2ebdd9848538dc3fe8f15759415f09bfc329735c96860496e0
7
+ data.tar.gz: 06c5e16805ca23f4681ad0be7a505c60778764044da8d415e567058e336df64743227fb522334d3b8010d63f770dbfc94da976d910dc5a56dc966efffc0d4690
@@ -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
- if network[:name]
282
- (compose[:networks][name] ||= {}).merge! network.except(:aliases).merge(name: network[:name])
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
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Stack
3
- VERSION = '0.1.19'
3
+ VERSION = '0.1.20'
4
4
  end
5
5
  end
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.19
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-08 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake