Skip to content

Commit 26011ea

Browse files
authored
Merge pull request puppetlabs#1559 from puppetlabs/CAT-1608-pdk-update
(CAT-1608) - PDK update
2 parents fdd8f06 + ae4a22b commit 26011ea

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

.rubocop.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
inherit_from: .rubocop_todo.yml
3-
42
require:
53
- rubocop-performance
64
- rubocop-rspec
75
AllCops:
6+
NewCops: enable
87
DisplayCopNames: true
9-
TargetRubyVersion: '2.6'
8+
TargetRubyVersion: '2.7'
109
Include:
1110
- "**/*.rb"
1211
Exclude:
@@ -20,6 +19,7 @@ AllCops:
2019
- "**/Puppetfile"
2120
- "**/Vagrantfile"
2221
- "**/Guardfile"
22+
inherit_from: ".rubocop_todo.yml"
2323
Layout/LineLength:
2424
Description: People have wide screens, use them.
2525
Max: 200

.rubocop_todo.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-09-06 12:10:39 UTC using RuboCop version 1.48.1.
3+
# on 2023-11-29 05:29:46 UTC using RuboCop version 1.48.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new

.sync.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
- 140chars-check
77
appveyor.yml:
88
delete: true
9-
9+
.rubocop.yml:
10+
include_todos: true
1011
Gemfile:
1112
optional:
1213
":development":
@@ -15,6 +16,9 @@ Gemfile:
1516
Rakefile:
1617
changelog_user: puppetlabs
1718
changelog_max_issues: 500
19+
extra_disabled_lint_checks:
20+
- anchor_resource
21+
- params_empty_string_assignment
1822
spec/spec_helper.rb:
1923
mock_with: ":rspec"
2024
coverage_report: true
@@ -45,7 +49,3 @@ spec/spec_helper.rb:
4549
unmanaged: false
4650
.travis.yml:
4751
delete: true
48-
Rakefile:
49-
extra_disabled_lint_checks:
50-
- anchor_resource
51-
- params_empty_string_assignment

Gemfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ group :development do
2323
gem "voxpupuli-puppet-lint-plugins", '~> 5.0', require: false
2424
gem "facterdb", '~> 1.18', require: false
2525
gem "metadata-json-lint", '~> 3.0', require: false
26-
gem "puppetlabs_spec_helper", '~> 6.0', require: false
2726
gem "rspec-puppet-facts", '~> 2.0', require: false
2827
gem "codecov", '~> 0.2', require: false
2928
gem "dependency_checker", '~> 1.0.0', require: false
@@ -34,14 +33,17 @@ group :development do
3433
gem "rubocop", '= 1.48.1', require: false
3534
gem "rubocop-performance", '= 1.16.0', require: false
3635
gem "rubocop-rspec", '= 2.19.0', require: false
37-
gem "puppet-strings", '~> 4.0', require: false
3836
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
3937
gem "github_changelog_generator", '= 1.15.2', require: false
4038
end
4139
group :system_tests do
4240
gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw]
4341
gem "serverspec", '~> 2.41', require: false
4442
end
43+
group :release_prep do
44+
gem "puppet-strings", '~> 4.0', require: false
45+
gem "puppetlabs_spec_helper", '~> 7.0', require: false
46+
end
4547

4648
puppet_version = ENV['PUPPET_GEM_VERSION']
4749
facter_version = ENV['FACTER_GEM_VERSION']

Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
99

1010
def changelog_user
1111
return unless Rake.application.top_level_tasks.include? "changelog"
12-
returnVal = nil || JSON.load(File.read('metadata.json'))['author']
12+
returnVal = "puppetlabs" || JSON.load(File.read('metadata.json'))['author']
1313
raise "unable to find the changelog_user in .sync.yml, or the author in metadata.json" if returnVal.nil?
1414
puts "GitHubChangelogGenerator user:#{returnVal}"
1515
returnVal
@@ -50,6 +50,7 @@ if Gem.loaded_specs.key? 'github_changelog_generator'
5050
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
5151
config.user = "#{changelog_user}"
5252
config.project = "#{changelog_project}"
53+
config.max_issues = 500
5354
config.future_release = "#{changelog_future_release}"
5455
config.exclude_labels = ['maintenance']
5556
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@
9696
],
9797
"pdk-version": "3.0.0",
9898
"template-url": "https://github.com/puppetlabs/pdk-templates#main",
99-
"template-ref": "heads/main-0-g017b84e"
99+
"template-ref": "heads/main-0-g01c6a19"
100100
}

0 commit comments

Comments
 (0)