pdk 1.18.0 → 1.18.1

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
- SHA1:
3
- metadata.gz: 5e09523a0989d3a437659e92470469a90817c21e
4
- data.tar.gz: 143f82470256dc0a640fb60778697b384742bc18
2
+ SHA256:
3
+ metadata.gz: 7096c03ba45a582325f9d2d466da61571697d474ae04387511d18579e886ee65
4
+ data.tar.gz: 3df00dfaec659bcd94bf66970feb400990be1b84327ec9fbfd76ea0c0ddbff0b
5
5
  SHA512:
6
- metadata.gz: 8b5a9d6796606e1c976848e5010a3ff9d4bd0681391cbda438238c882a996d36d067ee6456229498a199be810eb05ff54aaeb3e7b99060601c539fede12d23de
7
- data.tar.gz: 4f61632e41478575a9b2d1f9624a6866d7b00253e1a5bc5e770e5f17fa912e4f11d4914b2ab2ad332a7597aa7fb0840153aca87c501c789ebea1e2a392668844
6
+ metadata.gz: ec2e4ee1a30f249b481c3282eecf5af1f6bfbe8497afde98b3f2c271beac0ab0b0d92ab78129e4cf564a7b48368f3cadfd9800d1cb5fb66b36816d93dea84882
7
+ data.tar.gz: 396091be92ce00e9b5816171e0782276e53de8b513ce9e50f14a1fe7b264042f2d4149182ba37cd7b7adaef7bb941ae395ffe703c721bd05f1fbdf778dd1f841
@@ -4,6 +4,15 @@ 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
6
 
7
+ ## [v1.18.1](https://github.com/puppetlabs/pdk/tree/v1.18.1) (2020-07-16)
8
+
9
+ [Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.18.0...v1.18.1)
10
+
11
+ **Fixed bugs:**
12
+
13
+ - Don't attempt to modify a frozen string when parsing '--tests' paths [\#891](https://github.com/puppetlabs/pdk/pull/891) ([natemccurdy](https://github.com/natemccurdy))
14
+ - \(PDK-1653\) Ensure template have access to metadata during update/convert [\#883](https://github.com/puppetlabs/pdk/pull/883) ([scotje](https://github.com/scotje))
15
+
7
16
  ## [v1.18.0](https://github.com/puppetlabs/pdk/tree/v1.18.0) (2020-05-12)
8
17
 
9
18
  [Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.17.0...v1.18.0)
@@ -149,7 +149,9 @@ module PDK
149
149
 
150
150
  # new_metadata == nil when creating a new module but with --noop@
151
151
  module_name = new_metadata.nil? ? 'new-module' : new_metadata.data['name']
152
- template_dir.render_new_module(module_name) do |relative_file_path, file_content, file_status|
152
+ metadata_for_render = new_metadata.nil? ? {} : new_metadata.data
153
+
154
+ template_dir.render_new_module(module_name, metadata_for_render) do |relative_file_path, file_content, file_status|
153
155
  absolute_file_path = File.join(module_dir, relative_file_path)
154
156
  case file_status
155
157
  when :unmanage
@@ -93,7 +93,7 @@ module PDK
93
93
  # to forward slash. We can't use File.expand_path as the files aren't guaranteed to be on-disk
94
94
  #
95
95
  # Ref - https://github.com/puppetlabs/pdk/issues/828
96
- tests.tr!('\\', '/') unless tests.nil?
96
+ tests = tests.tr('\\', '/') unless tests.nil?
97
97
 
98
98
  environment = { 'CI_SPEC_OPTIONS' => '--format j' }
99
99
  environment['PUPPET_GEM_VERSION'] = options[:puppet] if options[:puppet]
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.18.0'.freeze
2
+ VERSION = '1.18.1'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  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: 1.18.0
4
+ version: 1.18.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: 2020-05-12 00:00:00.000000000 Z
11
+ date: 2020-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -447,8 +447,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
447
  - !ruby/object:Gem::Version
448
448
  version: '0'
449
449
  requirements: []
450
- rubyforge_project:
451
- rubygems_version: 2.6.14.3
450
+ rubygems_version: 3.0.3
452
451
  signing_key:
453
452
  specification_version: 4
454
453
  summary: A key part of the Puppet Development Kit, the shortest path to better modules