ra10ke 3.1.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -2
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +27 -0
- data/Rakefile +0 -9
- data/lib/ra10ke/dependencies.rb +24 -5
- data/lib/ra10ke/version.rb +1 -1
- data/ra10ke.gemspec +5 -5
- metadata +17 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 883f171a01c0e4fadfaf85ad6e86fc26cc648886deef0d4928077c5aa4178427
|
4
|
+
data.tar.gz: 272ffe0a099bf72503576027f5e5fbd86c282c0755d026828690676976eefbc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388664a62dc656b87ac830756692c1f3bfa06ec51a19575d09b68f540ce8c34d4b466383dc42ae6b1fe31c8bac8e9d412e687915ac8708c474aff86ce6608c51
|
7
|
+
data.tar.gz: 90280754dec37c6e0f307559541a6f385e39d09af7767702d360d8fb6a94c66b41388b49d11a39749613348ce36107444d93dc6b6c3cb2d57e96b772d5a47831
|
data/.github/workflows/test.yml
CHANGED
@@ -27,12 +27,11 @@ jobs:
|
|
27
27
|
fail-fast: false
|
28
28
|
matrix:
|
29
29
|
include:
|
30
|
-
- ruby: "2.7"
|
31
|
-
- ruby: "3.0"
|
32
30
|
- ruby: "3.1"
|
33
31
|
coverage: "yes"
|
34
32
|
- ruby: "3.2"
|
35
33
|
- ruby: "3.3"
|
34
|
+
- ruby: "3.4"
|
36
35
|
env:
|
37
36
|
COVERAGE: ${{ matrix.coverage }}
|
38
37
|
name: Ruby ${{ matrix.ruby }}
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,33 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [v4.1.0](https://github.com/voxpupuli/ra10ke/tree/v4.1.0) (2025-01-08)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v4.0.0...v4.1.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- Add Ruby 3.4 support [\#119](https://github.com/voxpupuli/ra10ke/pull/119) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
- Improve dependencies check against :control\_branch [\#116](https://github.com/voxpupuli/ra10ke/pull/116) ([ananace](https://github.com/ananace))
|
13
|
+
|
14
|
+
**Fixed bugs:**
|
15
|
+
|
16
|
+
- Fix false positive errors when ra10ke tries to validate modules with `branch: :control_branch` [\#117](https://github.com/voxpupuli/ra10ke/issues/117)
|
17
|
+
|
18
|
+
## [v4.0.0](https://github.com/voxpupuli/ra10ke/tree/v4.0.0) (2025-01-02)
|
19
|
+
|
20
|
+
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v3.1.0...v4.0.0)
|
21
|
+
|
22
|
+
**Breaking changes:**
|
23
|
+
|
24
|
+
- Require Ruby 3.1 & puppet\_forge 6 & r10k 5 [\#106](https://github.com/voxpupuli/ra10ke/pull/106) ([bastelfreak](https://github.com/bastelfreak))
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- Update pry requirement from ~\> 0.14.2 to ~\> 0.15.2 [\#114](https://github.com/voxpupuli/ra10ke/pull/114) ([dependabot[bot]](https://github.com/apps/dependabot))
|
29
|
+
- Cleanup Rakefile; remove unused rake tasks [\#109](https://github.com/voxpupuli/ra10ke/pull/109) ([bastelfreak](https://github.com/bastelfreak))
|
30
|
+
- Update voxpupuli-rubocop requirement from ~\> 2.8.0 to ~\> 3.0.0 [\#108](https://github.com/voxpupuli/ra10ke/pull/108) ([dependabot[bot]](https://github.com/apps/dependabot))
|
31
|
+
|
5
32
|
## [v3.1.0](https://github.com/voxpupuli/ra10ke/tree/v3.1.0) (2024-06-28)
|
6
33
|
|
7
34
|
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v3.0.0...v3.1.0)
|
data/Rakefile
CHANGED
@@ -1,14 +1,5 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/clean'
|
3
|
-
require 'rubygems'
|
4
|
-
require 'bundler/gem_tasks'
|
5
|
-
require 'fileutils'
|
6
|
-
require 'rspec/core'
|
7
1
|
require 'rspec/core/rake_task'
|
8
2
|
|
9
|
-
CLEAN.include('pkg/', 'tmp/')
|
10
|
-
CLOBBER.include('Gemfile.lock')
|
11
|
-
|
12
3
|
task default: [:spec]
|
13
4
|
|
14
5
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
data/lib/ra10ke/dependencies.rb
CHANGED
@@ -59,10 +59,12 @@ module Ra10ke::Dependencies
|
|
59
59
|
# @note does not include ignored modules or modules up2date
|
60
60
|
def processed_modules(supplied_puppetfile = puppetfile)
|
61
61
|
threads = []
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
supplied_puppetfile.modules.each do |puppet_module|
|
63
|
+
next if ignored_modules.include? puppet_module.title
|
64
|
+
# Ignore modules where ref is explicitly set to control branch
|
65
|
+
next if puppet_module.instance_of?(R10K::Module::Git) && puppet_module.desired_ref == :control_branch
|
65
66
|
|
67
|
+
threads << Thread.new do
|
66
68
|
if puppet_module.instance_of?(::R10K::Module::Forge)
|
67
69
|
module_name = puppet_module.title.tr('/', '-')
|
68
70
|
forge_version = ::PuppetForge::Module.find(module_name).current_release.version
|
@@ -76,8 +78,7 @@ module Ra10ke::Dependencies
|
|
76
78
|
}
|
77
79
|
|
78
80
|
elsif puppet_module.instance_of?(R10K::Module::Git)
|
79
|
-
# use helper;
|
80
|
-
# we do not want to deal with `:control_branch`
|
81
|
+
# use helper; let r10k figure out correct ref
|
81
82
|
ref = puppet_module.version
|
82
83
|
next unless ref
|
83
84
|
|
@@ -185,6 +186,24 @@ module Ra10ke::Dependencies
|
|
185
186
|
task :dependencies do
|
186
187
|
PuppetForge.user_agent = "ra10ke/#{Ra10ke::VERSION}"
|
187
188
|
puppetfile = get_puppetfile
|
189
|
+
if puppetfile.respond_to? :environment=
|
190
|
+
# Use a fake environment object to reduce log spam and keep :control_branch reference for R10k >= 3.10.0
|
191
|
+
fake_env = Object.new
|
192
|
+
fake_env.instance_eval do
|
193
|
+
def module_conflicts?(*)
|
194
|
+
false
|
195
|
+
end
|
196
|
+
|
197
|
+
def name
|
198
|
+
'test'
|
199
|
+
end
|
200
|
+
|
201
|
+
def ref
|
202
|
+
:control_branch
|
203
|
+
end
|
204
|
+
end
|
205
|
+
puppetfile.environment = fake_env
|
206
|
+
end
|
188
207
|
PuppetForge.host = puppetfile.forge if /^http/.match?(puppetfile.forge)
|
189
208
|
dependencies = Ra10ke::Dependencies::Verification.new(puppetfile)
|
190
209
|
dependencies.print_table(dependencies.outdated)
|
data/lib/ra10ke/version.rb
CHANGED
data/ra10ke.gemspec
CHANGED
@@ -14,17 +14,17 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
16
16
|
spec.require_paths = ['lib']
|
17
|
-
spec.required_ruby_version = '>=
|
17
|
+
spec.required_ruby_version = '>= 3.1.0'
|
18
18
|
|
19
19
|
spec.add_dependency 'git', '>= 1.18', '< 3.0'
|
20
|
-
spec.add_dependency 'puppet_forge', '~>
|
21
|
-
spec.add_dependency 'r10k', '
|
20
|
+
spec.add_dependency 'puppet_forge', '~> 6.0'
|
21
|
+
spec.add_dependency 'r10k', '~> 5.0'
|
22
22
|
spec.add_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
23
23
|
spec.add_dependency 'semverse', '>= 2.0', '< 4'
|
24
24
|
spec.add_dependency 'solve', '~> 4.0', '>= 4.0.4'
|
25
25
|
spec.add_dependency 'table_print', '~> 1.5.6'
|
26
|
-
spec.add_development_dependency 'pry', '~> 0.
|
26
|
+
spec.add_development_dependency 'pry', '~> 0.15.2'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.6'
|
28
28
|
spec.add_development_dependency 'simplecov', '~> 0.22.0'
|
29
|
-
spec.add_development_dependency 'voxpupuli-rubocop', '~>
|
29
|
+
spec.add_development_dependency 'voxpupuli-rubocop', '~> 3.0.0'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ra10ke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Chatzimichos
|
8
8
|
- Vox Pupuli
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: git
|
@@ -37,40 +37,28 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 5.0.1
|
40
|
+
version: '6.0'
|
44
41
|
type: :runtime
|
45
42
|
prerelease: false
|
46
43
|
version_requirements: !ruby/object:Gem::Requirement
|
47
44
|
requirements:
|
48
45
|
- - "~>"
|
49
46
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 5.0.1
|
47
|
+
version: '6.0'
|
54
48
|
- !ruby/object:Gem::Dependency
|
55
49
|
name: r10k
|
56
50
|
requirement: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
|
-
- - "
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 2.6.5
|
61
|
-
- - "<"
|
52
|
+
- - "~>"
|
62
53
|
- !ruby/object:Gem::Version
|
63
|
-
version: '5'
|
54
|
+
version: '5.0'
|
64
55
|
type: :runtime
|
65
56
|
prerelease: false
|
66
57
|
version_requirements: !ruby/object:Gem::Requirement
|
67
58
|
requirements:
|
68
|
-
- - "
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 2.6.5
|
71
|
-
- - "<"
|
59
|
+
- - "~>"
|
72
60
|
- !ruby/object:Gem::Version
|
73
|
-
version: '5'
|
61
|
+
version: '5.0'
|
74
62
|
- !ruby/object:Gem::Dependency
|
75
63
|
name: rake
|
76
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,14 +139,14 @@ dependencies:
|
|
151
139
|
requirements:
|
152
140
|
- - "~>"
|
153
141
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.
|
142
|
+
version: 0.15.2
|
155
143
|
type: :development
|
156
144
|
prerelease: false
|
157
145
|
version_requirements: !ruby/object:Gem::Requirement
|
158
146
|
requirements:
|
159
147
|
- - "~>"
|
160
148
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
149
|
+
version: 0.15.2
|
162
150
|
- !ruby/object:Gem::Dependency
|
163
151
|
name: rspec
|
164
152
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,14 +181,14 @@ dependencies:
|
|
193
181
|
requirements:
|
194
182
|
- - "~>"
|
195
183
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
184
|
+
version: 3.0.0
|
197
185
|
type: :development
|
198
186
|
prerelease: false
|
199
187
|
version_requirements: !ruby/object:Gem::Requirement
|
200
188
|
requirements:
|
201
189
|
- - "~>"
|
202
190
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
191
|
+
version: 3.0.0
|
204
192
|
description: R10K and Puppetfile rake tasks
|
205
193
|
email:
|
206
194
|
- voxpupuli@groups.io
|
@@ -258,7 +246,7 @@ homepage: https://github.com/voxpupuli/ra10ke
|
|
258
246
|
licenses:
|
259
247
|
- MIT
|
260
248
|
metadata: {}
|
261
|
-
post_install_message:
|
249
|
+
post_install_message:
|
262
250
|
rdoc_options: []
|
263
251
|
require_paths:
|
264
252
|
- lib
|
@@ -266,15 +254,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
266
254
|
requirements:
|
267
255
|
- - ">="
|
268
256
|
- !ruby/object:Gem::Version
|
269
|
-
version:
|
257
|
+
version: 3.1.0
|
270
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
271
259
|
requirements:
|
272
260
|
- - ">="
|
273
261
|
- !ruby/object:Gem::Version
|
274
262
|
version: '0'
|
275
263
|
requirements: []
|
276
|
-
rubygems_version: 3.5.
|
277
|
-
signing_key:
|
264
|
+
rubygems_version: 3.5.22
|
265
|
+
signing_key:
|
278
266
|
specification_version: 4
|
279
267
|
summary: Syntax check for the Puppetfile, check for outdated installed puppet modules
|
280
268
|
test_files: []
|