oldskool-puppet 0.0.4 → 0.0.5

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
2
  SHA1:
3
- metadata.gz: aac1c0f6ebc1ec81d6d90a23bd65c99c1eef3af5
4
- data.tar.gz: 1845f29f4910772538a62868c300a7f80b26f59e
3
+ metadata.gz: 20a308cb9b92f1e42ee8edc7bdd605449b787e14
4
+ data.tar.gz: 8a656c33a98982c30cfb7d2eb8d595b5a423ef6e
5
5
  SHA512:
6
- metadata.gz: a85d04853c3d619541949476384271e1970cbd461139ee95439fd7eaa9b57ed043ccabb82f4813072a44b0254fde8160f91752f75ccd7ab7a9af3bf4efdeed96
7
- data.tar.gz: 6494c8c7bf2c067f1e38d801c16a4bdaad74a2739d5f61ddf8d9b44bfe9d71b6031d44fa1cff9d87db116be450dc9c22516bc94af88cd51bbd5fd283e5e32ccb
6
+ metadata.gz: 8925a69e30791037bb046dee4deac09395158d9497013c1297636747e62788e711c3d642768a060eea8fe40ef6cdc24aa6049592404e7d6985d88d66cc70b9bd
7
+ data.tar.gz: 269f7060ff770dd72e64e5d76f45b276c278ca1f076cd271919810e163fc4b7a76c8e444239a9812dd928239fc6ac3ed31aeef632edb90eef9cbfdb36b79b46e
@@ -25,6 +25,9 @@ module Oldskool
25
25
  if type.parameters.include?(param)
26
26
  doc[:markdown] = type.attrclass(param).doc
27
27
  doc[:type] = :param
28
+ elsif type.validproperties.include?(param)
29
+ doc[:markdown] = type.propertybyname(param).doc
30
+ doc[:type] = :property
28
31
  elsif type.metaparams.include?(param)
29
32
  doc[:markdown] = type.attrclass(param).doc
30
33
  doc[:type] = :meta
@@ -44,6 +47,7 @@ module Oldskool
44
47
  :params => {}, :metaparams => {}}
45
48
 
46
49
  type.parameters.each {|param| param_docs[:params][param] = paramdoc(param)}
50
+ type.validproperties.each {|param| param_docs[:params][param] = paramdoc(param)}
47
51
  type.metaparams.each {|param| param_docs[:metaparams][param] = paramdoc(param)}
48
52
 
49
53
  param_docs
data/views/type.erb CHANGED
@@ -12,8 +12,12 @@
12
12
  <div>
13
13
  <%= markdown @result[:type][:description] %>
14
14
  </div>
15
+ <% @result[:type][:params].keys.sort.each do |param| %>
16
+ <a href="#param-<%= param %>"><%= param %></a>&nbsp;
17
+ <% end %>
15
18
  <a name="params"></a>
16
19
  <% @result[:type][:params].keys.sort.each do |param| %>
20
+ <a name="param-<%= param %>"></a>
17
21
  <% doc = @result[:type][:params][param] %>
18
22
  <h3>
19
23
  <%= param %>
@@ -26,6 +30,7 @@
26
30
  <a name="metaparams"></a>
27
31
  <hr>
28
32
  <% @result[:type][:metaparams].keys.sort.each do |param| %>
33
+ <a name="metaparam-<%= param %>"></a>
29
34
  <% doc = @result[:type][:metaparams][param] %>
30
35
  <h3>
31
36
  <%= param %> <span class="label notice">Meta</span>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oldskool-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - R.I.Pienaar