rdoc_link_checker 0.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 +7 -0
- data/.gitignore +2 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +21 -0
- data/README.md +2 -0
- data/Rakefile +12 -0
- data/bin/rdoc_link_checker +41 -0
- data/lib/rdoc_link_checker/version.rb +5 -0
- data/lib/rdoc_link_checker.rb +13 -0
- data/rdoc_link_checker.gemspec +34 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b94d42c261eb84ddd04c063fd2adb05dd3a84c0c1a5281540545d540d87e27a2
|
4
|
+
data.tar.gz: c4df711a4faabaae888035a39751cfeb6d1415543e6e7193b4684d1ed540ee39
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5cf3da9b90b3755982225d76dd2d09362244e52757cfbe525160ec466434b107219ba5163e37e2f929ee3844eae8745623cb5140fe7c43b31d3368832e51674e
|
7
|
+
data.tar.gz: 648016fdcb4e10796a740d06a170b47b43211f460dfddf114973eaa9f0a3612a376fa6df93d1c608f20cd23f44cf6c2904b05b0e2d5727c098335197d38206be
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2023 TODO: Write your name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'getoptlong'
|
4
|
+
require_relative '../lib/rdoc_link_checker'
|
5
|
+
|
6
|
+
options = GetoptLong.new(
|
7
|
+
['--html_dirpath', '-d', GetoptLong::REQUIRED_ARGUMENT],
|
8
|
+
['--version', '-v', GetoptLong::NO_ARGUMENT],
|
9
|
+
['--help', '-h', GetoptLong::NO_ARGUMENT]
|
10
|
+
)
|
11
|
+
|
12
|
+
message = nil
|
13
|
+
case ARGV.size
|
14
|
+
when 0
|
15
|
+
message = "Expected one argument; got none."
|
16
|
+
when 1
|
17
|
+
# Okay.
|
18
|
+
else
|
19
|
+
message = "Expected one argument, not #{ARGV.inspect}."
|
20
|
+
end
|
21
|
+
raise ArgumentError.new(message) if message
|
22
|
+
|
23
|
+
def help
|
24
|
+
puts 'Boo!'
|
25
|
+
end
|
26
|
+
|
27
|
+
def version
|
28
|
+
puts RDocLinkChecker::VERSION
|
29
|
+
end
|
30
|
+
|
31
|
+
options.each do |option, argument|
|
32
|
+
case option
|
33
|
+
when '--help'
|
34
|
+
help
|
35
|
+
when '--version'
|
36
|
+
version
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
html_dirpath = ARGV[0]
|
41
|
+
RDocLinkChecker.new(html_dirpath)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'rdoc_link_checker/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'rdoc_link_checker'
|
7
|
+
spec.version = RDocLinkChecker::VERSION
|
8
|
+
spec.authors = ['burdettelamar']
|
9
|
+
spec.email = ['burdettelamar@yahoo.com']
|
10
|
+
spec.summary = 'Tool to check links in RDoc-generated HTML files.'
|
11
|
+
spec.homepage = 'https://github.com/BurdetteLamar/rdoc_link_checker'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
|
14
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
15
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
16
|
+
# if spec.respond_to?(:metadata)
|
17
|
+
# spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
18
|
+
# spec.metadata['allowed_push_host'] = "http://rubygems.org"
|
19
|
+
# else
|
20
|
+
# raise 'RubyGems 2.0 or newer is required to protect against ' \
|
21
|
+
# 'public gem pushes.'
|
22
|
+
# end
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
f.match(%r{^(test)/})
|
26
|
+
end
|
27
|
+
spec.bindir = 'bin'
|
28
|
+
spec.executables = ['rdoc_link_checker']
|
29
|
+
spec.require_paths = ['lib']
|
30
|
+
|
31
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
32
|
+
spec.add_development_dependency 'rake', '~> 12.3.2'
|
33
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rdoc_link_checker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- burdettelamar
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 12.3.2
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 12.3.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- burdettelamar@yahoo.com
|
58
|
+
executables:
|
59
|
+
- rdoc_link_checker
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/rdoc_link_checker
|
69
|
+
- lib/rdoc_link_checker.rb
|
70
|
+
- lib/rdoc_link_checker/version.rb
|
71
|
+
- rdoc_link_checker.gemspec
|
72
|
+
homepage: https://github.com/BurdetteLamar/rdoc_link_checker
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubygems_version: 3.4.10
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Tool to check links in RDoc-generated HTML files.
|
95
|
+
test_files: []
|