helmsnap 1.2.0 → 1.2.2

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: 76c73dc7b61a3c405d200bb8af1d19e79ae7c25a150863f93d329e5735b4c83e
4
- data.tar.gz: 0473a0a61ab7aa0b937a27d3d25b65f28443b21460f6f5ff3b16763d9fb7e62f
3
+ metadata.gz: 6d8c61b007ee5627461c099a7eaf61136fc1b5dc65ca8157719b8d8cfef4652f
4
+ data.tar.gz: 0b36ff7c7ce1d74b92db8d731b5379bb8de8e661174761e0cb270dda7f5f34c1
5
5
  SHA512:
6
- metadata.gz: 1a8ba0058f8830dd104c6cdafceb68b5e37cd6be0f5bcf1c0214ccb6f25b74c880531e049aabad500f8bd0e7e2e8b26d9e482ee7288fe8e43010a4d822b93b10
7
- data.tar.gz: cffb46bf4a843124d62007b930e75fe753b12eda3ccdd312e1fb27a129d5b9dad7e09f1976c1a0436152fc4703362a48ffabeb286cf036e7ead275f0328bcc51
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.0)
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
@@ -42,6 +42,6 @@ class Helmsnap::Generate < Helmsnap::Service
42
42
  end
43
43
 
44
44
  FileUtils.rmtree(snapshots_path)
45
- FileUtils.move(tmp_path, snapshots_path)
45
+ FileUtils.cp_r(tmp_path, snapshots_path)
46
46
  end
47
47
  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.0"
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.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov
8
- autorequire:
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
@@ -24,7 +23,6 @@ dependencies:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
27
- description:
28
26
  email:
29
27
  - tycooon@yandex.ru
30
28
  executables:
@@ -63,7 +61,6 @@ licenses:
63
61
  metadata:
64
62
  homepage_uri: https://github.com/tycooon/helmsnap
65
63
  source_code_uri: https://github.com/tycooon/helmsnap
66
- post_install_message:
67
64
  rdoc_options: []
68
65
  require_paths:
69
66
  - lib
@@ -78,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
75
  - !ruby/object:Gem::Version
79
76
  version: '0'
80
77
  requirements: []
81
- rubygems_version: 3.5.23
82
- signing_key:
78
+ rubygems_version: 3.6.2
83
79
  specification_version: 4
84
80
  summary: A tool for creating and checking helm chart snapshots.
85
81
  test_files: []