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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8541f95990a90cf56b56fc4ac7ddc00ee027327023a127063c30cb1b87449b6
4
- data.tar.gz: b00c270ed9c64a36120900e0bfb8eb794afda0ab1b28cdb4cbc51c016b9c4999
3
+ metadata.gz: a38c23f0593e099cf817af08dbf8c2f73573462135c99eafae1c8d060bffbc26
4
+ data.tar.gz: c209b03ef83bc8d936d5638a775c15b8c1ff0626ec94bbdd138abc2596e73999
5
5
  SHA512:
6
- metadata.gz: 58ba2c78a1f23cea5738a2e65df6468a4c70da00fb8654affd479cb2ed244930fa63c56d91451d83c0475c1c31102319af9970f3d9d7f000ea04bfecd146616a
7
- data.tar.gz: 5960431dc78731a5b65b57a004b6982e7eac883ed1bc2306e92bf34f3948bd3bf33494e3daac4dab1685a1d19e6b8831993247cfd1d91ee8ae0852c483c79453
6
+ metadata.gz: a16a238ac2090d2d60a3c998bff28a9787a5d123fe5215e813b01f410433f8ac5264be02cb5677248c239e5d72bc26613c5a9d6b837eae90fe3d232b4eb25bda
7
+ data.tar.gz: ed04a374783a90b072f757d39439e0749d52bac3e6ee6d13af0b90408746f96c2d3257e50a72452ad749689bcd3dbe767ac509bf6bc1b597c7ad7771810c4554
data/docs/example.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  ##
2
- # === RDoc::Generator::SolarFish example.
2
+ # === RDoc::Generator::Markdown example.
3
3
  #
4
- # This example employs variois RDoc features to demonstrate
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/rbdoc/rdoc-generator-solarfish)
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
- end.each do |rec|
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rdoc
4
4
  module Markdown
5
- VERSION = "0.1.12"
5
+ VERSION = "0.1.13"
6
6
  end
7
7
  end
data/publish.sh ADDED
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ gem build rdoc-markdown.gemspec
4
+ GEM=$(gum choose $(ls *.gem))
5
+
6
+ gum confirm "Publish $GEM?" && gem push $GEM
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.12
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-19 00:00:00.000000000 Z
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: