rtfdoc 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 347b6ddeab271092954187a8bd379383ce42ab72f8391800e580f75e9c62fcf9
4
- data.tar.gz: 69b43ac24ce63fd20cdf5359b7e672dc449fa11b234c837c6945ad0334dac4c5
3
+ metadata.gz: 3536b8048b251df0869eb0bb16378eadc247d8cd4d46382ace2899a49cfc1f30
4
+ data.tar.gz: b659fd9034ca9183b442dd39e7e1eebe75644fc01d166bf37f84cd54d1de31df
5
5
  SHA512:
6
- metadata.gz: f80c5696294bbd63d9ae9d0deec899288d1124840c805a9ff0d8f1884db15b9885223b84642791dc9d37fe917cb86155bf380576a327ad17745ea414873069b9
7
- data.tar.gz: abf40c249d97fc2bc9c1fda9e5e06a266acd4539cd011569233c8f91ea9f6a1ee41719c17f12f08331805c5e160e1e8a1ddd88114bd33755f82f15c4b72672ed
6
+ metadata.gz: a0f64a36efec12b759cca63ef5f6c9dabea13e3f56a08061e9d2c08a34ea37eeaff96c35aacb30fd472e20bcb86414b3fe708d17c5ec96800107fc733e5fc700
7
+ data.tar.gz: 7b83e3baab95dcd2bbc0e6eaed000224ddc565b5b64b0553b765b8be88e27bac16c5c86514b0d58be4c178036a9430b4e13c2470a6c9831d2ccbb758107eea36
@@ -1,3 +1,3 @@
1
1
  module RTFDoc
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -12,7 +12,7 @@
12
12
  <div class="list-item-description">
13
13
  <%= to_html(hash['desc']) %>
14
14
  </div>
15
- <% if hash['children']&.any? %>
15
+ <% if hash.key?('children') || hash.key?('after_children') %>
16
16
  <div class="section-list section-list-child">
17
17
  <h5
18
18
  class="section-list-title section-list-title-child"
@@ -26,7 +26,7 @@
26
26
  <span>Show child attributes</span>
27
27
  </h5>
28
28
  <ul class="child-list hidden">
29
- <% hash['children'].each do |child_name, child_hash| %>
29
+ <% Array(hash['children']).each do |child_name, child_hash| %>
30
30
  <li class="list-item">
31
31
  <div class="list-item-label">
32
32
  <div class="list-item-name"><%= child_name %></div>
@@ -37,6 +37,13 @@
37
37
  </div>
38
38
  </li>
39
39
  <% end %>
40
+ <% if (str = hash['after_children']) %>
41
+ <li class="list-item">
42
+ <div class="list-item-description">
43
+ <%= to_html(str) %>
44
+ </div>
45
+ </li>
46
+ <% end %>
40
47
  </ul>
41
48
  </div>
42
49
  <% end %>
@@ -556,7 +556,9 @@ h3 {
556
556
  cursor: pointer;
557
557
  color: var(--child-list-title-hover-color); }
558
558
  .section-list .section-list-title-child.child-revealed {
559
- border-bottom: 1px solid var(--divider-color); }
559
+ border-bottom: 1px solid var(--divider-color);
560
+ width: 100%;
561
+ }
560
562
  .section-list .section-list-title-child.child-revealed .svg-plus {
561
563
  transform: rotate(45deg); }
562
564
  .section-list .section-list-title-child .svg-plus {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtfdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ccocchi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-11 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubi