pdk 3.0.0 → 3.0.1
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/CHANGELOG.md +17 -6
- data/README.md +8 -2
- data/lib/pdk/cli/util/option_normalizer.rb +1 -1
- data/lib/pdk/config/namespace.rb +3 -1
- data/lib/pdk/report.rb +7 -3
- data/lib/pdk/util/changelog_generator.rb +1 -1
- data/lib/pdk/util/puppet_version.rb +5 -1
- data/lib/pdk/util.rb +1 -1
- data/lib/pdk/version.rb +2 -2
- 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: c39902d0ebbac37358fd3fccf5de760b47f77860054b08864ccdae63150b7597
|
|
4
|
+
data.tar.gz: 6a4d8beb3013edf1ed946b9cf94cd90b055ad63500102e131734600c81c3a5a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7af78ce8b0c4bb9122081a2c6449d862da04c9fec85d428b2e8ace3e88a74930fcf809462062b07994307c54c3ee5a827a83ae26e5c67b95f659c3f5c0cb89b5
|
|
7
|
+
data.tar.gz: c5af71c375d94c9e22f4c7ae284213a39aaa87b8bc21980580ce4e79743979d4cbb967f330c775dcd2ebc4d3046c4c9c5080480172e07dec33afd9546b94da7e
|
data/CHANGELOG.md
CHANGED
|
@@ -5,15 +5,20 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
|
|
6
6
|
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).
|
|
7
7
|
|
|
8
|
-
## [v3.0.
|
|
8
|
+
## [v3.0.1](https://github.com/puppetlabs/pdk/tree/v3.0.1) - 2023-12-07
|
|
9
9
|
|
|
10
|
-
[Full Changelog](https://github.com/puppetlabs/pdk/compare/
|
|
10
|
+
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v3.0.0...v3.0.1)
|
|
11
11
|
|
|
12
|
-
###
|
|
12
|
+
### Fixed
|
|
13
13
|
|
|
14
|
-
- (
|
|
15
|
-
- (
|
|
16
|
-
-
|
|
14
|
+
- (CAT-345) Update doc links where needed [#1285](https://github.com/puppetlabs/pdk/pull/1285) ([david22swan](https://github.com/david22swan))
|
|
15
|
+
- (CAT-270) Adjusting expected Puppet/Ruby versions [#1283](https://github.com/puppetlabs/pdk/pull/1283) ([LukasAud](https://github.com/LukasAud))
|
|
16
|
+
- (maint) - add stricter puppetlabs_spec_helper dependency [#1280](https://github.com/puppetlabs/pdk/pull/1280) ([jordanbreen28](https://github.com/jordanbreen28))
|
|
17
|
+
- (PUPDOC-5439) Add Trademark icon [#1277](https://github.com/puppetlabs/pdk/pull/1277) ([pmcmaw](https://github.com/pmcmaw))
|
|
18
|
+
|
|
19
|
+
## [v3.0.0](https://github.com/puppetlabs/pdk/tree/v3.0.0) - 2023-07-04
|
|
20
|
+
|
|
21
|
+
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v2.7.1...v3.0.0)
|
|
17
22
|
|
|
18
23
|
### Changed
|
|
19
24
|
- (CONT-1134) Bump PDK Templates REF [#1264](https://github.com/puppetlabs/pdk/pull/1264) ([chelnak](https://github.com/chelnak))
|
|
@@ -25,6 +30,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
25
30
|
- (CONT-755) - Bump gem version [#1240](https://github.com/puppetlabs/pdk/pull/1240) ([chelnak](https://github.com/chelnak))
|
|
26
31
|
- (CONT-755) Ruby 3 / Puppet 8 support [#1230](https://github.com/puppetlabs/pdk/pull/1230) ([chelnak](https://github.com/chelnak))
|
|
27
32
|
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- (CONT-1053) Update bundle command [#1255](https://github.com/puppetlabs/pdk/pull/1255) ([chelnak](https://github.com/chelnak))
|
|
36
|
+
- (ISS-1123) Verbose output w/ junit file [#1246](https://github.com/puppetlabs/pdk/pull/1246) ([coreymbe](https://github.com/coreymbe))
|
|
37
|
+
- Take "operatingsystem_support" parameter from answer.json [#1165](https://github.com/puppetlabs/pdk/pull/1165) ([me-minus](https://github.com/me-minus))
|
|
38
|
+
|
|
28
39
|
### Fixed
|
|
29
40
|
|
|
30
41
|
- (CONT-1069) Update compatibility handling [#1259](https://github.com/puppetlabs/pdk/pull/1259) ([chelnak](https://github.com/chelnak))
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# pdk
|
|
2
2
|
|
|
3
|
-
[](https://github.com/puppetlabs/pdk/blob/main/CODEOWNERS)
|
|
4
|
+
[](https://github.com/puppetlabs/pdk/actions/workflows/ci.yml)
|
|
5
|
+
[](https://badge.fury.io/rb/pdk)
|
|
4
6
|
|
|
5
7
|
* [Installation](#installation)
|
|
6
8
|
* [Basic usage](#basic-usage)
|
|
@@ -96,7 +98,7 @@ This command validates the metadata, Puppet code syntax and style, and Ruby synt
|
|
|
96
98
|
|
|
97
99
|
### Run unit tests
|
|
98
100
|
|
|
99
|
-
PDK's [default template](https://github.com/puppetlabs/pdk-templates) sets up [rspec](http://rspec.info/) for Ruby-level unit testing, and [rspec-puppet](https://github.com/
|
|
101
|
+
PDK's [default template](https://github.com/puppetlabs/pdk-templates) sets up [rspec](http://rspec.info/) for Ruby-level unit testing, and [rspec-puppet](https://github.com/puppetlabs/rspec-puppet/) for catalog-level unit testing.
|
|
100
102
|
|
|
101
103
|
In the module's directory, run unit tests with:
|
|
102
104
|
|
|
@@ -114,6 +116,10 @@ This command runs all available unit tests.
|
|
|
114
116
|
|
|
115
117
|
PDK encourages community contributions. See the [CONTRIBUTING.md](CONTRIBUTING.md) file for development notes.
|
|
116
118
|
|
|
119
|
+
## License
|
|
120
|
+
|
|
121
|
+
This codebase is licensed under Apache 2.0. However, the open source dependencies included in this codebase might be subject to other software licenses such as AGPL, GPL2.0, and MIT.
|
|
122
|
+
|
|
117
123
|
## Contact Information
|
|
118
124
|
|
|
119
125
|
* [For reporting bugs](https://github.com/puppetlabs/pdk/blob/main/CONTRIBUTING.md#reporting-bugs)
|
data/lib/pdk/config/namespace.rb
CHANGED
|
@@ -217,7 +217,9 @@ module PDK
|
|
|
217
217
|
# @api private
|
|
218
218
|
def read_only!
|
|
219
219
|
@read_only = true
|
|
220
|
-
|
|
220
|
+
# pass the read_only! method as a block to the each_value method. This means that
|
|
221
|
+
# for each value in the @mounts hash, the read_only! method will be called on that value.
|
|
222
|
+
@mounts.each_value(&:read_only!)
|
|
221
223
|
end
|
|
222
224
|
|
|
223
225
|
private
|
data/lib/pdk/report.rb
CHANGED
|
@@ -93,13 +93,17 @@ module PDK
|
|
|
93
93
|
# This report is designed for interactive use by a human and so excludes
|
|
94
94
|
# all passing events in order to be consise.
|
|
95
95
|
#
|
|
96
|
-
# @param target [
|
|
97
|
-
#
|
|
96
|
+
# @param target [String, IO] The IO target to write the report to.
|
|
97
|
+
# If a String is provided, the report will be written to a file with the given path.
|
|
98
|
+
# If an IO object is provided, the report will be written to the IO object.
|
|
99
|
+
# If no target is provided, the default target PDK::Report.default_target will be used.
|
|
100
|
+
#
|
|
101
|
+
# @return [void]
|
|
98
102
|
def write_text(target = self.class.default_target)
|
|
99
103
|
coverage_report = nil
|
|
100
104
|
report = []
|
|
101
105
|
|
|
102
|
-
events.
|
|
106
|
+
events.each_value do |tool_events|
|
|
103
107
|
tool_events.each do |event|
|
|
104
108
|
if event.rspec_puppet_coverage?
|
|
105
109
|
coverage_report = event.to_text
|
|
@@ -33,7 +33,7 @@ module PDK
|
|
|
33
33
|
|
|
34
34
|
output = changelog_content
|
|
35
35
|
|
|
36
|
-
raise PDK::CLI::ExitWithError, format('The generated changelog contains uncategorized Pull Requests. Please label them and try again. See %{changelog_file} for more details', changelog_file: changelog_file) if output.include?('UNCATEGORIZED PRS; GO LABEL THEM') # rubocop:disable
|
|
36
|
+
raise PDK::CLI::ExitWithError, format('The generated changelog contains uncategorized Pull Requests. Please label them and try again. See %{changelog_file} for more details', changelog_file: changelog_file) if output.include?('UNCATEGORIZED PRS; GO LABEL THEM') # rubocop:disable Layout/LineLength
|
|
37
37
|
|
|
38
38
|
output
|
|
39
39
|
end
|
|
@@ -206,10 +206,14 @@ module PDK
|
|
|
206
206
|
version.nil? ? nil : { gem_version: version, ruby_version: PDK::Util::RubyVersion.default_ruby_version }
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
+
# Finds the specified requirement in the package cache.
|
|
210
|
+
#
|
|
211
|
+
# @param requirement [Gem::Requirement] The requirement to search for.
|
|
212
|
+
# @return [Hash] A hash containing the gem version and ruby version if found, or nil if not found.
|
|
209
213
|
def find_in_package_cache(requirement)
|
|
210
214
|
require 'pdk/util/ruby_version'
|
|
211
215
|
|
|
212
|
-
PDK::Util::RubyVersion.versions.
|
|
216
|
+
PDK::Util::RubyVersion.versions.each_key do |ruby_version|
|
|
213
217
|
PDK::Util::RubyVersion.use(ruby_version)
|
|
214
218
|
version = PDK::Util::RubyVersion.available_puppet_versions.find { |r| requirement.satisfied_by?(r) }
|
|
215
219
|
return { gem_version: version, ruby_version: ruby_version } unless version.nil?
|
data/lib/pdk/util.rb
CHANGED
|
@@ -95,7 +95,7 @@ module PDK
|
|
|
95
95
|
def development_mode?
|
|
96
96
|
require 'pdk/util/version'
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
!PDK::Util::Version.git_ref.nil? || PDK::VERSION.end_with?('.pre')
|
|
99
99
|
end
|
|
100
100
|
module_function :development_mode?
|
|
101
101
|
|
data/lib/pdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|