puppet_readme_generator 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet_readme_generator.rb +7 -3
- data/lib/puppet_readme_generator/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 351722d36f214c9bd69bbd95e615272507ff0c55
|
4
|
+
data.tar.gz: 3af698a67a334d3cf38465e5c98c33fb7be4cd20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c618aa6864ac00208e7a8cd9eaca6e2a805c654e3567d927eaf5b44269c4c5a888fb5606c36faec55629193f04f1e905e9328f97f847138c68fcf2ef59d51f
|
7
|
+
data.tar.gz: b1e6491ba835f0ecf4b3e5d94d3d1189e680d00dccac6c0fae7df09946ed501cc628ef9707cf87fd54695ebc3ebc601ffa72d1e44a92889b195832f66ab18ca0
|
@@ -18,7 +18,7 @@ module PuppetReadmeGenerator
|
|
18
18
|
|
19
19
|
count = 1
|
20
20
|
|
21
|
-
unless
|
21
|
+
unless long_description.nil?
|
22
22
|
output << "#{count}. [Description](#description)"
|
23
23
|
count += 1
|
24
24
|
end
|
@@ -33,9 +33,9 @@ module PuppetReadmeGenerator
|
|
33
33
|
count += 1
|
34
34
|
end
|
35
35
|
|
36
|
-
unless
|
36
|
+
unless long_description.nil?
|
37
37
|
output << '## Description'
|
38
|
-
output <<
|
38
|
+
output << long_description
|
39
39
|
output << ''
|
40
40
|
end
|
41
41
|
|
@@ -78,6 +78,10 @@ module PuppetReadmeGenerator
|
|
78
78
|
metadata['name'].split('-')[1]
|
79
79
|
end
|
80
80
|
|
81
|
+
def long_description
|
82
|
+
metadata['long_description']
|
83
|
+
end
|
84
|
+
|
81
85
|
def main_class
|
82
86
|
classes.each do |c|
|
83
87
|
return c if c.name == puppet_module
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet_readme_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Simon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.6.11
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Generate README automatically from puppet module docstrings.
|