knife-cookbook-doc 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,72 +1,64 @@
1
- v0.12.0 (Mar 17 2015)
2
- ---------------------
1
+ # v0.13.0 (Mar 17 2015)
2
+
3
+ * Fix get_attribute_name to use the newly supplied precedent level. Submitted By Drew Blessing.
4
+ * Further refinements for multi-line attributes. Submitted By Drew Blessing.
5
+
6
+ # v0.12.0 (Mar 17 2015)
3
7
 
4
8
  * Improve regex that matches attributes to support all 5 precedent
5
9
  specifiers and also supports multiline definitions. This is backwards
6
- compatible. Submitted By Drew Blessing.
10
+ compatible. Submitted By Drew Blessing.
7
11
 
8
- v0.11.0 (Jun 5 2014)
9
- --------------------
12
+ # v0.11.0 (Jun 5 2014)
10
13
 
11
14
  * Be honest about attribute types. Submitted by benlangfeld.
12
15
 
13
- v0.10.0 (Mar 3 2014)
14
- --------------------
16
+ # v0.10.0 (Mar 3 2014)
15
17
 
16
18
  * Add support for generating documentation for definitions. Submitted by zhelyan.
17
19
  * Remove end of line whitespace in generated README
18
20
 
19
- v0.9.0 (Feb 24 2014)
20
- --------------------
21
+ # v0.9.0 (Feb 24 2014)
21
22
 
22
23
  * Convert cookbook_dir to real path to ensure the plugin works in alternative shells such as powershell. Submitted by zhelyan.
23
24
 
24
- v0.8.0 (Feb 14 2014)
25
- --------------------
25
+ # v0.8.0 (Feb 14 2014)
26
26
 
27
27
  * Fix compatibility with Chef 11.8.0. Submitted by Ben Langfeld.
28
28
 
29
- v0.7.0 (Oct 13 2013)
30
- --------------------
29
+ # v0.7.0 (Oct 13 2013)
31
30
 
32
31
  * Add some basic documentation regarding scanning documentation for attributes.
33
32
 
34
- v0.6.0 (Oct 7 2013)
35
- --------------------
33
+ # v0.6.0 (Oct 7 2013)
36
34
 
37
35
  * Fix bug in attributes model due to incorrectly named method call. Reported by Jared Russell.
38
36
 
39
- v0.5.0 (Sep 16 2013)
40
- --------------------
37
+ # v0.5.0 (Sep 16 2013)
41
38
 
42
39
  * Re-push gem with correct set of changes to rubygems.
43
40
 
44
- v0.4.0 (Sep 16 2013)
45
- --------------------
41
+ # v0.4.0 (Sep 16 2013)
46
42
 
47
43
  * Scan the recipes directory for recipes if no recipes are declared in the metadata.rb (Skipping recipes with a name starting with '_'). Submitted by Jarek Gawor.
48
44
  * Scan the attributes files if no attributes are declared in the metadata.rb and collect descriptions from comments. Submitted by Jarek Gawor.
49
45
  * Descriptions scanned from source files should expect the . separator to be followed by a space. Submitted by Jarek Gawor.
50
46
 
51
- v0.3.0 (Apr 1 2013)
52
- --------------------
47
+ # v0.3.0 (Apr 1 2013)
53
48
 
54
49
  * Replace the last section of the readme with the doc/credit.md fragment if it is present.
55
50
 
56
- v0.2.0 (Apr 1 2013)
57
- --------------------
51
+ # v0.2.0 (Apr 1 2013)
58
52
 
59
53
  * Rework plugin to generate documentation for LWRPs.
60
54
  * Update the plugin to scan the source file for annotations to add to README.
61
55
 
62
- v0.1.1 (Feb 20 2013)
63
- --------------------
56
+ # v0.1.1 (Feb 20 2013)
64
57
 
65
58
  * Convert plugin into a gem that can be installed via RubyGems.
66
59
  * Update README.
67
60
  * Add this CHANGELOG file.
68
61
 
69
- v0.1.0 (Dec 5 2012)
70
- -------------------
62
+ # v0.1.0 (Dec 5 2012)
71
63
 
72
64
  * First tagged version.
@@ -1,7 +1,7 @@
1
1
  module KnifeCookbookDoc
2
2
  class AttributesModel
3
3
 
4
- ATTRIBUTE_REGEX = "(^\s*(?:default|set|force_default|override|force_override).*?)=\s*(.*?)$".freeze
4
+ ATTRIBUTE_REGEX = "(^\s*(?:default|set|force_default|override|force_override).*?)=\s*\n?\s*(.*?)$".freeze
5
5
 
6
6
  def initialize(filename)
7
7
  @filename = filename
@@ -57,7 +57,7 @@ module KnifeCookbookDoc
57
57
  end
58
58
 
59
59
  def get_attribute_name(name)
60
- name.strip.gsub(/^default/, "node")
60
+ name.strip.gsub(/^(default|set|force_default|override|force_override)/, "node")
61
61
  end
62
62
 
63
63
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeCookbookDoc
2
- VERSION = '0.12.0'
2
+ VERSION = '0.13.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.12.0
4
+ version: 0.13.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -100,18 +100,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  - - ! '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
- segments:
104
- - 0
105
- hash: -2457004065035104203
106
103
  required_rubygems_version: !ruby/object:Gem::Requirement
107
104
  none: false
108
105
  requirements:
109
106
  - - ! '>='
110
107
  - !ruby/object:Gem::Version
111
108
  version: '0'
112
- segments:
113
- - 0
114
- hash: -2457004065035104203
115
109
  requirements: []
116
110
  rubyforge_project:
117
111
  rubygems_version: 1.8.23