Skip to content

Commit 289b32d

Browse files
author
Jarret Lavallee
committed
(maint) Bump PDK to 1.18.1
This commit bumps the PDK version to 1.18.1 and makes the correlated Rubocop changes to the ruby scripts.
1 parent f66119e commit 289b32d

File tree

7 files changed

+15
-17
lines changed

7 files changed

+15
-17
lines changed

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,6 @@ Style/BlockComments:
464464
Enabled: false
465465
Style/BlockDelimiters:
466466
Enabled: false
467-
Style/BracesAroundHashParameters:
468-
Enabled: false
469467
Style/CaseEquality:
470468
Enabled: false
471469
Style/CharacterLiteral:

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ script:
1616
- 'bundle exec rake $CHECK'
1717
bundler_args: --without system_tests
1818
rvm:
19-
- 2.5.3
19+
- 2.5.7
2020
stages:
2121
- static
2222
- spec
@@ -36,14 +36,14 @@ jobs:
3636
stage: spec
3737
-
3838
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
39-
rvm: 2.5.3
39+
rvm: 2.5.7
4040
stage: spec
4141
-
4242
env: DEPLOY_TO_FORGE=yes
4343
stage: deploy
4444
branches:
4545
only:
46-
- master
46+
- main
4747
- /^v\d/
4848
notifications:
4949
email: false

Rakefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,36 +52,35 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
5252
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)."
5353
config.add_pr_wo_labels = true
5454
config.issues = false
55-
config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM"
55+
config.merge_prefix = "### UNCATEGORIZED PRS; LABEL THEM ON GITHUB"
5656
config.configure_sections = {
5757
"Changed" => {
5858
"prefix" => "### Changed",
5959
"labels" => ["backwards-incompatible"],
6060
},
6161
"Added" => {
6262
"prefix" => "### Added",
63-
"labels" => ["feature", "enhancement"],
63+
"labels" => ["enhancement", "feature"],
6464
},
6565
"Fixed" => {
6666
"prefix" => "### Fixed",
67-
"labels" => ["bugfix"],
67+
"labels" => ["bug", "documentation", "bugfix"],
6868
},
6969
}
7070
end
7171
else
7272
desc 'Generate a Changelog from GitHub'
7373
task :changelog do
7474
raise <<EOM
75-
The changelog tasks depends on unreleased features of the github_changelog_generator gem.
75+
The changelog tasks depends on recent features of the github_changelog_generator gem.
7676
Please manually add it to your .sync.yml for now, and run `pdk update`:
7777
---
7878
Gemfile:
7979
optional:
8080
':development':
8181
- gem: 'github_changelog_generator'
82-
git: 'https://github.com/skywinder/github-changelog-generator'
83-
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
84-
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
82+
version: '~> 1.15'
83+
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0')"
8584
EOM
8685
end
8786
end

files/amq_metrics

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ HOSTS.each do |host|
9090
end
9191
else
9292
req = element['request']
93-
metrics = treeify(req['mbean'], { req['attribute'] => req['value'] })
93+
metrics = treeify(req['mbean'], req['attribute'] => req['value'])
9494
recurse_merge!(dataset['servers'][hostkey][METRICS_TYPE], metrics)
9595
end
9696
end

files/system_metrics

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ module SystemMetrics
238238
unknown_count += 1
239239
comm_identifier = "#{comm_identifier}_#{unknown_count}"
240240
end
241-
data_hash[k].merge!({"command_full" => v, "pid" => k})
241+
data_hash[k].merge!("command_full" => v, "pid" => k)
242242
data_hash[comm_identifier] = data_hash.delete(k)
243243
end
244244

@@ -309,7 +309,7 @@ module SystemMetrics
309309
# Time object is created after successful sar run
310310
# so could be nil when an error occurs. But the file needs a name based on a timestamp
311311
@time_stamp_obj = Time.now if @time_stamp_obj.nil?
312-
metrics_json = metrics_to_json({:error => error_msg})
312+
metrics_json = metrics_to_json(:error => error_msg)
313313
write_metrics_to_file(metrics_json)
314314
exit 1
315315
end

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"version_requirement": ">= 5.5.1"
5757
}
5858
],
59-
"pdk-version": "1.16.0",
59+
"pdk-version": "1.18.1",
6060
"template-url": "https://github.com/puppetlabs/pdk-templates#master",
61-
"template-ref": "heads/master-0-g522fe70"
61+
"template-ref": "remotes/origin/master-0-ga58fd92"
6262
}

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
# set to strictest setting for testing
4343
# by default Puppet runs at warning level
4444
Puppet.settings[:strict] = :warning
45+
Puppet.settings[:strict_variables] = true
4546
end
4647
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
4748
c.after(:suite) do

0 commit comments

Comments
 (0)