pdk 2.5.0 → 2.6.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 +524 -1053
- data/README.md +14 -11
- data/lib/pdk/util/windows/api_types.rb +1 -1
- data/lib/pdk/version.rb +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# pdk
|
1
|
+
# pdk
|
2
|
+
|
3
|
+
[](https://github.com/puppetlabs/pdk/actions/workflows/ci.yml) [](https://badge.fury.io/rb/pdk)
|
2
4
|
|
3
5
|
* [Installation](#installation)
|
4
6
|
* [Basic usage](#basic-usage)
|
@@ -13,16 +15,17 @@ PDK includes testing tools, a complete module skeleton, and command line tools t
|
|
13
15
|
|
14
16
|
PDK includes the following tools:
|
15
17
|
|
16
|
-
Tool
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
puppet-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
puppet
|
18
|
+
|Tool|Description|Owned by Puppet|
|
19
|
+
|----|-----------|---------------|
|
20
|
+
|facterdb|A gem that contains facts for Operating Systems.| N |
|
21
|
+
|metadata-json-lint|Validates and lints `metadata.json` files in modules against Puppet module metadata style guidelines.| N |
|
22
|
+
|pdk|Tool to generate and test modules and module content, such as classes, from the command line.| Y |
|
23
|
+
|puppet-debugger|Provides a REPL based debugger console.| N |
|
24
|
+
|puppet-lint|Checks your Puppet code against the recommendations in the Puppet language style guide.| Y |
|
25
|
+
|puppet-syntax|Checks for correct syntax in Puppet manifests, templates, and Hiera YAML.| N |
|
26
|
+
|puppetlabs_spec_helper|Provides classes, methods, and Rake tasks to help with spec testing Puppet code.| Y |
|
27
|
+
|rspec-puppet|Tests the behavior of Puppet when it compiles your manifests into a catalog of Puppet resources.| Y |
|
28
|
+
|rspec-puppet-facts|Adds support for running `rspec-puppet` tests against the facts for your supported operating systems.| N |
|
26
29
|
|
27
30
|
|
28
31
|
## Installation
|
@@ -26,7 +26,7 @@ module PDK::Util::Windows::APITypes
|
|
26
26
|
def read_wide_string(char_length, dst_encoding = Encoding::UTF_8, encode_options = {})
|
27
27
|
# char_length is number of wide chars (typically excluding NULLs), *not* bytes
|
28
28
|
str = get_bytes(0, char_length * 2).force_encoding('UTF-16LE')
|
29
|
-
str.encode(dst_encoding, str.encoding, encode_options)
|
29
|
+
str.encode(dst_encoding, str.encoding, **encode_options)
|
30
30
|
rescue StandardError => e
|
31
31
|
PDK.logger.debug _('Unable to convert value %{string} to encoding %{encoding} due to %{error}') % {
|
32
32
|
string: str.dump,
|
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.6.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:
|
11
|
+
date: 2023-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -463,7 +463,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
463
463
|
- !ruby/object:Gem::Version
|
464
464
|
version: '0'
|
465
465
|
requirements: []
|
466
|
-
rubygems_version: 3.
|
466
|
+
rubygems_version: 3.3.26
|
467
467
|
signing_key:
|
468
468
|
specification_version: 4
|
469
469
|
summary: A key part of the Puppet Development Kit, the shortest path to better modules
|