puppet-strings 4.1.0 → 4.1.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 +22 -14
- data/README.md +7 -1
- data/lib/puppet-strings/markdown/templates/classes_and_defines.erb +4 -0
- data/lib/puppet-strings/version.rb +1 -1
- data/lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb +3 -0
- data/lib/puppet-strings/yard/parsers/puppet/parser.rb +3 -0
- data/lib/puppet-strings/yard/tags/overload_tag.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a436988d26135b32aebfa60a1629c0bb0abe3901498c323ba626720920adb6a5
|
|
4
|
+
data.tar.gz: 505f15e76bfa4fc30f9f0a3effd3fa6869c28c9c62d824fe84bd0a463a8ae57d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 863c8107391d017e15ef16d94b834e7cccf5c6b64e2026f20bd92aa38ba88a21ef635dfe2b80f5ad5008f381fe797368b7d0cf56bb4688a72fd0ddc23230ab49
|
|
7
|
+
data.tar.gz: 12f98c88971353202a5656798c2c9762b8e4b6806258d89ffbcaade4b84abed6957a045df181da4500e870b170c324f3621269c52f465060464db2b09e067063
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
|
|
6
6
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
|
|
7
7
|
|
|
8
|
+
## [v4.1.1](https://github.com/puppetlabs/puppet-strings/tree/v4.1.1) - 2023-11-22
|
|
9
|
+
|
|
10
|
+
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v4.1.0...v4.1.1)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix option tag handling with no data types [#361](https://github.com/puppetlabs/puppet-strings/pull/361) ([seanmil](https://github.com/seanmil))
|
|
15
|
+
|
|
8
16
|
## [v4.1.0](https://github.com/puppetlabs/puppet-strings/tree/v4.1.0) - 2023-07-04
|
|
9
17
|
|
|
10
18
|
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v4.0.0...v4.1.0)
|
|
@@ -21,13 +29,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
21
29
|
|
|
22
30
|
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v3.0.1...v4.0.0.rc.1)
|
|
23
31
|
|
|
32
|
+
### Changed
|
|
33
|
+
- (CONT-812) Puppet 8 / Ruby 3 support [#348](https://github.com/puppetlabs/puppet-strings/pull/348) ([chelnak](https://github.com/chelnak))
|
|
34
|
+
|
|
24
35
|
### Added
|
|
25
36
|
|
|
26
37
|
- Add deprecated tag [#342](https://github.com/puppetlabs/puppet-strings/pull/342) ([b4ldr](https://github.com/b4ldr))
|
|
27
38
|
|
|
28
|
-
### Changed
|
|
29
|
-
- (CONT-812) Puppet 8 / Ruby 3 support [#348](https://github.com/puppetlabs/puppet-strings/pull/348) ([chelnak](https://github.com/chelnak))
|
|
30
|
-
|
|
31
39
|
## [v3.0.1](https://github.com/puppetlabs/puppet-strings/tree/v3.0.1) - 2022-10-25
|
|
32
40
|
|
|
33
41
|
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v3.0.0...v3.0.1)
|
|
@@ -40,16 +48,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
40
48
|
|
|
41
49
|
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v2.9.0...v3.0.0)
|
|
42
50
|
|
|
43
|
-
### Added
|
|
44
|
-
|
|
45
|
-
- (#223) Use code blocks as appropriate in Markdown [#319](https://github.com/puppetlabs/puppet-strings/pull/319) ([danielparks](https://github.com/danielparks))
|
|
46
|
-
- Use tilde heredocs for readability [#317](https://github.com/puppetlabs/puppet-strings/pull/317) ([danielparks](https://github.com/danielparks))
|
|
47
|
-
|
|
48
51
|
### Changed
|
|
49
52
|
- (CONT-228) Remove deprecated emit flags [#329](https://github.com/puppetlabs/puppet-strings/pull/329) ([chelnak](https://github.com/chelnak))
|
|
50
53
|
- (CONT-228) Bump ruby version [#326](https://github.com/puppetlabs/puppet-strings/pull/326) ([chelnak](https://github.com/chelnak))
|
|
51
54
|
- (#301) Update minimum Ruby version to 2.5.0 [#313](https://github.com/puppetlabs/puppet-strings/pull/313) ([danielparks](https://github.com/danielparks))
|
|
52
55
|
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
- (#223) Use code blocks as appropriate in Markdown [#319](https://github.com/puppetlabs/puppet-strings/pull/319) ([danielparks](https://github.com/danielparks))
|
|
59
|
+
- Use tilde heredocs for readability [#317](https://github.com/puppetlabs/puppet-strings/pull/317) ([danielparks](https://github.com/danielparks))
|
|
60
|
+
|
|
53
61
|
### Fixed
|
|
54
62
|
|
|
55
63
|
- (#240) Fix output of default values that are expressions [#315](https://github.com/puppetlabs/puppet-strings/pull/315) ([danielparks](https://github.com/danielparks))
|
|
@@ -96,13 +104,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
96
104
|
|
|
97
105
|
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/v2.5.0...v2.6.0)
|
|
98
106
|
|
|
107
|
+
### Changed
|
|
108
|
+
- (MAINT) Drop Ruby 2.1.x and Puppet 4.x compatibility [#253](https://github.com/puppetlabs/puppet-strings/pull/253) ([scotje](https://github.com/scotje))
|
|
109
|
+
|
|
99
110
|
### Added
|
|
100
111
|
|
|
101
112
|
- Improved markdown templates [#252](https://github.com/puppetlabs/puppet-strings/pull/252) ([kozl](https://github.com/kozl))
|
|
102
113
|
|
|
103
|
-
### Changed
|
|
104
|
-
- (MAINT) Drop Ruby 2.1.x and Puppet 4.x compatibility [#253](https://github.com/puppetlabs/puppet-strings/pull/253) ([scotje](https://github.com/scotje))
|
|
105
|
-
|
|
106
114
|
### Fixed
|
|
107
115
|
|
|
108
116
|
- Do not fail in case return tag has no type specified [#268](https://github.com/puppetlabs/puppet-strings/pull/268) ([tiandrey](https://github.com/tiandrey))
|
|
@@ -189,15 +197,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
189
197
|
|
|
190
198
|
[Full Changelog](https://github.com/puppetlabs/puppet-strings/compare/1.2.1...2.0.0)
|
|
191
199
|
|
|
200
|
+
### Changed
|
|
201
|
+
- bump required ruby and puppet versions [#178](https://github.com/puppetlabs/puppet-strings/pull/178) ([eputnam](https://github.com/eputnam))
|
|
202
|
+
|
|
192
203
|
### Added
|
|
193
204
|
|
|
194
205
|
- (PDOC-238) add generated message to markdown [#175](https://github.com/puppetlabs/puppet-strings/pull/175) ([eputnam](https://github.com/eputnam))
|
|
195
206
|
- (PDOC-228) puppet plan support [#168](https://github.com/puppetlabs/puppet-strings/pull/168) ([eputnam](https://github.com/eputnam))
|
|
196
207
|
- (PDOC-206) support for tasks [#161](https://github.com/puppetlabs/puppet-strings/pull/161) ([eputnam](https://github.com/eputnam))
|
|
197
208
|
|
|
198
|
-
### Changed
|
|
199
|
-
- bump required ruby and puppet versions [#178](https://github.com/puppetlabs/puppet-strings/pull/178) ([eputnam](https://github.com/eputnam))
|
|
200
|
-
|
|
201
209
|
### Fixed
|
|
202
210
|
|
|
203
211
|
- (PDOC-36) fix hack for README urls [#176](https://github.com/puppetlabs/puppet-strings/pull/176) ([eputnam](https://github.com/eputnam))
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Puppet strings
|
|
2
2
|
|
|
3
|
-
[](https://github.com/puppetlabs/puppet-strings/actions/workflows/ci.yml)
|
|
3
|
+
[](https://github.com/puppetlabs/puppet-strings/actions/workflows/ci.yml)
|
|
4
|
+
[](https://badge.fury.io/rb/puppet-strings)
|
|
5
|
+
[](https://github.com/puppetlabs/puppet-strings/blob/main/CODEOWNERS)
|
|
4
6
|
|
|
5
7
|
Puppet Strings generates documentation for Puppet code and extensions written in Puppet and Ruby.
|
|
6
8
|
Strings processes code and YARD-style code comments to create documentation in HTML, Markdown, or JSON formats.
|
|
@@ -124,6 +126,10 @@ An example of running the acceptance tests locally with Docker:
|
|
|
124
126
|
bundle exec rake litmus:tear_down
|
|
125
127
|
```
|
|
126
128
|
|
|
129
|
+
## License
|
|
130
|
+
|
|
131
|
+
This codebase is licensed under Apache 2.0. However, the open source dependencies included in this codebase might be subject to other software licenses such as AGPL, GPL2.0, and MIT.
|
|
132
|
+
|
|
127
133
|
## Support
|
|
128
134
|
|
|
129
135
|
Please log issues in [GitHub issues](https://github.com/puppetlabs/puppet-strings/issues).
|
|
@@ -70,7 +70,11 @@ Data type:<%= code_maybe_block(param[:types].join(', ')) %>
|
|
|
70
70
|
Options:
|
|
71
71
|
|
|
72
72
|
<% options_for_param(param[:name]).each do |o| -%>
|
|
73
|
+
<% if o[:opt_types] -%>
|
|
73
74
|
* **<%= o[:opt_name] %>** `<%= o[:opt_types][0] %>`: <%= o[:opt_text] %>
|
|
75
|
+
<% else -%>
|
|
76
|
+
* **<%= o[:opt_name] %>**: <%= o[:opt_text] %>
|
|
77
|
+
<% end -%>
|
|
74
78
|
<% end -%>
|
|
75
79
|
|
|
76
80
|
<% end -%>
|
|
@@ -143,6 +143,8 @@ class PuppetStrings::Yard::Handlers::Ruby::DataTypeHandler < PuppetStrings::Yard
|
|
|
143
143
|
@literal_visitor.visit_this_0(self, ast)
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
+
# TODO: Fix the rubocop violations in this file between the following rubocop:disable/enable lines
|
|
147
|
+
# rubocop:disable Naming/MethodName
|
|
146
148
|
# ----- The following methods are different/additions from the original Literal_evaluator
|
|
147
149
|
def literal_Object(o)
|
|
148
150
|
# Ignore any other object types
|
|
@@ -214,6 +216,7 @@ class PuppetStrings::Yard::Handlers::Ruby::DataTypeHandler < PuppetStrings::Yard
|
|
|
214
216
|
result[literal(entry.key)] = literal(entry.value)
|
|
215
217
|
end
|
|
216
218
|
end
|
|
219
|
+
# rubocop:enable Naming/MethodName
|
|
217
220
|
end
|
|
218
221
|
|
|
219
222
|
# Extracts the datatype attributes from a Puppet Data Type interface hash.
|
|
@@ -40,6 +40,8 @@ class PuppetStrings::Yard::Parsers::Puppet::Parser < YARD::Parser::Base
|
|
|
40
40
|
|
|
41
41
|
private
|
|
42
42
|
|
|
43
|
+
# TODO: Fix the rubocop violations in this file between the following rubocop:disable/enable lines
|
|
44
|
+
# rubocop:disable Naming/MethodName
|
|
43
45
|
def transform_Program(o)
|
|
44
46
|
# Cache the lines of the source text; we'll use this to locate comments
|
|
45
47
|
@lines = o.source_text.lines.to_a
|
|
@@ -83,4 +85,5 @@ class PuppetStrings::Yard::Parsers::Puppet::Parser < YARD::Parser::Base
|
|
|
83
85
|
def transform_Object(o)
|
|
84
86
|
# Ignore anything else (will be compacted out of the resulting array)
|
|
85
87
|
end
|
|
88
|
+
# rubocop:enable Naming/MethodName
|
|
86
89
|
end
|
|
@@ -75,8 +75,8 @@ class PuppetStrings::Yard::Tags::OverloadTag < YARD::Tags::Tag
|
|
|
75
75
|
# @param [Array] args The args passed to the method.
|
|
76
76
|
# @param block The block passed to the method.
|
|
77
77
|
# @return Returns what the method call on the object would return.
|
|
78
|
-
def method_missing(method_name,
|
|
79
|
-
return object.send(method_name,
|
|
78
|
+
def method_missing(method_name, ...)
|
|
79
|
+
return object.send(method_name, ...) if object.respond_to? method_name
|
|
80
80
|
|
|
81
81
|
super
|
|
82
82
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppet-strings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rgen
|