helmsnap 1.4.1 → 2.0.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: d14fd6d3ef7d4685fe1d691b98a6b6ba6b6d2d692c04b6892b2c6cabbbbb0822
4
- data.tar.gz: 784c58590fccef4f3926ae27810661f19e4f1dcaa14153a69ed5f251a79e4fb0
3
+ metadata.gz: 7f9fb7494bffb611934e0afa9a3f9c435e9941180def0f4e874574302dae51db
4
+ data.tar.gz: 1bd0702017bb67f035726e6fef261106a5d35cdf87a7a63829234bec448e8a9c
5
5
  SHA512:
6
- metadata.gz: 40cf441f3e4853751b2bb1aebcfe8df776ddcbc63ba2f648955312c179f79d0d4a2c8f059c1d0be2b72f20095df8be04d79b260adcd7f081710959cc8736567e
7
- data.tar.gz: b2070eae3542296ac9e453478df5b8641676ba6d9b21aeb499101e0af76a9650458a8d7ccdfe131b034fe1c61cf89eb9361b115e737bf4d83bf7c1d199e5ee71
6
+ metadata.gz: d919619d68698df294fc09711396c3d2c3b2fc8e1047b84e46bf9646a1ab6840332ff8cd081c78f69932ebe4568810edcfe85569e4f9fe16c3fca125dfaff896
7
+ data.tar.gz: 877afa2959baf3adbfad09e425e92fd8bb0cb2d43b03919c962f295a5a4b47002f594171faaf6c2b9592bdc6b53bcded96f867183ce183293bcadb89736b0a9a
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ inherit_gem:
3
3
 
4
4
  AllCops:
5
5
  DisplayCopNames: true
6
- TargetRubyVersion: 3.0
6
+ TargetRubyVersion: 3.3
7
7
  Include:
8
8
  - bin/console
9
9
  - Gemfile
data/Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
- FROM alpine/helm:3
1
+ FROM alpine/helm:4
2
2
 
3
3
  RUN apk add --update --no-cache ruby git colordiff
4
4
 
5
5
  WORKDIR /wd
6
6
 
7
- COPY --from=ghcr.io/helmfile/helmfile:v0.171.0 /usr/local/bin/helmfile /usr/local/bin/helmfile
7
+ COPY --from=ghcr.io/helmfile/helmfile:v1.5.2 /usr/local/bin/helmfile /usr/local/bin/helmfile
8
8
  COPY . .
9
9
 
10
10
  RUN gem install colorize && gem build && gem install helmsnap --local
data/Gemfile.lock CHANGED
@@ -1,104 +1,126 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helmsnap (1.4.1)
5
- colorize
4
+ helmsnap (2.0.2)
5
+ colorize (~> 1.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.1.4)
10
+ activesupport (8.1.3)
11
11
  base64
12
12
  bigdecimal
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ concurrent-ruby (~> 1.0, >= 1.3.1)
14
14
  connection_pool (>= 2.2.5)
15
15
  drb
16
16
  i18n (>= 1.6, < 2)
17
+ json
18
+ logger (>= 1.4.2)
17
19
  minitest (>= 5.1)
18
- mutex_m
19
- tzinfo (~> 2.0)
20
- ast (2.4.2)
21
- base64 (0.2.0)
22
- bigdecimal (3.1.8)
20
+ securerandom (>= 0.3)
21
+ tzinfo (~> 2.0, >= 2.0.5)
22
+ uri (>= 0.13.1)
23
+ ast (2.4.3)
24
+ base64 (0.3.0)
25
+ bigdecimal (4.1.2)
23
26
  coderay (1.1.3)
24
27
  colorize (1.1.0)
25
- concurrent-ruby (1.3.4)
26
- connection_pool (2.4.1)
27
- diff-lcs (1.5.1)
28
- drb (2.2.1)
29
- i18n (1.14.6)
28
+ concurrent-ruby (1.3.6)
29
+ connection_pool (3.0.2)
30
+ diff-lcs (1.6.2)
31
+ drb (2.2.3)
32
+ i18n (1.14.8)
30
33
  concurrent-ruby (~> 1.0)
31
- json (2.7.2)
32
- language_server-protocol (3.17.0.3)
33
- logger (1.6.6)
34
+ io-console (0.8.2)
35
+ json (2.19.7)
36
+ language_server-protocol (3.17.0.5)
37
+ lint_roller (1.1.0)
38
+ logger (1.7.0)
34
39
  method_source (1.1.0)
35
- minitest (5.25.1)
36
- mutex_m (0.2.0)
37
- parallel (1.26.3)
38
- parser (3.3.5.0)
40
+ minitest (6.0.6)
41
+ drb (~> 2.0)
42
+ prism (~> 1.5)
43
+ parallel (1.28.0)
44
+ parser (3.3.11.1)
39
45
  ast (~> 2.4.1)
40
46
  racc
41
- pry (0.14.2)
47
+ prism (1.9.0)
48
+ pry (0.16.0)
42
49
  coderay (~> 1.1)
43
50
  method_source (~> 1.0)
51
+ reline (>= 0.6.0)
44
52
  racc (1.8.1)
45
- rack (3.1.8)
53
+ rack (3.2.6)
46
54
  rainbow (3.1.1)
47
- rake (13.2.1)
48
- regexp_parser (2.9.2)
49
- rspec (3.13.0)
55
+ rake (13.4.2)
56
+ regexp_parser (2.12.0)
57
+ reline (0.6.3)
58
+ io-console (~> 0.5)
59
+ rspec (3.13.2)
50
60
  rspec-core (~> 3.13.0)
51
61
  rspec-expectations (~> 3.13.0)
52
62
  rspec-mocks (~> 3.13.0)
53
- rspec-core (3.13.1)
63
+ rspec-core (3.13.6)
54
64
  rspec-support (~> 3.13.0)
55
- rspec-expectations (3.13.3)
65
+ rspec-expectations (3.13.5)
56
66
  diff-lcs (>= 1.2.0, < 2.0)
57
67
  rspec-support (~> 3.13.0)
58
- rspec-mocks (3.13.2)
68
+ rspec-mocks (3.13.8)
59
69
  diff-lcs (>= 1.2.0, < 2.0)
60
70
  rspec-support (~> 3.13.0)
61
- rspec-support (3.13.1)
62
- rubocop (1.66.1)
71
+ rspec-support (3.13.7)
72
+ rubocop (1.84.2)
63
73
  json (~> 2.3)
64
- language_server-protocol (>= 3.17.0)
74
+ language_server-protocol (~> 3.17.0.2)
75
+ lint_roller (~> 1.1.0)
65
76
  parallel (~> 1.10)
66
77
  parser (>= 3.3.0.2)
67
78
  rainbow (>= 2.2.2, < 4.0)
68
- regexp_parser (>= 2.4, < 3.0)
69
- rubocop-ast (>= 1.32.2, < 2.0)
79
+ regexp_parser (>= 2.9.3, < 3.0)
80
+ rubocop-ast (>= 1.49.0, < 2.0)
70
81
  ruby-progressbar (~> 1.7)
71
- unicode-display_width (>= 2.4.0, < 3.0)
72
- rubocop-ast (1.32.3)
73
- parser (>= 3.3.1.0)
74
- rubocop-config-umbrellio (1.66.0.99)
75
- rubocop (~> 1.66.0)
76
- rubocop-factory_bot (~> 2.26.0)
77
- rubocop-performance (~> 1.22.0)
78
- rubocop-rails (~> 2.26.0)
79
- rubocop-rake (~> 0.6.0)
80
- rubocop-rspec (~> 3.0.0)
81
- rubocop-sequel (~> 0.3.3)
82
- rubocop-factory_bot (2.26.1)
83
- rubocop (~> 1.61)
84
- rubocop-performance (1.22.1)
85
- rubocop (>= 1.48.1, < 2.0)
86
- rubocop-ast (>= 1.31.1, < 2.0)
87
- rubocop-rails (2.26.2)
82
+ unicode-display_width (>= 2.4.0, < 4.0)
83
+ rubocop-ast (1.49.1)
84
+ parser (>= 3.3.7.2)
85
+ prism (~> 1.7)
86
+ rubocop-config-umbrellio (1.84.118)
87
+ rubocop (~> 1.84.0)
88
+ rubocop-factory_bot (~> 2.28.0)
89
+ rubocop-performance (~> 1.26.0)
90
+ rubocop-rails (~> 2.34.0)
91
+ rubocop-rake (~> 0.7.0)
92
+ rubocop-rspec (~> 3.9.0)
93
+ rubocop-sequel (~> 0.4.0)
94
+ rubocop-factory_bot (2.28.0)
95
+ lint_roller (~> 1.1)
96
+ rubocop (~> 1.72, >= 1.72.1)
97
+ rubocop-performance (1.26.1)
98
+ lint_roller (~> 1.1)
99
+ rubocop (>= 1.75.0, < 2.0)
100
+ rubocop-ast (>= 1.47.1, < 2.0)
101
+ rubocop-rails (2.34.3)
88
102
  activesupport (>= 4.2.0)
103
+ lint_roller (~> 1.1)
89
104
  rack (>= 1.1)
90
- rubocop (>= 1.52.0, < 2.0)
91
- rubocop-ast (>= 1.31.1, < 2.0)
92
- rubocop-rake (0.6.0)
93
- rubocop (~> 1.0)
94
- rubocop-rspec (3.0.5)
95
- rubocop (~> 1.61)
96
- rubocop-sequel (0.3.4)
97
- rubocop (~> 1.0)
105
+ rubocop (>= 1.75.0, < 2.0)
106
+ rubocop-ast (>= 1.44.0, < 2.0)
107
+ rubocop-rake (0.7.1)
108
+ lint_roller (~> 1.1)
109
+ rubocop (>= 1.72.1)
110
+ rubocop-rspec (3.9.0)
111
+ lint_roller (~> 1.1)
112
+ rubocop (~> 1.81)
113
+ rubocop-sequel (0.4.1)
114
+ lint_roller (~> 1.1)
115
+ rubocop (>= 1.72.1, < 2)
98
116
  ruby-progressbar (1.13.0)
117
+ securerandom (0.4.1)
99
118
  tzinfo (2.0.6)
100
119
  concurrent-ruby (~> 1.0)
101
- unicode-display_width (2.6.0)
120
+ unicode-display_width (3.2.0)
121
+ unicode-emoji (~> 4.1)
122
+ unicode-emoji (4.2.0)
123
+ uri (1.1.1)
102
124
 
103
125
  PLATFORMS
104
126
  arm64-darwin-21
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Helmsnap::ArgsParser
4
- InvalidConfigPath = Class.new(RuntimeError)
4
+ class InvalidConfigPath < RuntimeError; end
5
5
 
6
6
  Args = Struct.new(:config_path, :skip_repo_cleanup)
7
7
 
@@ -79,6 +79,5 @@ class Helmsnap::SetupDependencies < Helmsnap::Service
79
79
  base_cmd = ["helm", "dependency", "update", chart_path]
80
80
  result = run_cmd(*base_cmd, "--skip-refresh", allow_failure: true)
81
81
  run_cmd(*base_cmd) unless result.success # Try with deps refresh in case of any failure
82
- true
83
82
  end
84
83
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Helmsnap
4
- VERSION = "1.4.1"
4
+ VERSION = "2.0.2"
5
5
  end
data/lib/helmsnap.rb CHANGED
@@ -6,7 +6,6 @@ require "open3"
6
6
  require "optparse"
7
7
  require "pathname"
8
8
  require "shellwords"
9
- require "set"
10
9
  require "tmpdir"
11
10
  require "yaml"
12
11
 
@@ -28,8 +27,8 @@ module Helmsnap
28
27
 
29
28
  class Error < StandardError; end
30
29
 
31
- def self.run_cmd(*cmd_parts, **options)
30
+ def self.run_cmd(*cmd_parts, **)
32
31
  cmd = Shellwords.join(cmd_parts)
33
- Helmsnap::Command.call(cmd, **options)
32
+ Helmsnap::Command.call(cmd, **)
34
33
  end
35
34
  end
metadata CHANGED
@@ -1,30 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helmsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2026-06-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: colorize
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: '1.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - ">="
23
+ - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0'
27
- description:
25
+ version: '1.1'
28
26
  email:
29
27
  - tycooon@yandex.ru
30
28
  executables:
@@ -44,7 +42,6 @@ files:
44
42
  - bin/console
45
43
  - bin/setup
46
44
  - exe/helmsnap
47
- - helmsnap.gemspec
48
45
  - lib/helmsnap.rb
49
46
  - lib/helmsnap/args_parser.rb
50
47
  - lib/helmsnap/check.rb
@@ -63,7 +60,6 @@ licenses:
63
60
  metadata:
64
61
  homepage_uri: https://github.com/tycooon/helmsnap
65
62
  source_code_uri: https://github.com/tycooon/helmsnap
66
- post_install_message:
67
63
  rdoc_options: []
68
64
  require_paths:
69
65
  - lib
@@ -71,15 +67,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
67
  requirements:
72
68
  - - ">="
73
69
  - !ruby/object:Gem::Version
74
- version: 3.0.0
70
+ version: 3.3.0
75
71
  required_rubygems_version: !ruby/object:Gem::Requirement
76
72
  requirements:
77
73
  - - ">="
78
74
  - !ruby/object:Gem::Version
79
75
  version: '0'
80
76
  requirements: []
81
- rubygems_version: 3.3.27
82
- signing_key:
77
+ rubygems_version: 3.6.9
83
78
  specification_version: 4
84
79
  summary: A tool for creating and checking helm chart snapshots.
85
80
  test_files: []
data/helmsnap.gemspec DELETED
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/helmsnap/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "helmsnap"
7
- spec.version = Helmsnap::VERSION
8
- spec.authors = ["Yuri Smirnov"]
9
- spec.email = ["tycooon@yandex.ru"]
10
-
11
- spec.summary = "A tool for creating and checking helm chart snapshots."
12
- spec.homepage = "https://github.com/tycooon/helmsnap"
13
- spec.license = "MIT"
14
- spec.required_ruby_version = ">= 3.0.0"
15
-
16
- # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = spec.homepage
19
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject do |f|
25
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci))})
26
- end
27
- end
28
-
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- spec.add_dependency "colorize"
34
- end