ra10ke 4.0.0 → 4.2.0
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 +4 -4
- data/.github/workflows/test.yml +1 -0
- data/CHANGELOG.md +21 -0
- data/lib/ra10ke/dependencies.rb +24 -5
- data/lib/ra10ke/version.rb +1 -1
- data/ra10ke.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd0253d86a27c086c42f5f177bfd344af02d4cdb041950e3d48c6fdb8cc633f
|
4
|
+
data.tar.gz: 8bbb1b973495bef1095b233269ca21d092aa852f91f7bbc563f36fb11a0996a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf4a75aea7f43baa01ffe4596c8cc517a9dd1905096f929e3984e4cd75b6acfff56d7aef33ad1af035cbd3f2b33e000fed29bc193d1a4ffc148d29f090f7251
|
7
|
+
data.tar.gz: 0a4254ced1b553b2e683c3024f2000c1b4759f3b9a3bec46986032965e59cabf31cdd09fcb9bfaa293c6f24a5cc253ce6554ccdc246287d9838a830cfd502ddc
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,27 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [v4.2.0](https://github.com/voxpupuli/ra10ke/tree/v4.2.0) (2025-02-28)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v4.1.0...v4.2.0)
|
8
|
+
|
9
|
+
**Merged pull requests:**
|
10
|
+
|
11
|
+
- Update git requirement from \>= 1.18, \< 3.0 to \>= 1.18, \< 4.0 [\#120](https://github.com/voxpupuli/ra10ke/pull/120) ([dependabot[bot]](https://github.com/apps/dependabot))
|
12
|
+
|
13
|
+
## [v4.1.0](https://github.com/voxpupuli/ra10ke/tree/v4.1.0) (2025-01-08)
|
14
|
+
|
15
|
+
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v4.0.0...v4.1.0)
|
16
|
+
|
17
|
+
**Implemented enhancements:**
|
18
|
+
|
19
|
+
- Add Ruby 3.4 support [\#119](https://github.com/voxpupuli/ra10ke/pull/119) ([bastelfreak](https://github.com/bastelfreak))
|
20
|
+
- Improve dependencies check against :control\_branch [\#116](https://github.com/voxpupuli/ra10ke/pull/116) ([ananace](https://github.com/ananace))
|
21
|
+
|
22
|
+
**Fixed bugs:**
|
23
|
+
|
24
|
+
- Fix false positive errors when ra10ke tries to validate modules with `branch: :control_branch` [\#117](https://github.com/voxpupuli/ra10ke/issues/117)
|
25
|
+
|
5
26
|
## [v4.0.0](https://github.com/voxpupuli/ra10ke/tree/v4.0.0) (2025-01-02)
|
6
27
|
|
7
28
|
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v3.1.0...v4.0.0)
|
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
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.require_paths = ['lib']
|
17
17
|
spec.required_ruby_version = '>= 3.1.0'
|
18
18
|
|
19
|
-
spec.add_dependency 'git', '>= 1.18', '<
|
19
|
+
spec.add_dependency 'git', '>= 1.18', '< 4.0'
|
20
20
|
spec.add_dependency 'puppet_forge', '~> 6.0'
|
21
21
|
spec.add_dependency 'r10k', '~> 5.0'
|
22
22
|
spec.add_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ra10ke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Chatzimichos
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: git
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '1.18'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '4.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '1.18'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: puppet_forge
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|