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 +5 -5
- data/CHANGELOG.md +9 -0
- data/lib/pdk/module/convert.rb +3 -1
- data/lib/pdk/tests/unit.rb +1 -1
- data/lib/pdk/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7096c03ba45a582325f9d2d466da61571697d474ae04387511d18579e886ee65
|
4
|
+
data.tar.gz: 3df00dfaec659bcd94bf66970feb400990be1b84327ec9fbfd76ea0c0ddbff0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec2e4ee1a30f249b481c3282eecf5af1f6bfbe8497afde98b3f2c271beac0ab0b0d92ab78129e4cf564a7b48368f3cadfd9800d1cb5fb66b36816d93dea84882
|
7
|
+
data.tar.gz: 396091be92ce00e9b5816171e0782276e53de8b513ce9e50f14a1fe7b264042f2d4149182ba37cd7b7adaef7bb941ae395ffe703c721bd05f1fbdf778dd1f841
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/lib/pdk/module/convert.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/pdk/tests/unit.rb
CHANGED
@@ -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
|
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]
|
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: 1.18.
|
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-
|
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
|
-
|
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
|