rdoc-markdown 0.1.12 → 0.1.13
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/docs/example.rb +3 -3
- data/lib/rdoc/generator/markdown.rb +32 -2
- data/lib/rdoc/markdown/version.rb +1 -1
- data/publish.sh +6 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a38c23f0593e099cf817af08dbf8c2f73573462135c99eafae1c8d060bffbc26
|
4
|
+
data.tar.gz: c209b03ef83bc8d936d5638a775c15b8c1ff0626ec94bbdd138abc2596e73999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a16a238ac2090d2d60a3c998bff28a9787a5d123fe5215e813b01f410433f8ac5264be02cb5677248c239e5d72bc26613c5a9d6b837eae90fe3d232b4eb25bda
|
7
|
+
data.tar.gz: ed04a374783a90b072f757d39439e0749d52bac3e6ee6d13af0b90408746f96c2d3257e50a72452ad749689bcd3dbe767ac509bf6bc1b597c7ad7771810c4554
|
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
|
|
@@ -91,13 +91,43 @@ class RDoc::Generator::Markdown
|
|
91
91
|
);
|
92
92
|
SQL
|
93
93
|
|
94
|
+
result = []
|
95
|
+
|
94
96
|
@classes.map do |klass|
|
95
|
-
{
|
97
|
+
result << {
|
96
98
|
name: klass.full_name,
|
97
99
|
type: klass.type.capitalize,
|
98
100
|
path: turn_to_path(klass.full_name)
|
99
101
|
}
|
100
|
-
|
102
|
+
|
103
|
+
klass.method_list.each do |method|
|
104
|
+
next if method.visibility.to_s.eql?("private")
|
105
|
+
|
106
|
+
result << {
|
107
|
+
name: "#{klass.full_name}.#{method.name}",
|
108
|
+
type: "Method",
|
109
|
+
path: turn_to_path(klass.full_name)
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
klass.constants.sort_by { |x| x.name }.each do |const|
|
114
|
+
result << {
|
115
|
+
name: "#{klass.full_name}.#{const.name}",
|
116
|
+
type: "Constant",
|
117
|
+
path: turn_to_path(klass.full_name)
|
118
|
+
}
|
119
|
+
end
|
120
|
+
|
121
|
+
klass.attributes.sort_by { |x| x.name }.each do |attr|
|
122
|
+
result << {
|
123
|
+
name: "#{klass.full_name}.#{attr.name}",
|
124
|
+
type: "Attribute",
|
125
|
+
path: turn_to_path(klass.full_name)
|
126
|
+
}
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
result.each do |rec|
|
101
131
|
db.execute "insert into contentIndex (name, type, path) values (:name, :type, :path)", rec
|
102
132
|
end
|
103
133
|
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.13
|
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
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- lib/rdoc/generator/markdown.rb
|
162
162
|
- lib/rdoc/markdown/version.rb
|
163
163
|
- lib/templates/classfile.md.erb
|
164
|
+
- publish.sh
|
164
165
|
- sig/rdoc/markdown.rbs
|
165
166
|
homepage: https://poshtui.com
|
166
167
|
licenses:
|