olddoc 1.4.0 → 1.5.0
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/.olddoc.yml +3 -3
- data/GIT-VERSION-GEN +1 -1
- data/README +3 -2
- data/lib/oldweb.rb +11 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5614f3a82bc35af87869f15255c7cc86c0d443fa
|
4
|
+
data.tar.gz: 43441e8910762cc4f34aeeecd760082c02ad4edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 435eaf60d26a2b554525bd35f966e64b4bff0a62ee8f8841179adc2462cd283233435d0bcae401b8f47726d3ee7ab907557d69b87c6c661478bf29bede7d6f82
|
7
|
+
data.tar.gz: 6a22ddf07bd04d73610955f960a355108beecc64c2d28e6f5c774575742ecc8d93a8ab8eec88d91ba4ec03348d932c2d7528275ba80ce60e79a3d35605aa027a
|
data/.olddoc.yml
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
|
-
cgit_url:
|
2
|
+
cgit_url: https://80x24.org/olddoc.git
|
3
3
|
git_url: git://80x24.org/olddoc.git
|
4
|
-
rdoc_url:
|
5
|
-
ml_url:
|
4
|
+
rdoc_url: https://80x24.org/olddoc/
|
5
|
+
ml_url: https://80x24.org/olddoc-public/
|
6
6
|
nntp_url: nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
|
7
7
|
merge_html:
|
8
8
|
olddoc_1: Documentation/olddoc.1.html
|
data/GIT-VERSION-GEN
CHANGED
data/README
CHANGED
@@ -67,8 +67,9 @@ appreciated.
|
|
67
67
|
|
68
68
|
Please send plain-text mail to the list at <olddoc-public@80x24.org>
|
69
69
|
HTML will not be read. olddoc is for GUI-phobes, by GUI-phobes.
|
70
|
-
Mailing list archives available at
|
71
|
-
|
70
|
+
Mailing list archives available at https://80x24.org/olddoc-public/
|
71
|
+
and nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
|
72
|
+
No subscription will ever be necessary to post to the mailing list.
|
72
73
|
|
73
74
|
== License
|
74
75
|
|
data/lib/oldweb.rb
CHANGED
@@ -5,7 +5,6 @@ require 'rdoc'
|
|
5
5
|
require 'erb'
|
6
6
|
require 'pathname'
|
7
7
|
require 'yaml'
|
8
|
-
require 'cgi'
|
9
8
|
require 'uri'
|
10
9
|
|
11
10
|
# oldweb is an \RDoc template and not intended as a programming API.
|
@@ -31,6 +30,8 @@ class Oldweb
|
|
31
30
|
RDoc::Text::TO_HTML_CHARACTERS[Encoding::UTF_8] =
|
32
31
|
RDoc::Text::TO_HTML_CHARACTERS[Encoding::ASCII]
|
33
32
|
|
33
|
+
less_html!
|
34
|
+
|
34
35
|
@store = store
|
35
36
|
@options = options
|
36
37
|
@base_dir = Pathname.pwd.expand_path
|
@@ -200,7 +201,7 @@ class Oldweb
|
|
200
201
|
return unless @store
|
201
202
|
@classes = @store.all_classes_and_modules.sort
|
202
203
|
@files = @store.all_files.sort
|
203
|
-
@methods = @classes.
|
204
|
+
@methods = @classes.flat_map(&:method_list).sort
|
204
205
|
@modsort = @classes.select(&:display?).sort
|
205
206
|
end
|
206
207
|
|
@@ -286,7 +287,7 @@ class Oldweb
|
|
286
287
|
# reach into RDoc internals to generate less HTML
|
287
288
|
module LessHtml # :nodoc:
|
288
289
|
def accept_verbatim(verbatim)
|
289
|
-
@res << "\n<pre>#{
|
290
|
+
@res << "\n<pre>#{verbatim.text.rstrip.encode(xml: :text)}</pre>\n"
|
290
291
|
end
|
291
292
|
|
292
293
|
def accept_heading(heading)
|
@@ -298,12 +299,13 @@ class Oldweb
|
|
298
299
|
@res << "</h#{level}>"
|
299
300
|
end
|
300
301
|
end
|
301
|
-
end
|
302
302
|
|
303
|
-
# :
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
303
|
+
def less_html! # :nodoc:
|
304
|
+
klass = RDoc::Markup::ToHtml
|
305
|
+
return if klass.include?(Oldweb::LessHtml)
|
306
|
+
klass.__send__(:remove_method, :accept_heading)
|
307
|
+
klass.__send__(:remove_method, :accept_verbatim)
|
308
|
+
klass.__send__(:include, Oldweb::LessHtml)
|
309
|
+
end
|
308
310
|
end
|
309
311
|
# :startdoc:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: olddoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- olddoc hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -85,7 +85,7 @@ files:
|
|
85
85
|
- man/olddoc.1
|
86
86
|
- man/olddoc.5
|
87
87
|
- olddoc.gemspec
|
88
|
-
homepage:
|
88
|
+
homepage: https://80x24.org/olddoc/
|
89
89
|
licenses:
|
90
90
|
- GPL-3.0+
|
91
91
|
metadata: {}
|