kuby-core 0.11.13 → 0.11.14

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: cc71b4e03be08bf58382169b829abedc849fc14f65f6fb411a31327e81fa1ced
4
- data.tar.gz: 76e66b27a965c68fbb4296aac40dc8febe1f13052f13aa80ecbf2a917ed2adf9
3
+ metadata.gz: bfd902325b0bf78437ea91ba6021ee0cc27f83c67d60a703508a8b0c5a84bc86
4
+ data.tar.gz: 9598df94486a386235a3566c4c0422f824c30870551251ce3f4836fc94677b39
5
5
  SHA512:
6
- metadata.gz: 31368684f53099ac9e9107b57a8274a5a9ade40000ec9e94a1b643530445192501b1ce4adbb6d18d36e1b3ac7ceccd70b7763a51795a63825bbe2c0ccf7f97a7
7
- data.tar.gz: a733461cb128b827c71579b6d58338132d88fab91d658b57f38045dc9dd5e4db9a5968002290a81d57e9ff96eea6853e3487b618d1dbd9bbcb63a263483594f0
6
+ metadata.gz: 2ba1c29f18311795a39c8038940c6bc53ae6868523d520af81a52543ee6726282696f07af78b2cd8d6736ce5d0e7bc98ffd14f61693cf0b7421b7cccbbe6ea70
7
+ data.tar.gz: 801f401ba743d5375e59c33e1be57b6ae7767d5580e37bef0186dd2e299e7293f1a9e2e277a10b43b94977e0f982be8908e57153fb14d136a9e54aea92031fdf
@@ -1,3 +1,6 @@
1
+ ## 0.11.14
2
+ * Don't include port in image host for registry secrets (no idea why)
3
+
1
4
  ## 0.11.13
2
5
  * Include port in image host.
3
6
 
@@ -41,6 +41,11 @@ module Kuby
41
41
  @image_host ||= "#{full_image_uri.host}:#{full_image_uri.port}"
42
42
  end
43
43
 
44
+ sig { returns(String) }
45
+ def image_hostname
46
+ @image_hostname ||= full_image_uri.host
47
+ end
48
+
44
49
  sig { returns(String) }
45
50
  def image_repo
46
51
  @image_repo ||= full_image_uri.path
@@ -152,7 +152,7 @@ module Kuby
152
152
  end
153
153
 
154
154
  docker_config do
155
- registry_host spec.docker.metadata.image_host
155
+ registry_host spec.docker.metadata.image_hostname
156
156
  username spec.docker.credentials.username
157
157
  password spec.docker.credentials.password
158
158
  email spec.docker.credentials.email
@@ -1,5 +1,5 @@
1
1
  # typed: true
2
2
 
3
3
  module Kuby
4
- VERSION = '0.11.13'.freeze
4
+ VERSION = '0.11.14'.freeze
5
5
  end
@@ -19,18 +19,18 @@ describe Kuby::Docker::Metadata do
19
19
  describe '#image_host' do
20
20
  subject { metadata.image_host }
21
21
 
22
- it { is_expected.to eq(Kuby::Docker::DockerURI::DEFAULT_REGISTRY_HOST) }
22
+ it { is_expected.to eq("#{Kuby::Docker::DockerURI::DEFAULT_REGISTRY_HOST}:443") }
23
23
 
24
24
  context 'when the image URL contains an explicit host' do
25
25
  let(:docker_image_url) { 'registry.foo.com/foo/testapp' }
26
26
 
27
- it { is_expected.to eq('registry.foo.com') }
27
+ it { is_expected.to eq('registry.foo.com:443') }
28
28
  end
29
29
 
30
30
  context 'when the image URL contains an explicit host' do
31
31
  let(:docker_image_url) { 'http://registry.foo.com/foo/testapp' }
32
32
 
33
- it { is_expected.to eq('registry.foo.com') }
33
+ it { is_expected.to eq('registry.foo.com:443') }
34
34
  end
35
35
  end
36
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.13
4
+ version: 0.11.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize