rdoc-markdown 0.12.0 → 0.12.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rdoc/generator/markdown.rb +1 -24
- data/lib/rdoc/markdown/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c69484c517e3582906e6847cbb162a7847ad29446856197a5f65972071c21d24
|
|
4
|
+
data.tar.gz: f646046107985a70925df0794921c5451c514be069827762a296b9763a27bd81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79dce45ea46f3c5baa04488ea729e280196cb1b73cf48d1857c8227d67cf9d8ec2eb2d5d3dd69ced241d06c0b91ba91d817fcf4cbd0d7d6de22f05e709f3e0a0
|
|
7
|
+
data.tar.gz: 44cd9cf4996a79fee5c56b19fa3779aed7e19a165a0576f350399560259b89f82e615c0911f7a1ce00087b860f1494499c7c00230dc486da11724502bc9a58fb
|
data/Gemfile.lock
CHANGED
|
@@ -26,7 +26,7 @@ class RDoc::Generator::Markdown
|
|
|
26
26
|
"history" => "Changelog"
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
# Source page extensions
|
|
29
|
+
# Source page extensions eligible for root page classification.
|
|
30
30
|
ROOT_PAGE_EXTENSIONS = %w[.rdoc .md .markdown]
|
|
31
31
|
|
|
32
32
|
# Returns the configured search-index type for an eligible root text page path.
|
|
@@ -76,29 +76,6 @@ class RDoc::Generator::Markdown
|
|
|
76
76
|
@markdown_unknown_tags = map.fetch("markdown_unknown_tags") if map.key?("markdown_unknown_tags")
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
# Adds markdown root entry pages to explicit source files.
|
|
80
|
-
#
|
|
81
|
-
# @return [void]
|
|
82
|
-
def check_files
|
|
83
|
-
return super unless @generator == RDoc::Generator::Markdown
|
|
84
|
-
super
|
|
85
|
-
return if @files.empty?
|
|
86
|
-
|
|
87
|
-
root = Pathname(@root)
|
|
88
|
-
expanded_root = root.expand_path
|
|
89
|
-
expanded_files = @files.map { |file| Pathname(file).expand_path.to_s }
|
|
90
|
-
@files.concat(
|
|
91
|
-
Dir.children(expanded_root).filter_map do |name|
|
|
92
|
-
path = expanded_root.join(name)
|
|
93
|
-
next unless path.file?
|
|
94
|
-
next unless File.readable?(path)
|
|
95
|
-
next unless RDoc::Generator::Markdown.root_page_type_for(name)
|
|
96
|
-
next if expanded_files.include?(path.to_s)
|
|
97
|
-
|
|
98
|
-
root.join(name).to_s
|
|
99
|
-
end
|
|
100
|
-
)
|
|
101
|
-
end
|
|
102
79
|
end
|
|
103
80
|
|
|
104
81
|
# Registers markdown generator-specific RDoc options.
|