pdk 2.1.1 → 2.2.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
- SHA256:
3
- metadata.gz: edecbd822f5fb1747d2359fbc1ead30020a1ba942b87fd603367ba3427181d68
4
- data.tar.gz: 817cfc7f902167ef9937059de7b98510e6e4ee64d83610f5fb7c9e5b7def41a8
2
+ SHA1:
3
+ metadata.gz: 8e2609c042f89068710f065fadda48fe3ae5f32b
4
+ data.tar.gz: 40acaf2ef749d5e369387bf345f2ed2cb4588078
5
5
  SHA512:
6
- metadata.gz: 7008ffd3d22a6810c2ce7b45f1444b0313c59092656754a20a253137a514e88d03b9a8ce2d5545dc97a0d412a33cc7b110a7dd78138758215401928439f1f796
7
- data.tar.gz: 3a3a737010f5a24013f3dd2e51066a614a09813c9ce3fcf827b9daa6f9ff0029e1e7dd9cec412ef726a90700271624f634eb939e54dc362e842d14fe6e986770
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
 
@@ -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.'), default: nil
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
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.2.0'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
@@ -0,0 +1,9 @@
1
+ module PDK
2
+ <<<<<<< HEAD
3
+ VERSION = '2.2.0.pre2'.freeze
4
+ TEMPLATE_REF = '2.1.1'.freeze
5
+ =======
6
+ VERSION = '2.2.0'.freeze
7
+ TEMPLATE_REF = VERSION
8
+ >>>>>>> 8ef8eb2 ((MAINT) Release prep for 2.2.0)
9
+ end
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.1.1
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-06-22 00:00:00.000000000 Z
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.7.6.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