helmsnap 1.2.1 → 1.2.2

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: 306405fefdd0a806b1e89fd691a7412686218ffaeb981a9685e40ee6ff5a8880
4
- data.tar.gz: 644a72cc622dcefe774bea2acc8cd9816f770290e4704b28aafa3b6311dae122
3
+ metadata.gz: 6d8c61b007ee5627461c099a7eaf61136fc1b5dc65ca8157719b8d8cfef4652f
4
+ data.tar.gz: 0b36ff7c7ce1d74b92db8d731b5379bb8de8e661174761e0cb270dda7f5f34c1
5
5
  SHA512:
6
- metadata.gz: d6c09ccb98572852ee4877afbe6c3371cb03e9a6df5476057770bee762e9f0a6f9eb3dab20e0c3d2de97c827ce1d4e2b1b524214f671ffe0c58c81fb1d40a00b
7
- data.tar.gz: b0d4ba70df6544b282ba24b3dbefe8882f0a2cafe0634f60666ed8ca05209462e73303bc5a82fbb6edebb64fb8dbe3a7dfdc660df59b2566bdcc67dae670acb1
6
+ metadata.gz: 92bb9e04dcb8ccc122e755e4921a842986b41f39619c03a6c15106680893ebe90b2dc762da8c0bc828af1855a7e1912fe9e2cd1138ae0db7306b38f98f71cce6
7
+ data.tar.gz: 1fe3fc73a7757e9a175d9dcaeb26d7ff6f7d25852a9f61223d9a757620c0838e57e7a663a1d2d6ccc7aaa7eb3f94b01c9029eafba0b2ea60f60b2924909c2063
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helmsnap (1.2.1)
4
+ helmsnap (1.2.2)
5
5
  colorize
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Helmsnap::Config
4
- Credentials = Struct.new(:username, :password)
4
+ Credentials = Struct.new(:repo, :username, :password)
5
5
 
6
6
  attr_reader :envs, :snapshots_path, :credentials
7
7
 
@@ -34,8 +34,8 @@ class Helmsnap::Config
34
34
  end
35
35
 
36
36
  def parse_credentials(yaml)
37
- yaml.fetch("credentials", []).each_with_object({}) do |obj, credentials|
38
- credentials[obj["repo"]] = Credentials.new(obj["username"], obj["password"])
37
+ yaml.fetch("credentials", []).map do |obj|
38
+ Credentials.new(obj["repo"], obj["username"], obj["password"])
39
39
  end
40
40
  end
41
41
  end
@@ -44,7 +44,7 @@ class Helmsnap::SetupDependencies < Helmsnap::Service
44
44
  dep_list.scan(%r{(https?://.+?)\s}) do |dep_path|
45
45
  url = dep_path.first
46
46
 
47
- if (credentials = config.credentials[url])
47
+ if (credentials = config.credentials.find { |x| url.start_with?(x.repo) })
48
48
  extra_args = ["--username", credentials.username, "--password", credentials.password]
49
49
  end
50
50
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Helmsnap
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helmsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
- original_platform: ''
7
6
  authors:
8
7
  - Yuri Smirnov
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-12-18 00:00:00.000000000 Z
10
+ date: 2024-12-26 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: colorize
@@ -76,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
75
  - !ruby/object:Gem::Version
77
76
  version: '0'
78
77
  requirements: []
79
- rubygems_version: 3.6.1
78
+ rubygems_version: 3.6.2
80
79
  specification_version: 4
81
80
  summary: A tool for creating and checking helm chart snapshots.
82
81
  test_files: []