dry-stack 0.1.60 → 0.1.62

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea72764eaee0263c5a1c4f390290cf7053444a985afd5c632def91cf6df3085e
4
- data.tar.gz: 76aa890490273309f085aed473b54a26b0db076793d2497def938f7fd8be4d8b
3
+ metadata.gz: 8407e55c9630cfdc80cfa951e57b9c4620865112d5b6aaef980b0934d3d89fcb
4
+ data.tar.gz: a149c902f4f9e6f8c2adcebc0481607db26558e142ba4eae7683a6f0684421f9
5
5
  SHA512:
6
- metadata.gz: aa7ed86d559cf05abe476738c031278b2e5e42860a29a5c6f95fa57b941be9b3a3466b7947590e84d665f9efd34fc580b2e7717fe00d88f749026a88b79c220c
7
- data.tar.gz: 86643928bccf52a2dfa7ce1cba651382fe5c747247847681ed974faa5f4e88dff1f6bd437103fa7e95a8c2071ddb3968b216818a03e566cdaa6b4b630e6d965f
6
+ metadata.gz: 8cd9f91b0307d4ea4b16b5fa9e4b3d5a4a30d52ba27c51ca78721edbf38bbb45d5eaccb9b16829db08891b13f993a62e993708a6e41050fbb1660254b118aa43
7
+ data.tar.gz: 3649e25ba13bd508a618dc34df3cea11474eae3aa98040bdd6329c6dc29e65e9c27ea1a9d323a66281fb131666be176d80e85922baf334f647aebb895cb53c11
@@ -322,8 +322,10 @@ module Dry
322
322
  if pp_h&.any?
323
323
  service[:ports] = service[:ports].map { |s|
324
324
  if s.class == String
325
- published, target = s.split(':').map(&:to_i)
326
- { published:, target:, protocol: 'tcp', mode: 'ingress'}
325
+ # Preserve /udp when mixing shorthand ports with hashes; to_i discards the suffix.
326
+ mapping, protocol = s.split('/', 2)
327
+ published, target = mapping.split(':').map(&:to_i)
328
+ { published:, target:, protocol: protocol || 'tcp', mode: 'ingress'}
327
329
  else
328
330
  s
329
331
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Stack
3
- VERSION = '0.1.60'
3
+ VERSION = '0.1.62'
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.60
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artyom B
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-11 00:00:00.000000000 Z
11
+ date: 2026-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake