pdk 2.1.1 → 2.2.0
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 +5 -5
- data/CHANGELOG.md +11 -0
- data/lib/pdk/cli/release.rb +3 -1
- data/lib/pdk/config.rb +6 -0
- data/lib/pdk/validate/invokable_validator.rb +8 -0
- data/lib/pdk/version.rb +1 -1
- data/lib/pdk/version.rb.orig +9 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8e2609c042f89068710f065fadda48fe3ae5f32b
|
4
|
+
data.tar.gz: 40acaf2ef749d5e369387bf345f2ed2cb4588078
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 774972368cefed1e1100d3ddd3804e216cbf13fbebd5b8af63c93862972e4d2339336aa5e0b48ea7ee7b09dd176eb98f2355dc0fc7b270ac92e0e8a1c6eac271
|
7
|
+
data.tar.gz: e966d37fdcf70b2a90227e3e5eebfc6a611950db8da230930a309f5d57a1a3407c4ee1fb23d1c322c7aaa7b57eaa392b48538ad48991b6de5a8a9e7e2e7550ec
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All changes to this repo will be documented in this file.
|
4
4
|
See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) for a high-level summary.
|
5
5
|
|
6
|
+
## [v2.2.0](https://github.com/puppetlabs/pdk/tree/v2.2.0) (2021-08-02)
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/puppetlabs/pdk/compare/v2.1.1...v2.2.0)
|
9
|
+
|
10
|
+
**Implemented enhancements:**
|
11
|
+
|
12
|
+
- \(GH-1118\) Add ability to skip validating files [\#1114](https://github.com/puppetlabs/pdk/pull/1114) ([jpogran](https://github.com/jpogran))
|
13
|
+
|
14
|
+
**Fixed bugs:**
|
15
|
+
|
16
|
+
- \(GH-1113\) \(GH-917\) Fix forge-token handling [\#1121](https://github.com/puppetlabs/pdk/pull/1121) ([sanfrancrisko](https://github.com/sanfrancrisko))
|
6
17
|
|
7
18
|
## [v2.1.1](https://github.com/puppetlabs/pdk/tree/v2.1.1) (2021-06-22)
|
8
19
|
|
data/lib/pdk/cli/release.rb
CHANGED
@@ -22,7 +22,8 @@ module PDK::CLI
|
|
22
22
|
option nil, :'forge-upload-url', _('Set forge upload url path.'),
|
23
23
|
argument: :required, default: 'https://forgeapi.puppetlabs.com/v3/releases'
|
24
24
|
|
25
|
-
option nil, :'forge-token', _('Set Forge API token.'),
|
25
|
+
option nil, :'forge-token', _('Set Forge API token.'),
|
26
|
+
argument: :optional
|
26
27
|
|
27
28
|
option nil, :version, _('Update the module to the specified version prior to release. When not specified, the new version will be computed from the Changelog where possible.'),
|
28
29
|
argument: :required
|
@@ -145,6 +146,7 @@ module PDK::CLI
|
|
145
146
|
opts[:'skip-changelog'] = !answers['changelog']
|
146
147
|
opts[:'skip-dependency'] = !answers['dependency']
|
147
148
|
opts[:'skip-documentation'] = !answers['documentation']
|
149
|
+
opts[:'skip-publish'] = !answers['publish']
|
148
150
|
|
149
151
|
prepare_version_interview(prompt, opts) if answers['setversion']
|
150
152
|
|
data/lib/pdk/config.rb
CHANGED
@@ -94,6 +94,12 @@ module PDK
|
|
94
94
|
if context.is_a?(PDK::Context::ControlRepo)
|
95
95
|
mount :environment, PDK::ControlRepo.environment_conf_as_config(File.join(context.root_path, 'environment.conf'))
|
96
96
|
end
|
97
|
+
|
98
|
+
mount :validate, PDK::Config::YAML.new('validate', file: File.join(context.root_path, 'pdk.yaml'), persistent_defaults: true) do
|
99
|
+
setting 'ignore' do
|
100
|
+
default_to { [] }
|
101
|
+
end
|
102
|
+
end
|
97
103
|
end
|
98
104
|
end
|
99
105
|
|
@@ -213,6 +213,14 @@ module PDK
|
|
213
213
|
end
|
214
214
|
end
|
215
215
|
|
216
|
+
# block will always be [] because it is intialized in config
|
217
|
+
ignore_files = PDK.config.get_within_scopes('validate.ignore')
|
218
|
+
unless ignore_files.nil? || ignore_files.empty?
|
219
|
+
Array(ignore_files).each do |pattern|
|
220
|
+
ignore_pathspec.add(pattern)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
216
224
|
ignore_pathspec
|
217
225
|
end
|
218
226
|
end
|
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: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -443,6 +443,7 @@ files:
|
|
443
443
|
- lib/pdk/validate/yaml/yaml_syntax_validator.rb
|
444
444
|
- lib/pdk/validate/yaml/yaml_validator_group.rb
|
445
445
|
- lib/pdk/version.rb
|
446
|
+
- lib/pdk/version.rb.orig
|
446
447
|
- locales/config.yaml
|
447
448
|
- locales/pdk.pot
|
448
449
|
homepage: https://github.com/puppetlabs/pdk
|
@@ -464,7 +465,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
464
465
|
version: '0'
|
465
466
|
requirements: []
|
466
467
|
rubyforge_project:
|
467
|
-
rubygems_version: 2.
|
468
|
+
rubygems_version: 2.6.14.4
|
468
469
|
signing_key:
|
469
470
|
specification_version: 4
|
470
471
|
summary: A key part of the Puppet Development Kit, the shortest path to better modules
|