olddoc 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4378b26df172806c7c5ea499ed5250d8e3f2e8147ff3827fcc23cdfc3ef63ff5
4
- data.tar.gz: 3e35631b9f3624335d0d980573957f412ceb579c08d14e2c5d63a1efa841b38b
3
+ metadata.gz: 1400bf9d3e94d012404961bf1f665ba6006eb0edc8bdc5e55c178ef068893828
4
+ data.tar.gz: a3c8a0d8e9642af7c00f92592c5d61e52a430a321b5e26aac604fac1f9b05b40
5
5
  SHA512:
6
- metadata.gz: 99dad6459056957449f10a32f353da293f28ba92045eb74fc117f0517e88ea687b819e6a014c68fff13d3dc56097dfb1bda5d1969652635fc5ecee0765776f2e
7
- data.tar.gz: 127c6789a525ba7d8a171a71fe58b8f0ef7356cc47c05c455a103ff433b506e3125405d6918258a8db6c8d52f40d244e2929b97cf3cac08cbe1df6ab5b426a9e
6
+ metadata.gz: a48ad6a40397a4fa28eccd7c1346f7eb65d8625e73c2be73585226fe7c6acf858e6175043fe93021f05bf8a2ff3b57cd3a0c9e9db584cc046bb680b64f41ba88
7
+ data.tar.gz: 10f049dc25df53ef808a9b8afe74f80889f61f116938c0573dab427299c622608e7b7aed775ad9e530421cc465647effe39d41f4fb03658e9a2759cbaf9e32b4
@@ -1,9 +1,18 @@
1
1
  ---
2
- cgit_url: https://80x24.org/olddoc.git
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: https://80x24.org/olddoc-public/
6
- nntp_url: nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
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
@@ -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
@@ -5,7 +5,7 @@
5
5
  CONSTANT = "Olddoc::VERSION"
6
6
  RVF = "lib/olddoc/version.rb"
7
7
  GVF = "GIT-VERSION-FILE"
8
- DEF_VER = "v1.8.0"
8
+ DEF_VER = "v1.9.0"
9
9
  vn = DEF_VER.dup
10
10
 
11
11
  # First see if there is a version file (included in release tarballs),
@@ -9,7 +9,7 @@ module Olddoc::History # :nodoc:
9
9
 
10
10
  # returns a cgit URI for a given +tag_name+
11
11
  def tag_uri(tag_name)
12
- uri = @cgit_uri.dup
12
+ uri = @cgit_uri[0].dup
13
13
  uri.path += "/tag/"
14
14
  uri.query = "id=#{tag_name}"
15
15
  uri
@@ -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\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)?
@@ -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 = ''
@@ -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(rdoc_url)
16
- @cgit_uri = URI.parse(cgit_url)
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
 
@@ -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 += '/tree/%s' # path name
90
- tag = @git_tag and cgit_url << "id=#{CGI.escape(tag)}"
91
- cgit_url << '#n%d' # lineno
92
- @old_vcs_url = cgit_url
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
@@ -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['ml_url']) + Array(@old_cfg['nntp_url'])
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.8.0
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: 2019-12-15 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc