knife-cookbook-doc 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YWY0ZDM0NzU0Njk3M2Q0NWEwMDBlNGY2M2FkMDk2NTg5MjNkOTBjZg==
5
+ data.tar.gz: !binary |-
6
+ ODNiODg1ZjA4NTE3ZTI2MmQ3ZjhmZWJhOGIyNGFlOGJmMzUyMjZlYQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZjViNDgzN2MyMzhlNjkwMWUzMDc2NjQwZWMyZmM1NTU3YmI0MDI0NzA2NGZi
10
+ MmU4OTAxYWMwNWJkNmNlNWUxODBkZTRjZDkyZDljOTQ0YTA4Yzc5MTAyZjE5
11
+ YTEzN2VhMjA3YjBkN2ZkMjgxN2QyYTk1NzFhZDAyMGYyMTk4NDY=
12
+ data.tar.gz: !binary |-
13
+ ZWUwYzMyOTZlZDdhOTg3Y2MyM2ZkOGIxZTVjOWEwOWI3NDVlZDkzMGE3OTMz
14
+ YmQzNDhhNzRjNTY3YzU0NzViMDU2NjAzNGNjMzQwOTQ2OTQ3YWY1NGUzYjYz
15
+ MDEyMjdhODdhNjI4ZTdmYWIzZDJiYzUxMzJkM2UzYmU2ZjgzNWQ=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.14.0 (Mar 17 2015)
2
+
3
+ * Further bug-fixes for multi-line attributes. Submitted By Drew Blessing.
4
+ * Fix the default values emitted in documentation.
5
+
1
6
  # v0.13.0 (Mar 17 2015)
2
7
 
3
8
  * Fix get_attribute_name to use the newly supplied precedent level. Submitted By Drew Blessing.
@@ -41,7 +41,7 @@
41
41
 
42
42
  <% unless attributes.empty? %>
43
43
  <% attributes.each do |name, description, default, choice| %>
44
- * `<%= name %>` - <%= description %><% if !description.nil? && !description.strip.end_with?(".") %>.<% end %> <% unless choice.empty? %>Available options: <%= "`#{choice.map(&:inspect).join('`, `')}`" %>. <% end %>Defaults to `<%= default.inspect %>`.
44
+ * `<%= name %>` - <%= description %><% if !description.nil? && !description.strip.end_with?(".") %>.<% end %> <% unless choice.empty? %>Available options: <%= "`#{choice.map(&:inspect).join('`, `')}`" %>. <% end %>Defaults to `<%= default %>`.
45
45
  <% end %>
46
46
  <% else %>
47
47
  *No attributes defined*
@@ -39,13 +39,13 @@ module KnifeCookbookDoc
39
39
  end
40
40
 
41
41
  # get/parse comments
42
- resource_data = resource_data.gsub(/^=begin\s*\n\s*\#\<\s*\n(.*?)^\s*\#\>\n=end\s*\n#{ATTRIBUTE_REGEX}/m) do
42
+ resource_data = resource_data.gsub(/^=begin\s*\n\s*\#\<\s*\n(.*?)\n^\s*\#\>\n=end\s*\n#{ATTRIBUTE_REGEX}/) do
43
43
  update_attribute($2, $1)
44
44
  end
45
- resource_data = resource_data.gsub(/^\s*\#\<\n(.*?)^\s*\#\>\n#{ATTRIBUTE_REGEX}/m) do
45
+ resource_data = resource_data.gsub(/^\s*\#\<\n(.*?)\n^\s*\#\>\n#{ATTRIBUTE_REGEX}/) do
46
46
  update_attribute($2, $1.gsub(/^\s*\# ?/, ''))
47
47
  end
48
- resource_data = resource_data.gsub(/^\s*\#\<\>\s(.*?$)\n#{ATTRIBUTE_REGEX}/m) do
48
+ resource_data = resource_data.gsub(/^\s*\#\<\>\s(.*?$)\n#{ATTRIBUTE_REGEX}/) do
49
49
  update_attribute($2, $1)
50
50
  end
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeCookbookDoc
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cookbook-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
5
- prerelease:
4
+ version: 0.14.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Mathias Lafeldt
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2015-03-16 00:00:00.000000000 Z
12
+ date: 2015-03-18 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: chef
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ! '>='
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ! '>='
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: erubis
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ! '>='
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ! '>='
45
40
  - !ruby/object:Gem::Version
@@ -47,7 +42,6 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: rake
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ! '>='
53
47
  - !ruby/object:Gem::Version
@@ -55,7 +49,6 @@ dependencies:
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ! '>='
61
54
  - !ruby/object:Gem::Version
@@ -90,26 +83,26 @@ files:
90
83
  homepage: http://realityforge.github.com/knife-cookbook-doc
91
84
  licenses:
92
85
  - Apache 2.0
86
+ metadata: {}
93
87
  post_install_message:
94
88
  rdoc_options: []
95
89
  require_paths:
96
90
  - lib
97
91
  required_ruby_version: !ruby/object:Gem::Requirement
98
- none: false
99
92
  requirements:
100
93
  - - ! '>='
101
94
  - !ruby/object:Gem::Version
102
95
  version: '0'
103
96
  required_rubygems_version: !ruby/object:Gem::Requirement
104
- none: false
105
97
  requirements:
106
98
  - - ! '>='
107
99
  - !ruby/object:Gem::Version
108
100
  version: '0'
109
101
  requirements: []
110
102
  rubyforge_project:
111
- rubygems_version: 1.8.23
103
+ rubygems_version: 2.0.3
112
104
  signing_key:
113
- specification_version: 3
105
+ specification_version: 4
114
106
  summary: Knife plugin to generate README.md for a cookbook
115
107
  test_files: []
108
+ has_rdoc: