knife-cookbook-doc 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/fixture/README-expected.md +14 -0
- data/fixture/resources/space.rb +13 -0
- data/lib/knife_cookbook_doc/resource_model.rb +3 -3
- data/lib/knife_cookbook_doc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d4b4645d7d5c912ee0727e526541469198e048c75792d308624039278329a729
|
4
|
+
data.tar.gz: 60ba6053bb465d1e50cca894de9ff772a6e0ab180b78800c738bd9e67136c142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a31986554dce09246b247c9c50a10d720f8025a02eb059fea3b4d8dc3deb7f64dc10a70488eb37fd2e57d56d7518a2d3516d469682c54d04949912a34a0f2d5d
|
7
|
+
data.tar.gz: f91942855366f6cb84292754909217b881d9292d5e3c3843062aebba7865507b6e3da3a266afb9b73778ff8ede007e4c53b54921cf63db78fd9bdae28f50d20e
|
data/CHANGELOG.md
CHANGED
data/fixture/README-expected.md
CHANGED
@@ -36,6 +36,7 @@ MyApp Admin Group: The group allowed to manage MyApp.
|
|
36
36
|
# Resources
|
37
37
|
|
38
38
|
* [fixture](#fixture) - This resource is awesome.
|
39
|
+
* [fixture_space](#fixture_space) - This resource is spacial.
|
39
40
|
|
40
41
|
## fixture
|
41
42
|
|
@@ -50,6 +51,19 @@ This resource is awesome.
|
|
50
51
|
- my_attribute: This is an attribute. Defaults to <code>"a default value"</code>.
|
51
52
|
- my_property: This is a property. Defaults to <code>"another default value"</code>.
|
52
53
|
|
54
|
+
## fixture_space
|
55
|
+
|
56
|
+
This resource is spacial.
|
57
|
+
|
58
|
+
### Actions
|
59
|
+
|
60
|
+
- stuff: Inserts spaces. Default action.
|
61
|
+
|
62
|
+
### Attribute Parameters
|
63
|
+
|
64
|
+
- my_attribute: This is an attribute. Defaults to <code>"a default value"</code>.
|
65
|
+
- my_property: This is a property. Defaults to <code>"another default value"</code>.
|
66
|
+
|
53
67
|
# Libraries
|
54
68
|
|
55
69
|
## stooges()
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# <
|
2
|
+
# This resource is spacial.
|
3
|
+
#
|
4
|
+
# @action stuff Inserts spaces.
|
5
|
+
# >
|
6
|
+
|
7
|
+
default_action :stuff
|
8
|
+
|
9
|
+
# <> @attribute my_attribute This is an attribute.
|
10
|
+
attribute :my_attribute, default: 'a default value'
|
11
|
+
|
12
|
+
# <> @property my_property This is a property.
|
13
|
+
property :my_property, default: 'another default value'
|
@@ -98,13 +98,13 @@ module KnifeCookbookDoc
|
|
98
98
|
resource_class.resource_name = filename_to_qualified_string(cookbook_name, filename)
|
99
99
|
resource_class.run_context = nil
|
100
100
|
resource_data = IO.read(filename)
|
101
|
-
resource_data = resource_data.gsub(/^=begin *\n
|
101
|
+
resource_data = resource_data.gsub(/^=begin *\n *\# ?\<\n(.*?)^ *\# ?\>\n=end *\n/m) do
|
102
102
|
"desc <<DOCO\n#{$1}\nDOCO\n"
|
103
103
|
end
|
104
|
-
resource_data = resource_data.gsub(/^
|
104
|
+
resource_data = resource_data.gsub(/^ *\# ?\<\n(.*?)^ *\# ?\>\n/m) do
|
105
105
|
"desc <<DOCO\n#{$1.gsub(/^ *\# ?/, '')}\nDOCO\n"
|
106
106
|
end
|
107
|
-
resource_data = resource_data.gsub(/^
|
107
|
+
resource_data = resource_data.gsub(/^ *\# ?\<\> (.*?)$/) do
|
108
108
|
"desc #{$1.inspect}\n"
|
109
109
|
end
|
110
110
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-cookbook-doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathias Lafeldt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- fixture/metadata.rb
|
99
99
|
- fixture/recipes/default.rb
|
100
100
|
- fixture/resources/default.rb
|
101
|
+
- fixture/resources/space.rb
|
101
102
|
- knife_cookbook_doc.gemspec
|
102
103
|
- lib/chef/knife/README.md.erb
|
103
104
|
- lib/chef/knife/cookbook_doc.rb
|
@@ -132,8 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
- !ruby/object:Gem::Version
|
133
134
|
version: '0'
|
134
135
|
requirements: []
|
135
|
-
|
136
|
-
rubygems_version: 2.5.1
|
136
|
+
rubygems_version: 3.1.4
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Knife plugin to generate README.md for a cookbook
|