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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7d4e4e61d176043dd41fa77782ac36203bc1251a
4
- data.tar.gz: 49a72076fe65ea3f15878479e7c709394e2bc14c
2
+ SHA256:
3
+ metadata.gz: d4b4645d7d5c912ee0727e526541469198e048c75792d308624039278329a729
4
+ data.tar.gz: 60ba6053bb465d1e50cca894de9ff772a6e0ab180b78800c738bd9e67136c142
5
5
  SHA512:
6
- metadata.gz: 325f8c3e22e8f67778480106847aafbccc2d7da9d58831005f3fa09b7e3de3c4710c9a05e6023718a8669c064e51c94f3cc8cf5305752704e5d6a587d5c89fae
7
- data.tar.gz: 876de6b5caff31196e93bd7dd71c8b5fb1c6bec5725a95c24644595ae19954de6a043d1e987be44df56c67c1e376eec46bec027bcd9ef285ce0b7393347e97da
6
+ metadata.gz: a31986554dce09246b247c9c50a10d720f8025a02eb059fea3b4d8dc3deb7f64dc10a70488eb37fd2e57d56d7518a2d3516d469682c54d04949912a34a0f2d5d
7
+ data.tar.gz: f91942855366f6cb84292754909217b881d9292d5e3c3843062aebba7865507b6e3da3a266afb9b73778ff8ede007e4c53b54921cf63db78fd9bdae28f50d20e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.30.0 (Mar 19 2021)
2
+
3
+ * Support a space after # in custom resource. Submitted by Tomoya Kabe.
4
+
1
5
  # v0.29.0 (Jun 26 2020)
2
6
 
3
7
  * Extract descriptions from `libraries/*.rb`. Submitted by Joe Nuspl.
@@ -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 *\#\<\n(.*?)^ *\#\>\n=end *\n/m) do
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(/^ *\#\<\n(.*?)^ *\#\>\n/m) do
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(/^ *\#\<\> (.*?)$/) do
107
+ resource_data = resource_data.gsub(/^ *\# ?\<\> (.*?)$/) do
108
108
  "desc #{$1.inspect}\n"
109
109
  end
110
110
 
@@ -1,3 +1,3 @@
1
1
  module KnifeCookbookDoc
2
- VERSION = '0.29.0'
2
+ VERSION = '0.30.0'
3
3
  end
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.29.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: 2020-06-26 00:00:00.000000000 Z
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
- rubyforge_project:
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