olddoc 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/.olddoc.yml +3 -3
  3. data/GIT-VERSION-GEN +1 -1
  4. data/README +3 -2
  5. data/lib/oldweb.rb +11 -9
  6. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23c5d6ab7ac1202af4b9831610a7e49acf23e633
4
- data.tar.gz: cf125761aea6c4860794a68f9c63c8039532f403
3
+ metadata.gz: 5614f3a82bc35af87869f15255c7cc86c0d443fa
4
+ data.tar.gz: 43441e8910762cc4f34aeeecd760082c02ad4edb
5
5
  SHA512:
6
- metadata.gz: 70640d38fd02f1df57e340d0535682462a71c1d409618051cf56118eb9bc5a827591d753d3793d89ce3b27b0b54b1b591ed64664c4abf0f645ce667d2ea7e9ff
7
- data.tar.gz: 2db66bd166e5a4189803c09cfd72c3254b57bd42ff597010916acbcf1ef04933a9e01f1535e1f8887b1fad9165ed6cd98f562d2774030378e9ab74518ee844eb
6
+ metadata.gz: 435eaf60d26a2b554525bd35f966e64b4bff0a62ee8f8841179adc2462cd283233435d0bcae401b8f47726d3ee7ab907557d69b87c6c661478bf29bede7d6f82
7
+ data.tar.gz: 6a22ddf07bd04d73610955f960a355108beecc64c2d28e6f5c774575742ecc8d93a8ab8eec88d91ba4ec03348d932c2d7528275ba80ce60e79a3d35605aa027a
@@ -1,8 +1,8 @@
1
1
  ---
2
- cgit_url: http://bogomips.org/olddoc.git
2
+ cgit_url: https://80x24.org/olddoc.git
3
3
  git_url: git://80x24.org/olddoc.git
4
- rdoc_url: http://80x24.org/olddoc/
5
- ml_url: http://80x24.org/olddoc-public/
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
@@ -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.4.0"
8
+ DEF_VER = "v1.5.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
@@ -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 http://80x24.org/olddoc-public/
71
- No subscription is necessary to post to the mailing list.
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
 
@@ -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.map(&:method_list).flatten.sort
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>#{CGI.escapeHTML(verbatim.text.rstrip)}</pre>\n"
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
- # :stopdoc:
304
- class RDoc::Markup::ToHtml # :nodoc:
305
- remove_method :accept_heading
306
- remove_method :accept_verbatim
307
- include Oldweb::LessHtml
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.0
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-01-22 00:00:00.000000000 Z
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: http://80x24.org/olddoc/
88
+ homepage: https://80x24.org/olddoc/
89
89
  licenses:
90
90
  - GPL-3.0+
91
91
  metadata: {}