knife-cookbook-doc 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17c5fb8c4abf80bfc8900aba278be417d184c37d
4
- data.tar.gz: 7724660129ece1fbb7fa7045ff7cdba8c3478de6
3
+ metadata.gz: f71b176c039980dfbccdb5f7c614528a3ce6f2b7
4
+ data.tar.gz: 01448efcc3ab33f60a0b46f877667685d10ac789
5
5
  SHA512:
6
- metadata.gz: 5cef0d16f18084b09540a0912ce6633ff257cc71d2996e77b183820a358985afb4357d3b4b00efd352862cd69b7185f77f2bd4a91b523abda2237fb4ef7cfbbb
7
- data.tar.gz: 7a9e7770d224d241cb5939e287218808f5b9da50aeeb2ff2805cea931de577c8dc21375a3ef9ad3a5907ef661ae03fdf116b60aabf8c4405d50cae3fefb99030
6
+ metadata.gz: 3cedd3dd40cf862e79de2fafcb62dda082921333aed0c886ad84f80c9fe5468f4f59f17dddd43957593769894f3015a25733441d781391e10cac646b8b1eec40
7
+ data.tar.gz: 82d3814d0c60dd3f9c313410ebc2d60af65b0c9aab19ae860e650a9b5148ae45bc37a93ad702888cde68c048b68a7f5a738add579f1c14e87f82dc2a04d29518
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.22.0 (Feb 9 2017)
2
+
3
+ * Fix rake tasks for newer versions of Rake. Submitted by jsirex.
4
+
1
5
  # v0.21.0 (Dec 2 2016)
2
6
 
3
7
  * Add support `--ignore-missing-doc-attr` to skip attributes with no documentation. Submitted by Andrey Zax.
@@ -23,11 +23,12 @@ module KnifeCookbookDoc
23
23
  end
24
24
 
25
25
  def define
26
- desc 'Generate cookbook documentation' unless ::Rake.application.last_comment
26
+ last_description = ::Rake::Version::MAJOR.to_i < 12 ? ::Rake.application.last_comment : ::Rake.application.last_description
27
+ desc 'Generate cookbook documentation' unless last_description
27
28
  task(name) do
28
29
  merged_options = default_options.merge(options)
29
30
  cookbook_dir = File.realpath(merged_options[:cookbook_dir])
30
- model = ReadmeModel.new(cookbook_dir, merged_options[:constraints])
31
+ model = ReadmeModel.new(cookbook_dir, merged_options)
31
32
  template = File.read(merged_options[:template_file])
32
33
  eruby = Erubis::Eruby.new(template)
33
34
  result = eruby.result(model.get_binding)
@@ -1,3 +1,3 @@
1
1
  module KnifeCookbookDoc
2
- VERSION = '0.21.0'
2
+ VERSION = '0.22.0'
3
3
  end
@@ -67,7 +67,7 @@ default['knife_cookbook_doc']['attr5x'] = 'attr5x_value'
67
67
  EOS
68
68
  }
69
69
  subject do
70
- KnifeCookbookDoc::AttributesModel.new('attributes/default.rb').attributes
70
+ KnifeCookbookDoc::AttributesModel.new('attributes/default.rb', {}).attributes
71
71
  end
72
72
 
73
73
  it do
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.21.0
4
+ version: 0.22.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: 2016-12-02 00:00:00.000000000 Z
12
+ date: 2017-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef