puppet-strings 2.3.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +102 -4
- data/COMMITTERS.md +17 -17
- data/CONTRIBUTING.md +37 -7
- data/README.md +17 -12
- data/lib/puppet-strings.rb +5 -3
- data/lib/puppet-strings/describe.rb +2 -0
- data/lib/puppet-strings/json.rb +2 -0
- data/lib/puppet-strings/markdown.rb +12 -10
- data/lib/puppet-strings/markdown/base.rb +30 -3
- data/lib/puppet-strings/markdown/data_type.rb +18 -0
- data/lib/puppet-strings/markdown/data_types.rb +3 -1
- data/lib/puppet-strings/markdown/defined_type.rb +2 -0
- data/lib/puppet-strings/markdown/defined_types.rb +3 -1
- data/lib/puppet-strings/markdown/function.rb +9 -7
- data/lib/puppet-strings/markdown/functions.rb +3 -1
- data/lib/puppet-strings/markdown/puppet_class.rb +2 -0
- data/lib/puppet-strings/markdown/puppet_classes.rb +3 -1
- data/lib/puppet-strings/markdown/puppet_plan.rb +2 -0
- data/lib/puppet-strings/markdown/puppet_plans.rb +3 -1
- data/lib/puppet-strings/markdown/puppet_task.rb +2 -0
- data/lib/puppet-strings/markdown/puppet_tasks.rb +3 -1
- data/lib/puppet-strings/markdown/resource_type.rb +21 -2
- data/lib/puppet-strings/markdown/resource_types.rb +3 -1
- data/lib/puppet-strings/markdown/table_of_contents.rb +3 -1
- data/lib/puppet-strings/markdown/templates/classes_and_defines.erb +18 -6
- data/lib/puppet-strings/markdown/templates/data_type.erb +30 -7
- data/lib/puppet-strings/markdown/templates/data_type_function.erb +67 -0
- data/lib/puppet-strings/markdown/templates/function.erb +10 -1
- data/lib/puppet-strings/markdown/templates/puppet_task.erb +1 -1
- data/lib/puppet-strings/markdown/templates/resource_type.erb +35 -13
- data/lib/puppet-strings/markdown/templates/table_of_contents.erb +6 -6
- data/lib/puppet-strings/monkey_patches/display_object_command.rb +2 -0
- data/lib/puppet-strings/tasks.rb +2 -0
- data/lib/puppet-strings/tasks/generate.rb +2 -0
- data/lib/puppet-strings/tasks/gh_pages.rb +3 -0
- data/lib/puppet-strings/version.rb +3 -1
- data/lib/puppet-strings/yard.rb +9 -0
- data/lib/puppet-strings/yard/code_objects.rb +2 -0
- data/lib/puppet-strings/yard/code_objects/base.rb +2 -0
- data/lib/puppet-strings/yard/code_objects/class.rb +4 -2
- data/lib/puppet-strings/yard/code_objects/data_type.rb +30 -8
- data/lib/puppet-strings/yard/code_objects/data_type_alias.rb +2 -0
- data/lib/puppet-strings/yard/code_objects/defined_type.rb +4 -2
- data/lib/puppet-strings/yard/code_objects/function.rb +8 -5
- data/lib/puppet-strings/yard/code_objects/group.rb +3 -0
- data/lib/puppet-strings/yard/code_objects/plan.rb +4 -2
- data/lib/puppet-strings/yard/code_objects/provider.rb +6 -0
- data/lib/puppet-strings/yard/code_objects/task.rb +3 -1
- data/lib/puppet-strings/yard/code_objects/type.rb +49 -5
- data/lib/puppet-strings/yard/handlers.rb +2 -0
- data/lib/puppet-strings/yard/handlers/helpers.rb +2 -0
- data/lib/puppet-strings/yard/handlers/json/base.rb +2 -0
- data/lib/puppet-strings/yard/handlers/json/task_handler.rb +2 -0
- data/lib/puppet-strings/yard/handlers/puppet/base.rb +3 -0
- data/lib/puppet-strings/yard/handlers/puppet/class_handler.rb +2 -0
- data/lib/puppet-strings/yard/handlers/puppet/data_type_alias_handler.rb +2 -0
- data/lib/puppet-strings/yard/handlers/puppet/defined_type_handler.rb +2 -0
- data/lib/puppet-strings/yard/handlers/puppet/function_handler.rb +3 -1
- data/lib/puppet-strings/yard/handlers/puppet/plan_handler.rb +2 -0
- data/lib/puppet-strings/yard/handlers/ruby/base.rb +5 -0
- data/lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb +225 -52
- data/lib/puppet-strings/yard/handlers/ruby/function_handler.rb +9 -7
- data/lib/puppet-strings/yard/handlers/ruby/provider_handler.rb +13 -0
- data/lib/puppet-strings/yard/handlers/ruby/rsapi_handler.rb +4 -1
- data/lib/puppet-strings/yard/handlers/ruby/type_base.rb +20 -6
- data/lib/puppet-strings/yard/handlers/ruby/type_extras_handler.rb +6 -3
- data/lib/puppet-strings/yard/handlers/ruby/type_handler.rb +18 -1
- data/lib/puppet-strings/yard/parsers.rb +2 -0
- data/lib/puppet-strings/yard/parsers/json/parser.rb +2 -0
- data/lib/puppet-strings/yard/parsers/json/task_statement.rb +2 -0
- data/lib/puppet-strings/yard/parsers/puppet/parser.rb +18 -14
- data/lib/puppet-strings/yard/parsers/puppet/statement.rb +4 -0
- data/lib/puppet-strings/yard/tags.rb +4 -0
- data/lib/puppet-strings/yard/tags/enum_tag.rb +14 -0
- data/lib/puppet-strings/yard/tags/factory.rb +18 -0
- data/lib/puppet-strings/yard/tags/overload_tag.rb +4 -1
- data/lib/puppet-strings/yard/tags/parameter_directive.rb +5 -4
- data/lib/puppet-strings/yard/tags/property_directive.rb +5 -4
- data/lib/puppet-strings/yard/tags/summary_tag.rb +2 -0
- data/lib/puppet-strings/yard/templates/default/puppet_data_type/html/method_details_list.erb +6 -0
- data/lib/puppet-strings/yard/templates/default/puppet_data_type/html/setup.rb +9 -1
- data/lib/puppet-strings/yard/templates/default/puppet_function/html/setup.rb +1 -1
- data/lib/puppet-strings/yard/templates/default/puppet_type/html/setup.rb +3 -1
- data/lib/puppet-strings/yard/templates/default/tags/html/enum.erb +17 -0
- data/lib/puppet-strings/yard/templates/default/tags/setup.rb +6 -0
- data/lib/puppet-strings/yard/util.rb +7 -4
- data/lib/puppet/application/strings.rb +2 -0
- data/lib/puppet/face/strings.rb +4 -1
- data/lib/puppet/feature/rgen.rb +2 -0
- data/lib/puppet/feature/yard.rb +2 -0
- metadata +14 -51
- data/Gemfile +0 -47
- data/HISTORY.md +0 -218
- data/JSON.md +0 -832
- data/Rakefile +0 -168
- data/codecov.yml +0 -3
- data/misc/ANNOUNCEMENT_TEMPLATE.md +0 -40
- data/spec/acceptance/emit_json_options_spec.rb +0 -69
- data/spec/acceptance/generate_markdown_spec.rb +0 -47
- data/spec/acceptance/running_strings_generate_spec.rb +0 -78
- data/spec/fixtures/acceptance/modules/test/functions/add.pp +0 -9
- data/spec/fixtures/acceptance/modules/test/lib/puppet/functions/4x_function.rb +0 -5
- data/spec/fixtures/acceptance/modules/test/lib/puppet/parser/functions/function3x.rb +0 -2
- data/spec/fixtures/acceptance/modules/test/lib/puppet/provider/server/linux.rb +0 -9
- data/spec/fixtures/acceptance/modules/test/lib/puppet/type/database.rb +0 -15
- data/spec/fixtures/acceptance/modules/test/manifests/init.pp +0 -27
- data/spec/fixtures/acceptance/modules/test/manifests/triple_nested_classes.pp +0 -27
- data/spec/fixtures/acceptance/modules/test/metadata.json +0 -10
- data/spec/fixtures/acceptance/modules/test/types/elephant.pp +0 -2
- data/spec/fixtures/unit/markdown/output.md +0 -508
- data/spec/fixtures/unit/markdown/output_with_data_types.md +0 -553
- data/spec/fixtures/unit/markdown/output_with_plan.md +0 -542
- data/spec/spec_helper.rb +0 -49
- data/spec/spec_helper_acceptance.rb +0 -58
- data/spec/spec_helper_acceptance_local.rb +0 -10
- data/spec/unit/puppet-strings/describe_spec.rb +0 -141
- data/spec/unit/puppet-strings/json_spec.rb +0 -302
- data/spec/unit/puppet-strings/markdown/base_spec.rb +0 -146
- data/spec/unit/puppet-strings/markdown_spec.rb +0 -357
- data/spec/unit/puppet-strings/yard/code_objects/task_spec.rb +0 -92
- data/spec/unit/puppet-strings/yard/handlers/json/task_handler_spec.rb +0 -116
- data/spec/unit/puppet-strings/yard/handlers/puppet/class_handler_spec.rb +0 -217
- data/spec/unit/puppet-strings/yard/handlers/puppet/data_type_alias_handler_spec.rb +0 -65
- data/spec/unit/puppet-strings/yard/handlers/puppet/defined_type_handler_spec.rb +0 -231
- data/spec/unit/puppet-strings/yard/handlers/puppet/function_handler_spec.rb +0 -315
- data/spec/unit/puppet-strings/yard/handlers/ruby/data_type_handler_spec.rb +0 -232
- data/spec/unit/puppet-strings/yard/handlers/ruby/function_handler_spec.rb +0 -746
- data/spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb +0 -158
- data/spec/unit/puppet-strings/yard/handlers/ruby/rsapi_handler_spec.rb +0 -235
- data/spec/unit/puppet-strings/yard/handlers/ruby/type_handler_spec.rb +0 -311
- data/spec/unit/puppet-strings/yard/parsers/json/parser_spec.rb +0 -72
- data/spec/unit/puppet-strings/yard/parsers/json/task_statement_spec.rb +0 -56
- data/spec/unit/puppet-strings/yard/parsers/puppet/parser_spec.rb +0 -251
- data/spec/unit/puppet-strings/yard/util_spec.rb +0 -48
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'puppet'
|
2
4
|
require 'puppet/pops'
|
3
5
|
|
@@ -32,11 +34,13 @@ module PuppetStrings::Yard::Parsers::Puppet
|
|
32
34
|
comment = []
|
33
35
|
(0..@line-2).reverse_each do |index|
|
34
36
|
break unless index <= lines.count
|
37
|
+
|
35
38
|
line = lines[index].strip
|
36
39
|
count = line.size
|
37
40
|
line.gsub!(COMMENT_REGEX, '')
|
38
41
|
# Break out if nothing was removed (wasn't a comment line)
|
39
42
|
break unless line.size < count
|
43
|
+
|
40
44
|
comment << line
|
41
45
|
end
|
42
46
|
@comments_range = (@line - comment.size - 1..@line - 1)
|
@@ -1,7 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# The module for custom YARD tags.
|
2
4
|
module PuppetStrings::Yard::Tags
|
5
|
+
require 'puppet-strings/yard/tags/factory'
|
3
6
|
require 'puppet-strings/yard/tags/parameter_directive'
|
4
7
|
require 'puppet-strings/yard/tags/property_directive'
|
5
8
|
require 'puppet-strings/yard/tags/overload_tag'
|
6
9
|
require 'puppet-strings/yard/tags/summary_tag'
|
10
|
+
require 'puppet-strings/yard/tags/enum_tag'
|
7
11
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yard/tags/option_tag'
|
4
|
+
|
5
|
+
# Implements an enum tag for describing enumerated value data types
|
6
|
+
|
7
|
+
class PuppetStrings::Yard::Tags::EnumTag < YARD::Tags::OptionTag
|
8
|
+
# Registers the tag with YARD.
|
9
|
+
# @return [void]
|
10
|
+
def self.register!
|
11
|
+
YARD::Tags::Library.define_tag("puppet.enum", :enum, :with_enums)
|
12
|
+
YARD::Tags::Library.visible_tags.place(:enum).after(:option)
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yard/tags/default_factory'
|
4
|
+
require 'puppet-strings/yard/tags/enum_tag'
|
5
|
+
|
6
|
+
class PuppetStrings::Yard::Tags::Factory < YARD::Tags::DefaultFactory
|
7
|
+
|
8
|
+
# Parses tag text and creates a new enum tag type. Modeled after
|
9
|
+
# the parse_tag_with_options method in YARD::Tags::DefaultFactory.
|
10
|
+
#
|
11
|
+
# @param tag_name the name of the tag to parse
|
12
|
+
# @param [String] text the raw tag text
|
13
|
+
# @return [Tag] a tag object with the tag_name, name, and nested Tag as type
|
14
|
+
def parse_tag_with_enums(tag_name, text)
|
15
|
+
name, text = *extract_name_from_text(text)
|
16
|
+
PuppetStrings::Yard::Tags::EnumTag.new(tag_name, name, parse_tag_with_name(tag_name, text))
|
17
|
+
end
|
18
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Implements an overload tag for Puppet functions
|
2
4
|
#
|
3
5
|
# This differs from Yard's overload tag in that the signatures are formatted according to Puppet language rules.
|
@@ -22,7 +24,7 @@ class PuppetStrings::Yard::Tags::OverloadTag < YARD::Tags::Tag
|
|
22
24
|
args = @parameters.map do |parameter|
|
23
25
|
name, default = parameter
|
24
26
|
tag = tags.find { |t| t.name == name } if tags
|
25
|
-
type = tag
|
27
|
+
type = tag&.types ? "#{tag.type} " : 'Any '
|
26
28
|
prefix = "#{name[0]}" if name.start_with?('*', '&')
|
27
29
|
name = name[1..-1] if prefix
|
28
30
|
default = " = #{default}" if default
|
@@ -75,6 +77,7 @@ class PuppetStrings::Yard::Tags::OverloadTag < YARD::Tags::Tag
|
|
75
77
|
# @return Returns what the method call on the object would return.
|
76
78
|
def method_missing(method_name, *args, &block)
|
77
79
|
return object.send(method_name, *args, &block) if object.respond_to? method_name
|
80
|
+
|
78
81
|
super
|
79
82
|
end
|
80
83
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'puppet-strings/yard/code_objects'
|
2
4
|
|
3
5
|
# Implements a parameter directive (e.g. #@!puppet.type.param) for documenting Puppet resource types.
|
@@ -5,14 +7,13 @@ class PuppetStrings::Yard::Tags::ParameterDirective < YARD::Tags::Directive
|
|
5
7
|
# Called to invoke the directive.
|
6
8
|
# @return [void]
|
7
9
|
def call
|
8
|
-
return unless object
|
10
|
+
return unless object&.respond_to?(:add_parameter)
|
11
|
+
|
9
12
|
# Add a parameter to the resource
|
10
13
|
parameter = PuppetStrings::Yard::CodeObjects::Type::Parameter.new(tag.name, tag.text)
|
11
|
-
|
12
|
-
tag.types.each do |value|
|
14
|
+
tag.types&.each do |value|
|
13
15
|
parameter.add(value)
|
14
16
|
end
|
15
|
-
end
|
16
17
|
object.add_parameter parameter
|
17
18
|
end
|
18
19
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'puppet-strings/yard/code_objects'
|
2
4
|
|
3
5
|
# Implements a parameter directive (e.g. #@!puppet.type.property) for documenting Puppet resource types.
|
@@ -5,14 +7,13 @@ class PuppetStrings::Yard::Tags::PropertyDirective < YARD::Tags::Directive
|
|
5
7
|
# Called to invoke the directive.
|
6
8
|
# @return [void]
|
7
9
|
def call
|
8
|
-
return unless object
|
10
|
+
return unless object&.respond_to?(:add_property)
|
11
|
+
|
9
12
|
# Add a property to the resource
|
10
13
|
property = PuppetStrings::Yard::CodeObjects::Type::Property.new(tag.name, tag.text)
|
11
|
-
|
12
|
-
tag.types.each do |value|
|
14
|
+
tag.types&.each do |value|
|
13
15
|
property.add(value)
|
14
16
|
end
|
15
|
-
end
|
16
17
|
object.add_property property
|
17
18
|
end
|
18
19
|
|
@@ -1,5 +1,13 @@
|
|
1
1
|
# Initializes the template.
|
2
2
|
# @return [void]
|
3
3
|
def init
|
4
|
-
sections :header, :box_info, :summary, :overview, :note, :todo, T('tags'), :source
|
4
|
+
sections :header, :box_info, :summary, :overview, :note, :todo, T('tags'), :method_details_list, [T('method_details')], :source
|
5
|
+
end
|
6
|
+
|
7
|
+
def method_listing
|
8
|
+
sort_listing(object.functions)
|
9
|
+
end
|
10
|
+
|
11
|
+
def sort_listing(list)
|
12
|
+
list.sort_by {|o| [o.scope.to_s, o.name.to_s.downcase] }
|
5
13
|
end
|
@@ -16,7 +16,9 @@ end
|
|
16
16
|
def properties
|
17
17
|
# Properties are the same thing as parameters (from the documentation standpoint),
|
18
18
|
# so reuse the same template but with a different title and data source.
|
19
|
-
|
19
|
+
#
|
20
|
+
# "checks" such as "creates" and "onlyif" are another type of property
|
21
|
+
@parameters = (object.properties || []) + (object.checks || [])
|
20
22
|
@parameters.sort_by! { |p| p.name }
|
21
23
|
@tag_title = 'Properties'
|
22
24
|
erb(:parameters)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% if object.has_tag?(:enum) %>
|
2
|
+
<% object.parameters.each do |param, default| %>
|
3
|
+
<% tags = object.tags(:enum).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
|
4
|
+
<% next if tags.empty? %>
|
5
|
+
<p class="tag_title">Enum Options (<tt><%= param %></tt>):</p>
|
6
|
+
<ul class="option">
|
7
|
+
<% for tag in tags %>
|
8
|
+
<li>
|
9
|
+
<span class="name"><%= tag.pair.name %></span>
|
10
|
+
<% if tag.pair.text && tag.pair.text =~ /\S/ %>
|
11
|
+
— <%= htmlify_line(tag.pair.text) %>
|
12
|
+
<% end %>
|
13
|
+
</li>
|
14
|
+
<% end %>
|
15
|
+
</ul>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'puppet/util'
|
2
4
|
|
3
5
|
# The module for various puppet-strings utility helpers.
|
@@ -24,8 +26,9 @@ module PuppetStrings::Yard::Util
|
|
24
26
|
# @return [String] HTML document with links converted
|
25
27
|
def self.github_to_yard_links(data)
|
26
28
|
data.scan(/href\=\"\#(.+)\"/).each do |bad_link|
|
27
|
-
data.gsub
|
29
|
+
data = data.gsub("=\"##{bad_link.first}\"", "=\"#label-#{bad_link.first.capitalize.gsub('-', '+')}\"")
|
28
30
|
end
|
31
|
+
|
29
32
|
data
|
30
33
|
end
|
31
34
|
|
@@ -38,11 +41,11 @@ module PuppetStrings::Yard::Util
|
|
38
41
|
next t.to_hash if t.respond_to?(:to_hash)
|
39
42
|
|
40
43
|
tag = { tag_name: t.tag_name }
|
41
|
-
# grab nested information for @option tags
|
42
|
-
if tag[:tag_name] == 'option'
|
44
|
+
# grab nested information for @option and @enum tags
|
45
|
+
if tag[:tag_name] == 'option' || tag[:tag_name] == 'enum'
|
43
46
|
tag[:opt_name] = t.pair.name
|
44
47
|
tag[:opt_text] = t.pair.text
|
45
|
-
tag[:opt_types] = t.pair.types
|
48
|
+
tag[:opt_types] = t.pair.types if t.pair.types
|
46
49
|
tag[:parent] = t.name
|
47
50
|
end
|
48
51
|
tag[:text] = t.text if t.text
|
data/lib/puppet/face/strings.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'puppet/face'
|
2
4
|
|
3
5
|
# Implements the 'puppet strings' interface.
|
@@ -57,6 +59,7 @@ Puppet::Face.define(:strings, '0.0.1') do
|
|
57
59
|
environment = Puppet.lookup(:current_environment)
|
58
60
|
environment.modules.each do |mod|
|
59
61
|
next unless modules.empty? || modules.include?(mod.name)
|
62
|
+
|
60
63
|
db = File.join(mod.path, '.yardoc')
|
61
64
|
patterns = PuppetStrings::DEFAULT_SEARCH_PATTERNS.map do |p|
|
62
65
|
File.join(mod.path, p)
|
@@ -145,7 +148,7 @@ Puppet::Face.define(:strings, '0.0.1') do
|
|
145
148
|
def check_required_features
|
146
149
|
raise RuntimeError, "The 'yard' gem must be installed in order to use this face." unless Puppet.features.yard?
|
147
150
|
raise RuntimeError, "The 'rgen' gem must be installed in order to use this face." unless Puppet.features.rgen?
|
148
|
-
raise RuntimeError, 'This face requires Ruby 1.9 or greater.' if RUBY_VERSION
|
151
|
+
raise RuntimeError, 'This face requires Ruby 1.9 or greater.' if RUBY_VERSION.match?(/^1\.8/)
|
149
152
|
end
|
150
153
|
|
151
154
|
# Builds the options to PuppetStrings.generate.
|
data/lib/puppet/feature/rgen.rb
CHANGED
data/lib/puppet/feature/yard.rb
CHANGED
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: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -52,13 +52,8 @@ files:
|
|
52
52
|
- CHANGELOG.md
|
53
53
|
- COMMITTERS.md
|
54
54
|
- CONTRIBUTING.md
|
55
|
-
- Gemfile
|
56
|
-
- HISTORY.md
|
57
|
-
- JSON.md
|
58
55
|
- LICENSE
|
59
56
|
- README.md
|
60
|
-
- Rakefile
|
61
|
-
- codecov.yml
|
62
57
|
- lib/puppet-strings.rb
|
63
58
|
- lib/puppet-strings/describe.rb
|
64
59
|
- lib/puppet-strings/json.rb
|
@@ -81,6 +76,7 @@ files:
|
|
81
76
|
- lib/puppet-strings/markdown/table_of_contents.rb
|
82
77
|
- lib/puppet-strings/markdown/templates/classes_and_defines.erb
|
83
78
|
- lib/puppet-strings/markdown/templates/data_type.erb
|
79
|
+
- lib/puppet-strings/markdown/templates/data_type_function.erb
|
84
80
|
- lib/puppet-strings/markdown/templates/function.erb
|
85
81
|
- lib/puppet-strings/markdown/templates/puppet_task.erb
|
86
82
|
- lib/puppet-strings/markdown/templates/resource_type.erb
|
@@ -127,6 +123,8 @@ files:
|
|
127
123
|
- lib/puppet-strings/yard/parsers/puppet/parser.rb
|
128
124
|
- lib/puppet-strings/yard/parsers/puppet/statement.rb
|
129
125
|
- lib/puppet-strings/yard/tags.rb
|
126
|
+
- lib/puppet-strings/yard/tags/enum_tag.rb
|
127
|
+
- lib/puppet-strings/yard/tags/factory.rb
|
130
128
|
- lib/puppet-strings/yard/tags/overload_tag.rb
|
131
129
|
- lib/puppet-strings/yard/tags/parameter_directive.rb
|
132
130
|
- lib/puppet-strings/yard/tags/property_directive.rb
|
@@ -154,6 +152,7 @@ files:
|
|
154
152
|
- lib/puppet-strings/yard/templates/default/puppet_class/html/todo.erb
|
155
153
|
- lib/puppet-strings/yard/templates/default/puppet_data_type/html/box_info.erb
|
156
154
|
- lib/puppet-strings/yard/templates/default/puppet_data_type/html/header.erb
|
155
|
+
- lib/puppet-strings/yard/templates/default/puppet_data_type/html/method_details_list.erb
|
157
156
|
- lib/puppet-strings/yard/templates/default/puppet_data_type/html/note.erb
|
158
157
|
- lib/puppet-strings/yard/templates/default/puppet_data_type/html/overview.erb
|
159
158
|
- lib/puppet-strings/yard/templates/default/puppet_data_type/html/setup.rb
|
@@ -216,6 +215,7 @@ files:
|
|
216
215
|
- lib/puppet-strings/yard/templates/default/puppet_type/html/setup.rb
|
217
216
|
- lib/puppet-strings/yard/templates/default/puppet_type/html/summary.erb
|
218
217
|
- lib/puppet-strings/yard/templates/default/puppet_type/html/todo.erb
|
218
|
+
- lib/puppet-strings/yard/templates/default/tags/html/enum.erb
|
219
219
|
- lib/puppet-strings/yard/templates/default/tags/html/puppet_overload.erb
|
220
220
|
- lib/puppet-strings/yard/templates/default/tags/setup.rb
|
221
221
|
- lib/puppet-strings/yard/util.rb
|
@@ -223,49 +223,11 @@ files:
|
|
223
223
|
- lib/puppet/face/strings.rb
|
224
224
|
- lib/puppet/feature/rgen.rb
|
225
225
|
- lib/puppet/feature/yard.rb
|
226
|
-
- misc/ANNOUNCEMENT_TEMPLATE.md
|
227
|
-
- spec/acceptance/emit_json_options_spec.rb
|
228
|
-
- spec/acceptance/generate_markdown_spec.rb
|
229
|
-
- spec/acceptance/running_strings_generate_spec.rb
|
230
|
-
- spec/fixtures/acceptance/modules/test/functions/add.pp
|
231
|
-
- spec/fixtures/acceptance/modules/test/lib/puppet/functions/4x_function.rb
|
232
|
-
- spec/fixtures/acceptance/modules/test/lib/puppet/parser/functions/function3x.rb
|
233
|
-
- spec/fixtures/acceptance/modules/test/lib/puppet/provider/server/linux.rb
|
234
|
-
- spec/fixtures/acceptance/modules/test/lib/puppet/type/database.rb
|
235
|
-
- spec/fixtures/acceptance/modules/test/manifests/init.pp
|
236
|
-
- spec/fixtures/acceptance/modules/test/manifests/triple_nested_classes.pp
|
237
|
-
- spec/fixtures/acceptance/modules/test/metadata.json
|
238
|
-
- spec/fixtures/acceptance/modules/test/types/elephant.pp
|
239
|
-
- spec/fixtures/unit/markdown/output.md
|
240
|
-
- spec/fixtures/unit/markdown/output_with_data_types.md
|
241
|
-
- spec/fixtures/unit/markdown/output_with_plan.md
|
242
|
-
- spec/spec_helper.rb
|
243
|
-
- spec/spec_helper_acceptance.rb
|
244
|
-
- spec/spec_helper_acceptance_local.rb
|
245
|
-
- spec/unit/puppet-strings/describe_spec.rb
|
246
|
-
- spec/unit/puppet-strings/json_spec.rb
|
247
|
-
- spec/unit/puppet-strings/markdown/base_spec.rb
|
248
|
-
- spec/unit/puppet-strings/markdown_spec.rb
|
249
|
-
- spec/unit/puppet-strings/yard/code_objects/task_spec.rb
|
250
|
-
- spec/unit/puppet-strings/yard/handlers/json/task_handler_spec.rb
|
251
|
-
- spec/unit/puppet-strings/yard/handlers/puppet/class_handler_spec.rb
|
252
|
-
- spec/unit/puppet-strings/yard/handlers/puppet/data_type_alias_handler_spec.rb
|
253
|
-
- spec/unit/puppet-strings/yard/handlers/puppet/defined_type_handler_spec.rb
|
254
|
-
- spec/unit/puppet-strings/yard/handlers/puppet/function_handler_spec.rb
|
255
|
-
- spec/unit/puppet-strings/yard/handlers/ruby/data_type_handler_spec.rb
|
256
|
-
- spec/unit/puppet-strings/yard/handlers/ruby/function_handler_spec.rb
|
257
|
-
- spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb
|
258
|
-
- spec/unit/puppet-strings/yard/handlers/ruby/rsapi_handler_spec.rb
|
259
|
-
- spec/unit/puppet-strings/yard/handlers/ruby/type_handler_spec.rb
|
260
|
-
- spec/unit/puppet-strings/yard/parsers/json/parser_spec.rb
|
261
|
-
- spec/unit/puppet-strings/yard/parsers/json/task_statement_spec.rb
|
262
|
-
- spec/unit/puppet-strings/yard/parsers/puppet/parser_spec.rb
|
263
|
-
- spec/unit/puppet-strings/yard/util_spec.rb
|
264
226
|
homepage: https://github.com/puppetlabs/puppet-strings
|
265
227
|
licenses:
|
266
228
|
- Apache-2.0
|
267
229
|
metadata: {}
|
268
|
-
post_install_message:
|
230
|
+
post_install_message:
|
269
231
|
rdoc_options: []
|
270
232
|
require_paths:
|
271
233
|
- lib
|
@@ -273,16 +235,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
273
235
|
requirements:
|
274
236
|
- - ">="
|
275
237
|
- !ruby/object:Gem::Version
|
276
|
-
version: 2.
|
238
|
+
version: 2.3.0
|
277
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
240
|
requirements:
|
279
241
|
- - ">="
|
280
242
|
- !ruby/object:Gem::Version
|
281
243
|
version: '0'
|
282
244
|
requirements:
|
283
|
-
- puppet, >=
|
284
|
-
|
285
|
-
|
245
|
+
- puppet, >= 5.0.0
|
246
|
+
rubyforge_project:
|
247
|
+
rubygems_version: 2.7.6.2
|
248
|
+
signing_key:
|
286
249
|
specification_version: 4
|
287
250
|
summary: Puppet documentation via YARD
|
288
251
|
test_files: []
|
data/Gemfile
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
gem 'rgen'
|
6
|
-
gem 'redcarpet'
|
7
|
-
gem 'yard', '~> 0.9.11'
|
8
|
-
|
9
|
-
if ENV['PUPPET_GEM_VERSION']
|
10
|
-
gem 'puppet', ENV['PUPPET_GEM_VERSION'], :require => false
|
11
|
-
else
|
12
|
-
gem 'puppet', :require => false
|
13
|
-
end
|
14
|
-
|
15
|
-
group :test do
|
16
|
-
gem 'codecov'
|
17
|
-
gem 'mocha'
|
18
|
-
gem 'puppetlabs_spec_helper'
|
19
|
-
gem 'serverspec'
|
20
|
-
gem 'simplecov-console'
|
21
|
-
gem 'rspec', '~> 3.1'
|
22
|
-
gem 'json_spec', '~> 1.1', '>= 1.1.5'
|
23
|
-
end
|
24
|
-
|
25
|
-
group :acceptance do
|
26
|
-
# Litmus has dependencies which require Ruby 2.5 (Puppet 6) or above.
|
27
|
-
gem 'puppet_litmus' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.5.0')
|
28
|
-
end
|
29
|
-
|
30
|
-
group :development do
|
31
|
-
gem 'github_changelog_generator', git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
|
32
|
-
gem 'pry'
|
33
|
-
gem 'pry-byebug'
|
34
|
-
end
|
35
|
-
|
36
|
-
gem 'rubocop-rspec'
|
37
|
-
gem 'rubocop', '~> 0.57.2'
|
38
|
-
|
39
|
-
# Evaluate Gemfile.local if it exists
|
40
|
-
if File.exists? "#{__FILE__}.local"
|
41
|
-
eval(File.read("#{__FILE__}.local"), binding)
|
42
|
-
end
|
43
|
-
|
44
|
-
# Evaluate ~/.gemfile if it exists
|
45
|
-
if File.exists?(File.join(Dir.home, '.gemfile'))
|
46
|
-
eval(File.read(File.join(Dir.home, '.gemfile')), binding)
|
47
|
-
end
|