olddoc 1.8.0 → 1.9.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 +12 -3
- data/Documentation/olddoc.5.pod +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/lib/olddoc/history.rb +1 -1
- data/lib/olddoc/man2html.rb +1 -1
- data/lib/olddoc/news_atom.rb +2 -2
- data/lib/olddoc/prepare.rb +2 -2
- data/lib/oldweb.rb +10 -10
- data/lib/oldweb/_tail.rhtml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1400bf9d3e94d012404961bf1f665ba6006eb0edc8bdc5e55c178ef068893828
|
4
|
+
data.tar.gz: a3c8a0d8e9642af7c00f92592c5d61e52a430a321b5e26aac604fac1f9b05b40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a48ad6a40397a4fa28eccd7c1346f7eb65d8625e73c2be73585226fe7c6acf858e6175043fe93021f05bf8a2ff3b57cd3a0c9e9db584cc046bb680b64f41ba88
|
7
|
+
data.tar.gz: 10f049dc25df53ef808a9b8afe74f80889f61f116938c0573dab427299c622608e7b7aed775ad9e530421cc465647effe39d41f4fb03658e9a2759cbaf9e32b4
|
data/.olddoc.yml
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
---
|
2
|
-
cgit_url:
|
2
|
+
cgit_url:
|
3
|
+
- https://80x24.org/olddoc.git
|
4
|
+
- https://ou63pmih66umazou.onion/olddoc.git
|
3
5
|
git_url: https://80x24.org/olddoc.git
|
4
6
|
rdoc_url: https://80x24.org/olddoc/
|
5
|
-
ml_url:
|
6
|
-
|
7
|
+
ml_url:
|
8
|
+
- https://80x24.org/olddoc-public/
|
9
|
+
- http://ou63pmih66umazou.onion/olddoc-public/
|
10
|
+
nntp_url:
|
11
|
+
- nntps://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
|
12
|
+
- nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.olddoc
|
13
|
+
imap_url:
|
14
|
+
- imaps://news.public-inbox.org/inbox.comp.lang.ruby.olddoc.0
|
15
|
+
- imap://ou63pmih66umazou.onion/inbox.comp.lang.ruby.olddoc.0
|
7
16
|
merge_html:
|
8
17
|
olddoc_1: Documentation/olddoc.1.html
|
9
18
|
olddoc_5: Documentation/olddoc.5.html
|
data/Documentation/olddoc.5.pod
CHANGED
@@ -13,7 +13,7 @@ configuration to deal with.
|
|
13
13
|
|
14
14
|
=head1 KEYS
|
15
15
|
|
16
|
-
`rdoc_url`, `cgit_url`, and `nntp_url` should be obvious
|
16
|
+
`rdoc_url`, `cgit_url`, `imap_url`, and `nntp_url` should be obvious
|
17
17
|
|
18
18
|
`merge_html` is a key-value mapping of (empty) RDoc source files to an
|
19
19
|
HTML file that will be merged into RDoc after-the-fact. It is useful
|
data/GIT-VERSION-GEN
CHANGED
data/lib/olddoc/history.rb
CHANGED
data/lib/olddoc/man2html.rb
CHANGED
@@ -9,7 +9,7 @@ require 'optparse'
|
|
9
9
|
|
10
10
|
class Olddoc::Man2HTML # :nodoc:
|
11
11
|
SALT = rand
|
12
|
-
LINK_RE = %r{([\('!])?\b((?:ftps?|https?|nntps?|gopher)://
|
12
|
+
LINK_RE = %r{([\('!])?\b((?:ftps?|https?|nntps?|gopher|imaps?)://
|
13
13
|
[\@:\w\.-]+(?:/
|
14
14
|
(?:[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]*)
|
15
15
|
(?:\?[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)?
|
data/lib/olddoc/news_atom.rb
CHANGED
@@ -32,9 +32,9 @@ module Olddoc::NewsAtom # :nodoc:
|
|
32
32
|
def news_atom_xml
|
33
33
|
project_name, short_desc, _ = readme_metadata
|
34
34
|
new_tags = tags[0,10]
|
35
|
-
atom_uri = @rdoc_uri.dup
|
35
|
+
atom_uri = @rdoc_uri[0].dup
|
36
36
|
atom_uri.path += "NEWS.atom.xml"
|
37
|
-
news_uri = @rdoc_uri.dup
|
37
|
+
news_uri = @rdoc_uri[0].dup
|
38
38
|
news_uri.path += "NEWS.html"
|
39
39
|
|
40
40
|
dst = ''
|
data/lib/olddoc/prepare.rb
CHANGED
@@ -12,8 +12,8 @@ class Olddoc::Prepare # :nodoc:
|
|
12
12
|
cgit_url = opts['cgit_url']
|
13
13
|
rdoc_url && cgit_url or
|
14
14
|
abort "rdoc_url and cgit_url required in .olddoc.yml for `prepare'"
|
15
|
-
@rdoc_uri = URI.parse(
|
16
|
-
@cgit_uri = URI.parse(
|
15
|
+
@rdoc_uri = Array(rdoc_url).map { |u| URI.parse(u) }
|
16
|
+
@cgit_uri = Array(cgit_url).map { |u| URI.parse(u) }
|
17
17
|
@name, @short_desc = readme_metadata
|
18
18
|
end
|
19
19
|
|
data/lib/oldweb.rb
CHANGED
@@ -73,23 +73,23 @@ class Oldweb
|
|
73
73
|
noindex = @old_cfg['noindex'] and noindex.each { |k| ni[k] = true }
|
74
74
|
@old_cfg['noindex'] = ni
|
75
75
|
|
76
|
-
cgit_url = @old_cfg['cgit_url']
|
76
|
+
cgit_url = Array(@old_cfg['cgit_url'])
|
77
77
|
source = @old_cfg['source_code'] ||= []
|
78
78
|
if source.empty?
|
79
|
-
if cgit_url
|
80
|
-
source << "git clone #{cgit_url}"
|
81
|
-
end
|
79
|
+
source << "git clone #{cgit_url[0]}" if cgit_url[0]
|
82
80
|
git_url = @old_cfg['git_url']
|
83
|
-
if git_url && git_url != cgit_url
|
81
|
+
if git_url && git_url != cgit_url[0]
|
84
82
|
source << "git clone #{git_url}"
|
85
83
|
end
|
86
84
|
end
|
87
85
|
|
88
|
-
if cgit_url
|
89
|
-
cgit_url
|
90
|
-
|
91
|
-
|
92
|
-
|
86
|
+
if cgit_url[0]
|
87
|
+
cgit_url.each do |u|
|
88
|
+
u += '/tree/%s' # path name
|
89
|
+
tag = @git_tag and u << "id=#{CGI.escape(tag)}"
|
90
|
+
u << '#n%d' # lineno
|
91
|
+
end
|
92
|
+
@old_vcs_url = cgit_url[0]
|
93
93
|
end
|
94
94
|
@oldweb_style = nil # used by dark216
|
95
95
|
end
|
data/lib/oldweb/_tail.rhtml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
public_email = @old_cfg['public_email']
|
3
3
|
private_email = @old_cfg['private_email']
|
4
4
|
source_code = Array(@old_cfg['source_code']).dup
|
5
|
-
archive_urls = Array(@old_cfg
|
5
|
+
archive_urls = Array(@old_cfg.values_at(*%W(ml_url nntp_url imap_url))).flatten
|
6
6
|
if url = archive_urls.shift %><hr /><pre>
|
7
7
|
mail archives: <a
|
8
8
|
href="<%= url %>"><%= url %></a><%
|
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.9.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:
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|