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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 243d5bb6ab67f59d83bd35459b5b3298e8dc7e4cbf1fd7ee9b43cc94f8e82cc0
4
- data.tar.gz: c669f309afdf94e8161e3172a0480297d2004813d919495ed146774fb77c8630
3
+ metadata.gz: 883f171a01c0e4fadfaf85ad6e86fc26cc648886deef0d4928077c5aa4178427
4
+ data.tar.gz: 272ffe0a099bf72503576027f5e5fbd86c282c0755d026828690676976eefbc6
5
5
  SHA512:
6
- metadata.gz: 40d61d18fd971499b78b1b99a1b62113308df55459ff1c9f77dcd2e8b5e6db3103f4470a5854f0d39ccbe79f4202948d82619f1c4710e2c7d314f7d75d22247f
7
- data.tar.gz: c11c06f6183dec11f793d92ec3d8f53e45a40b1d8edd81245153e49abbefda6181dca344d9891569a5b7c13b41aaeaeb93d1baf362de22a6b58d44d0a4fb557b
6
+ metadata.gz: 388664a62dc656b87ac830756692c1f3bfa06ec51a19575d09b68f540ce8c34d4b466383dc42ae6b1fe31c8bac8e9d412e687915ac8708c474aff86ce6608c51
7
+ data.tar.gz: 90280754dec37c6e0f307559541a6f385e39d09af7767702d360d8fb6a94c66b41388b49d11a39749613348ce36107444d93dc6b6c3cb2d57e96b772d5a47831
@@ -31,6 +31,7 @@ jobs:
31
31
  coverage: "yes"
32
32
  - ruby: "3.2"
33
33
  - ruby: "3.3"
34
+ - ruby: "3.4"
34
35
  env:
35
36
  COVERAGE: ${{ matrix.coverage }}
36
37
  name: Ruby ${{ matrix.ruby }}
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)
@@ -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
- threads = supplied_puppetfile.modules.map do |puppet_module|
63
- Thread.new do
64
- next if ignored_modules.include? puppet_module.title
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; avoid `desired_ref`
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)
@@ -1,3 +1,3 @@
1
1
  module Ra10ke
2
- VERSION = '4.0.0'
2
+ VERSION = '4.1.0'
3
3
  end
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.0.0
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-02 00:00:00.000000000 Z
12
+ date: 2025-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: git