olddoc 1.5.1 → 1.6.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: b5ed269def320cfe052cabbe1ccaf952cb67ea35f218f71c697e64602e53160a
4
- data.tar.gz: a08e13570e7b1c29314d9d9d1a84dfef34eaa3b142d770037acc92a6261e2176
3
+ metadata.gz: b153359b84321c4656018665d07338bbac666d12f905c45db9be3fc9c4944fd4
4
+ data.tar.gz: 47a8e3dabb100a59c5f3a3b28e646906ad0fb67467f66a8b71d8d09ed3463d70
5
5
  SHA512:
6
- metadata.gz: 1b8668a99554c443cedf069975c1bcdec7e8ebdc56d5527f799400b93c7e27008d11c007e281fe1d5f638aff19fffbdd0b475130fa3d1b2d28a2b3153cc27b4f
7
- data.tar.gz: 23a4fa35c6a4b1f099917db814312a15af705c9f24fe5211a152ba7b72da6a66ed4111fedc1ed69735d4b564f1f62b5a700c6d9af78cb4ed9e0deaf879a3154c
6
+ metadata.gz: d38527a6d8c1c8919b7c38e91a4aeaab3872d130d464df377a96e6ef0ed159c21c12b5e0cc9621ca2b0e578c7f7ba16df51826e8671988861338d9810f560f6e
7
+ data.tar.gz: a308d13fb8bea2bd1849b357fa776ec834ea2932a0eaddfc1d4ceb8d7f6cc2b27ff022b6ef4f88b76acd4858b75774e969a3f4d7c4b36b7aac358fe9c8892789
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  cgit_url: https://80x24.org/olddoc.git
3
- git_url: git://80x24.org/olddoc.git
3
+ git_url: https://80x24.org/olddoc.git
4
4
  rdoc_url: https://80x24.org/olddoc/
5
5
  ml_url: https://80x24.org/olddoc-public/
6
6
  nntp_url: nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
@@ -8,4 +8,4 @@ merge_html:
8
8
  olddoc_1: Documentation/olddoc.1.html
9
9
  olddoc_5: Documentation/olddoc.5.html
10
10
  public_email: olddoc-public@80x24.org
11
- source_code: git clone git://80x24.org/olddoc
11
+ source_code: git clone https://80x24.org/olddoc.git
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2016 all contributors <olddoc-public@80x24.org>
2
+ # Copyright (C) 2016-2019 all contributors <olddoc-public@80x24.org>
3
3
  # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
4
4
  # frozen_string_literal: true
5
5
  CONSTANT = "Olddoc::VERSION"
6
6
  RVF = "lib/olddoc/version.rb"
7
7
  GVF = "GIT-VERSION-FILE"
8
- DEF_VER = "v1.5.1"
8
+ DEF_VER = "v1.6.0"
9
9
  vn = DEF_VER.dup
10
10
 
11
11
  # First see if there is a version file (included in release tarballs),
data/README CHANGED
@@ -52,7 +52,7 @@ such as pandoc(1). This requries an appropriately configured
52
52
 
53
53
  == Source code
54
54
 
55
- git clone git://80x24.org/olddoc
55
+ git clone https://80x24.org/olddoc.git
56
56
 
57
57
  Please use git-format-patch(1) and git-send-email(1) distributed with
58
58
  the git(7) suite for generating and sending patches. Please format
@@ -73,7 +73,19 @@ class Oldweb
73
73
  noindex = @old_cfg['noindex'] and noindex.each { |k| ni[k] = true }
74
74
  @old_cfg['noindex'] = ni
75
75
 
76
- if cgit_url = @old_cfg['cgit_url']
76
+ cgit_url = @old_cfg['cgit_url']
77
+ source = @old_cfg['source_code'] ||= []
78
+ if source.empty?
79
+ if cgit_url
80
+ source << "git clone #{cgit_url}"
81
+ end
82
+ git_url = @old_cfg['git_url']
83
+ if git_url && git_url != cgit_url
84
+ source << "git clone #{git_url}"
85
+ end
86
+ end
87
+
88
+ if cgit_url
77
89
  cgit_url += '/tree/%s' # path name
78
90
  tag = @git_tag and cgit_url << "id=#{URI.escape(tag)}"
79
91
  cgit_url << '#n%d' # lineno
@@ -269,7 +281,11 @@ class Oldweb
269
281
  erbout = "_erbout_#{file_var}"
270
282
  end
271
283
 
272
- template = klass.new(template, nil, '<>', erbout)
284
+ if ERB.instance_method(:initialize).parameters.assoc(:key)
285
+ template = klass.new(template, trim_mode: '<>', eoutvar: erbout)
286
+ else
287
+ template = klass.new(template, nil, '<>', erbout)
288
+ end
273
289
  @template_cache[file] = template
274
290
  end
275
291
 
@@ -22,8 +22,11 @@ href="mailto:<%= private_email %>"><%= private_email %></a><%
22
22
  end
23
23
 
24
24
  if url_or_cmd = source_code.shift
25
+ url_or_cmd = url_or_cmd.sub(%r{\b(https?://\S+)}, "<a\nhref='\\1'>\\1</a>")
25
26
  %>
26
27
  source code: <%= url_or_cmd %>
27
- <% source_code.each do |x| %><%= "\t#{x}" %><% end
28
+ <% source_code.each do |x| %><%=
29
+ %Q{\t#{x.sub(%r{\b(https?://\S+)}, %Q{<a\nhref='\\1'>\\1</a>})}}
30
+ %><% end
28
31
  end
29
32
  %></pre><% end %>
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.5.1
4
+ version: 1.6.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-12-15 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -104,8 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.7.3
107
+ rubygems_version: 3.0.1
109
108
  signing_key:
110
109
  specification_version: 4
111
110
  summary: old-fashioned Ruby documentation generator