ra10ke 4.0.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 -0
- data/CHANGELOG.md +13 -0
- data/lib/ra10ke/dependencies.rb +24 -5
- data/lib/ra10ke/version.rb +1 -1
- metadata +2 -2
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
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,19 @@
|
|
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
|
+
|
5
18
|
## [v4.0.0](https://github.com/voxpupuli/ra10ke/tree/v4.0.0) (2025-01-02)
|
6
19
|
|
7
20
|
[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
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.1.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-01-
|
12
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: git
|