webri 1.0.5 → 2.1.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/README.md +1 -1
- data/bin/scrape +12 -0
- data/data/3.2.json +30958 -0
- data/data/3.4.json +33900 -0
- data/data/4.0.json +28533 -0
- data/exe/webri +80 -0
- data/lib/scraper.rb +285 -0
- data/lib/webri/version.rb +1 -1
- data/lib/webri.rb +287 -372
- metadata +8 -3
- data/bin/webri +0 -65
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BurdetteLamar
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
@@ -22,7 +22,12 @@ files:
|
|
|
22
22
|
- LICENSE.txt
|
|
23
23
|
- README.md
|
|
24
24
|
- Rakefile
|
|
25
|
-
- bin/
|
|
25
|
+
- bin/scrape
|
|
26
|
+
- data/3.2.json
|
|
27
|
+
- data/3.4.json
|
|
28
|
+
- data/4.0.json
|
|
29
|
+
- exe/webri
|
|
30
|
+
- lib/scraper.rb
|
|
26
31
|
- lib/webri.rb
|
|
27
32
|
- lib/webri/version.rb
|
|
28
33
|
homepage: https://github.com/BurdetteLamar/webri
|
data/bin/webri
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# A console application to display Ruby HTML documentation.
|
|
4
|
-
|
|
5
|
-
require 'optparse'
|
|
6
|
-
require_relative '../lib/webri/version'
|
|
7
|
-
require_relative '../lib/webri'
|
|
8
|
-
|
|
9
|
-
options = {}
|
|
10
|
-
|
|
11
|
-
parser = OptionParser.new
|
|
12
|
-
|
|
13
|
-
parser.version = WebRI::VERSION
|
|
14
|
-
parser.banner = <<-BANNER
|
|
15
|
-
=====================================================
|
|
16
|
-
17-Jul-2026
|
|
17
|
-
|
|
18
|
-
Webri was broken by the Ruby documentation's change
|
|
19
|
-
from Darkfish format to Aliki format,
|
|
20
|
-
and by the removal of CGI from the Ruby core.
|
|
21
|
-
|
|
22
|
-
Expect fixes within this month.
|
|
23
|
-
=====================================================
|
|
24
|
-
|
|
25
|
-
webri is a console application for displaying Ruby online HTML documentation.
|
|
26
|
-
Documentation pages are opened in the default web browser.
|
|
27
|
-
|
|
28
|
-
Usage: #{parser.program_name} [options]
|
|
29
|
-
|
|
30
|
-
For more information, see https://github.com/BurdetteLamar/webri/blob/main/README.md.
|
|
31
|
-
|
|
32
|
-
BANNER
|
|
33
|
-
|
|
34
|
-
parser.separator('Options:')
|
|
35
|
-
parser.on('-i', '--info', 'Prints information about webri.') do
|
|
36
|
-
options[:info] = true
|
|
37
|
-
end
|
|
38
|
-
parser.on('-r=RELEASE', '--release=RELEASE', 'Sets the Ruby release to document.') do |value|
|
|
39
|
-
options[:release] = value
|
|
40
|
-
end
|
|
41
|
-
parser.on('--noreline', 'Does not use Reline (helps testing).') do |value|
|
|
42
|
-
options[:noreline] = true
|
|
43
|
-
end
|
|
44
|
-
parser.on('-n', '--noop', 'Does not actually open web pages.') do |value|
|
|
45
|
-
options[:noop] = true
|
|
46
|
-
end
|
|
47
|
-
parser.on('-h', '--help', 'Prints this help.') do
|
|
48
|
-
puts parser
|
|
49
|
-
exit
|
|
50
|
-
end
|
|
51
|
-
parser.on('-v', '--version', 'Prints the version of webri.') do
|
|
52
|
-
puts WebRI::VERSION
|
|
53
|
-
exit
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
parser.parse!
|
|
57
|
-
|
|
58
|
-
unless ARGV.empty?
|
|
59
|
-
$stderr.puts "Argument error: No arguments allowed."
|
|
60
|
-
$stderr.puts ''
|
|
61
|
-
$stdout.puts parser.help
|
|
62
|
-
exit
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
WebRI.new(options)
|