rdoc-markdown 0.10.0 → 0.10.2

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: a3af6b5292a9333e8e0749195f1b799f80015a2b23bc7c8bd47068f315671d5c
4
- data.tar.gz: 759122408198407ee3f300ee7effa75e4f7d02cf765a989f30db4ee1d79b4fa9
3
+ metadata.gz: 7f62c96dacb7b3f4987b9d48f3f949ac37ee0abe715288139d937f9085e63097
4
+ data.tar.gz: 7a8326a4247d835f83694707f03a851c1a1c676fc40cf29fcfc9e682f6226480
5
5
  SHA512:
6
- metadata.gz: e259a75c590f3414e036763c213a3b19e8df9d78a964155ba20ebb6b5ec440b25cca3b4a925fc39181100267079cd89e30db711aabb087b34245b72dc3ca9873
7
- data.tar.gz: e70488f82388bdbb6e1bd8a99e32864da66c86adf2e8cf58f2ee3775523a9283002b30aa31f8a8d080cc70812d6efcee5300bffb665b4bf432b2fd8643db5a86
6
+ metadata.gz: e332801e5958e9f91342c62b2df262270a38386624257835d68ed96c97b4d3a113f9d4d89b723abc5387239dd9425a93accc485bb534b582cfc629ba03f8dce6
7
+ data.tar.gz: cd8a226680fbc336396b23b2f90cfcbe1bf78822426ad538ede0bd44f6e7bd05f0defdf01c2af8b7083fc4aa835c761e527824a727782d19754f74bd8f93773f
data/.yard-lint.yml CHANGED
@@ -13,6 +13,7 @@ AllValidators:
13
13
  - "spec/**/*"
14
14
  - "test/**/*"
15
15
  - "tmp/**/*"
16
+ - lib/rdoc/markdown/version.rb
16
17
 
17
18
  FailOnSeverity: error
18
19
  MinCoverage: 100.0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.10.2
6
+
7
+ ### Fixed
8
+ - Generated anchors stay inline with headings
9
+
10
+ ## 0.10.1
11
+
12
+ ### Changed
13
+ - Stop adding a global "Type signatures available" notice to generated class/module pages.
14
+
5
15
  ## 0.10.0
6
16
 
7
17
  - Reworked RDoc 8 support
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rdoc-markdown (0.10.0)
4
+ rdoc-markdown (0.10.2)
5
5
  csv
6
6
  erb
7
7
  rdoc
@@ -403,13 +403,6 @@ class RDoc::Generator::Markdown
403
403
  signatures.join(" | ")
404
404
  end
405
405
 
406
- # Checks whether this documentation set has parsed RBS signatures.
407
- #
408
- # @return [Boolean] True when type signatures are available.
409
- def types_available?
410
- @rbs_method_signatures.any?
411
- end
412
-
413
406
  # Merges RDoc parameter names into a type-only signature.
414
407
  #
415
408
  # @param signature [String] Method signature from RDoc call sequence.
@@ -1,10 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Gem metadata namespace.
4
3
  module Rdoc
5
- # Version namespace for rdoc-markdown.
6
4
  module Markdown
7
- # Current gem version.
8
- VERSION = "0.10.0"
5
+ VERSION = "0.10.2"
9
6
  end
10
7
  end
@@ -1,9 +1,4 @@
1
- # <%= klass.type.capitalize %> <%= display_name(klass) %>
2
- <%= anchor(klass.aref.strip) %>
3
- <%- if types_available? -%>
4
-
5
- _Type signatures available._
6
- <%- end -%>
1
+ # <%= klass.type.capitalize %> <%= display_name(klass) %> <%= anchor(klass.aref.strip) %>
7
2
  <%- class_description = describe(klass) -%>
8
3
  <%- unless class_description.empty? -%>
9
4
 
@@ -26,8 +21,7 @@ _Type signatures available._
26
21
  ### Constants
27
22
  <% constants.sort_by(&:name).each do |const| -%>
28
23
 
29
- #### `<%= const.name %>`
30
- <%= anchor(const.name) %>
24
+ #### `<%= const.name %>` <%= anchor(const.name) %>
31
25
 
32
26
  <%= describe(const, fallback: "Not documented.", heading_level_offset: 4) %>
33
27
  <% end -%>
@@ -37,8 +31,7 @@ _Type signatures available._
37
31
  ### Attributes
38
32
  <% attributes.sort_by(&:name).each do |attr| -%>
39
33
 
40
- #### `<%= attr.name %>` [<%= attr.rw %>]
41
- <%= anchor(attr.aref.strip) %>
34
+ #### `<%= attr.name %>` [<%= attr.rw %>] <%= anchor(attr.aref.strip) %>
42
35
 
43
36
  <%= describe(attr, fallback: "Not documented.", heading_level_offset: 4) %>
44
37
  <% end -%>
@@ -51,8 +44,7 @@ _Type signatures available._
51
44
  ### <%= visibility.capitalize %> <%= type.capitalize %> Methods
52
45
  <% methods.each do |method| -%>
53
46
 
54
- #### `<%= method.name %><%= method_signature(method) %>`
55
- <%= anchor(method.aref) %>
47
+ #### `<%= method.name %><%= method_signature(method) %>` <%= anchor(method.aref) %>
56
48
 
57
49
  <%= method_description(method, current_class: klass) %>
58
50
  <% end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav (Stas) Katkov