rdoc-markdown 0.1.12 → 0.1.14
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 +15 -4
- data/docs/example.rb +3 -3
- data/lib/rdoc/generator/markdown.rb +33 -2
- data/lib/rdoc/markdown/version.rb +1 -1
- data/publish.sh +6 -0
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12c1ba51ac28269b904c171a33ced989e93a6ec55cdeb5b07cf1267bb73f288e
|
|
4
|
+
data.tar.gz: 816fce30041fc92080f14dfe722e27261b9bc65fbec97b00a9646962a6daa0b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47cae1695d164805c74056118cc2048594281e304fd73952a6e8a0602a89f360beae06f5a6cd01929bfb6b1d094716b59a68a748a9409f4544bb18df2cf8c6d5
|
|
7
|
+
data.tar.gz: 544b83ef2a0f8dbccc7fbba8ef046f5fccd160ea0f030f6dba237ee6d061e4a13cae0c04fbd701d650993ec1d966f202ce948330101c9077d160bfdf4ef9c089
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rdoc-markdown (0.1.
|
|
4
|
+
rdoc-markdown (0.1.13)
|
|
5
|
+
activesupport (~> 7.0)
|
|
5
6
|
erb (~> 2.0)
|
|
6
7
|
extralite-bundle (~> 1.0)
|
|
7
8
|
rdoc (~> 6.0)
|
|
@@ -10,16 +11,24 @@ PATH
|
|
|
10
11
|
GEM
|
|
11
12
|
remote: https://rubygems.org/
|
|
12
13
|
specs:
|
|
14
|
+
activesupport (7.0.4)
|
|
15
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
16
|
+
i18n (>= 1.6, < 2)
|
|
17
|
+
minitest (>= 5.1)
|
|
18
|
+
tzinfo (~> 2.0)
|
|
13
19
|
ast (2.4.2)
|
|
14
20
|
cgi (0.3.3)
|
|
21
|
+
concurrent-ruby (1.1.10)
|
|
15
22
|
erb (2.2.3)
|
|
16
23
|
cgi
|
|
17
24
|
extralite-bundle (1.16)
|
|
25
|
+
i18n (1.12.0)
|
|
26
|
+
concurrent-ruby (~> 1.0)
|
|
18
27
|
json (2.6.2)
|
|
19
28
|
minitest (5.16.3)
|
|
20
|
-
nokogiri (1.13.
|
|
29
|
+
nokogiri (1.13.9-arm64-darwin)
|
|
21
30
|
racc (~> 1.4)
|
|
22
|
-
nokogiri (1.13.
|
|
31
|
+
nokogiri (1.13.9-x86_64-linux)
|
|
23
32
|
racc (~> 1.4)
|
|
24
33
|
parallel (1.22.1)
|
|
25
34
|
parser (3.1.2.1)
|
|
@@ -46,7 +55,7 @@ GEM
|
|
|
46
55
|
rubocop-ast (>= 1.20.1, < 2.0)
|
|
47
56
|
ruby-progressbar (~> 1.7)
|
|
48
57
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
49
|
-
rubocop-ast (1.
|
|
58
|
+
rubocop-ast (1.22.0)
|
|
50
59
|
parser (>= 3.1.1.0)
|
|
51
60
|
rubocop-performance (1.14.3)
|
|
52
61
|
rubocop (>= 1.7.0, < 2.0)
|
|
@@ -56,6 +65,8 @@ GEM
|
|
|
56
65
|
rubocop (= 1.35.1)
|
|
57
66
|
rubocop-performance (= 1.14.3)
|
|
58
67
|
stringio (3.0.2)
|
|
68
|
+
tzinfo (2.0.5)
|
|
69
|
+
concurrent-ruby (~> 1.0)
|
|
59
70
|
unicode-display_width (2.3.0)
|
|
60
71
|
|
|
61
72
|
PLATFORMS
|
data/docs/example.rb
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
##
|
|
2
|
-
# === RDoc::Generator::
|
|
2
|
+
# === RDoc::Generator::Markdown example.
|
|
3
3
|
#
|
|
4
|
-
# This example employs
|
|
4
|
+
# This example employs various RDoc features to demonstrate
|
|
5
5
|
# generator output.
|
|
6
6
|
#
|
|
7
7
|
# ---
|
|
8
8
|
#
|
|
9
9
|
# Links:
|
|
10
10
|
#
|
|
11
|
-
# 1. {Project Home Page}[https://github.com/
|
|
11
|
+
# 1. {Project Home Page}[https://github.com/skatkov/rdoc-markdown)
|
|
12
12
|
# 2. {RDoc Documentation}[http://ruby-doc.org/stdlib-2.0.0/libdoc/rdoc/rdoc/RDoc/Markup.html]
|
|
13
13
|
#
|
|
14
14
|
|
|
@@ -6,6 +6,7 @@ require "pathname"
|
|
|
6
6
|
require "erb"
|
|
7
7
|
require "reverse_markdown"
|
|
8
8
|
require 'extralite'
|
|
9
|
+
require 'active_support/core_ext/string/inflections'
|
|
9
10
|
|
|
10
11
|
class RDoc::Generator::Markdown
|
|
11
12
|
RDoc::RDoc.add_generator self
|
|
@@ -91,13 +92,43 @@ class RDoc::Generator::Markdown
|
|
|
91
92
|
);
|
|
92
93
|
SQL
|
|
93
94
|
|
|
95
|
+
result = []
|
|
96
|
+
|
|
94
97
|
@classes.map do |klass|
|
|
95
|
-
{
|
|
98
|
+
result << {
|
|
96
99
|
name: klass.full_name,
|
|
97
100
|
type: klass.type.capitalize,
|
|
98
101
|
path: turn_to_path(klass.full_name)
|
|
99
102
|
}
|
|
100
|
-
|
|
103
|
+
|
|
104
|
+
klass.method_list.each do |method|
|
|
105
|
+
next if method.visibility.to_s.eql?("private")
|
|
106
|
+
|
|
107
|
+
result << {
|
|
108
|
+
name: "#{klass.full_name}.#{method.name}",
|
|
109
|
+
type: "Method",
|
|
110
|
+
path: "#{turn_to_path(klass.full_name)}#meth-#{ActiveSupport::Inflector.parameterize method.name}"
|
|
111
|
+
}
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
klass.constants.sort_by { |x| x.name }.each do |const|
|
|
115
|
+
result << {
|
|
116
|
+
name: "#{klass.full_name}.#{const.name}",
|
|
117
|
+
type: "Constant",
|
|
118
|
+
path: "#{turn_to_path(klass.full_name)}#const-#{ActiveSupport::Inflector.parameterize const.name}"
|
|
119
|
+
}
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
klass.attributes.sort_by { |x| x.name }.each do |attr|
|
|
123
|
+
result << {
|
|
124
|
+
name: "#{klass.full_name}.#{attr.name}",
|
|
125
|
+
type: "Attribute",
|
|
126
|
+
path: "#{turn_to_path(klass.full_name)}#attr-#{ActiveSupport::Inflector.parameterize attr.name}"
|
|
127
|
+
}
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
result.each do |rec|
|
|
101
132
|
db.execute "insert into contentIndex (name, type, path) values (:name, :type, :path)", rec
|
|
102
133
|
end
|
|
103
134
|
end
|
data/publish.sh
ADDED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rdoc-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stanislav (Stas) Katkov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10-
|
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rdoc
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: activesupport
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '7.0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '7.0'
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: minitest
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -161,6 +175,7 @@ files:
|
|
|
161
175
|
- lib/rdoc/generator/markdown.rb
|
|
162
176
|
- lib/rdoc/markdown/version.rb
|
|
163
177
|
- lib/templates/classfile.md.erb
|
|
178
|
+
- publish.sh
|
|
164
179
|
- sig/rdoc/markdown.rbs
|
|
165
180
|
homepage: https://poshtui.com
|
|
166
181
|
licenses:
|