ruby-link-checker 0.4.0 → 0.6.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/CHANGELOG.md +34 -0
- data/LICENSE.md +0 -0
- data/README.md +227 -19
- data/UPGRADING.md +46 -0
- data/lib/ruby-link-checker/async/http/checker.rb +46 -7
- data/lib/ruby-link-checker/async/http/config.rb +4 -0
- data/lib/ruby-link-checker/async/http/result.rb +5 -1
- data/lib/ruby-link-checker/async/http.rb +0 -0
- data/lib/ruby-link-checker/cache.rb +170 -0
- data/lib/ruby-link-checker/callbacks.rb +0 -0
- data/lib/ruby-link-checker/checker.rb +200 -5
- data/lib/ruby-link-checker/config.rb +141 -0
- data/lib/ruby-link-checker/errors/base_error.rb +0 -0
- data/lib/ruby-link-checker/errors/connection_error.rb +23 -0
- data/lib/ruby-link-checker/errors/redirect_limit_error.rb +15 -0
- data/lib/ruby-link-checker/errors/redirect_loop_error.rb +0 -0
- data/lib/ruby-link-checker/errors.rb +2 -0
- data/lib/ruby-link-checker/logger.rb +0 -0
- data/lib/ruby-link-checker/net/http/checker.rb +5 -3
- data/lib/ruby-link-checker/net/http/config.rb +0 -0
- data/lib/ruby-link-checker/net/http/result.rb +5 -1
- data/lib/ruby-link-checker/net/http.rb +0 -0
- data/lib/ruby-link-checker/redirect.rb +11 -0
- data/lib/ruby-link-checker/result.rb +120 -0
- data/lib/ruby-link-checker/task.rb +2 -0
- data/lib/ruby-link-checker/tasks.rb +53 -7
- data/lib/ruby-link-checker/typhoeus/hydra/checker.rb +79 -9
- data/lib/ruby-link-checker/typhoeus/hydra/config.rb +0 -0
- data/lib/ruby-link-checker/typhoeus/hydra/result.rb +5 -1
- data/lib/ruby-link-checker/typhoeus/hydra.rb +0 -0
- data/lib/ruby-link-checker/version.rb +1 -1
- data/lib/ruby-link-checker.rb +2 -0
- data/lib/ruby_link_checker.rb +0 -0
- metadata +26 -72
- data/CONTRIBUTING.md +0 -125
- data/Dangerfile +0 -6
- data/Gemfile +0 -24
- data/Gemfile.lock +0 -334
- data/RELEASING.md +0 -60
- data/Rakefile +0 -18
- data/benchmarks/check.rb +0 -38
- data/benchmarks/data/opensearch.org/links.txt +0 -4270
- data/benchmarks/data/opensearch.org/small.txt +0 -100
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_both.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
- data/coverage/assets/0.13.2/application.css +0 -1
- data/coverage/assets/0.13.2/application.js +0 -7
- data/coverage/assets/0.13.2/colorbox/border.png +0 -0
- data/coverage/assets/0.13.2/colorbox/controls.png +0 -0
- data/coverage/assets/0.13.2/colorbox/loading.gif +0 -0
- data/coverage/assets/0.13.2/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.13.2/favicon_green.png +0 -0
- data/coverage/assets/0.13.2/favicon_red.png +0 -0
- data/coverage/assets/0.13.2/favicon_yellow.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.13.2/loading.gif +0 -0
- data/coverage/assets/0.13.2/magnify.png +0 -0
- data/coverage/index.html +0 -10746
- data/ruby-link-checker.gemspec +0 -22
- data/spec/fixtures/200.yml +0 -65
- data/spec/fixtures/301_200.yml +0 -102
- data/spec/fixtures/301_301.yml +0 -114
- data/spec/fixtures/301_400_301_200.yml +0 -185
- data/spec/fixtures/301_403.yml +0 -78
- data/spec/fixtures/308_429.yml +0 -108
- data/spec/fixtures/404.yml +0 -57
- data/spec/fixtures/404_200.yml +0 -89
- data/spec/fixtures/404_404.yml +0 -81
- data/spec/fixtures/429_200.yml +0 -135
- data/spec/fixtures/429_429_200.yml +0 -201
- data/spec/ruby-link-checker/async/http/checker_spec.rb +0 -99
- data/spec/ruby-link-checker/callbacks_spec.rb +0 -76
- data/spec/ruby-link-checker/checker_spec.rb +0 -10
- data/spec/ruby-link-checker/config_spec.rb +0 -39
- data/spec/ruby-link-checker/errors/redirect_loop_error_spec.rb +0 -18
- data/spec/ruby-link-checker/net/http/checker_spec.rb +0 -78
- data/spec/ruby-link-checker/result_error_spec.rb +0 -17
- data/spec/ruby-link-checker/result_spec.rb +0 -41
- data/spec/ruby-link-checker/task_spec.rb +0 -20
- data/spec/ruby-link-checker/tasks_spec.rb +0 -47
- data/spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb +0 -93
- data/spec/ruby-link-checker/version_spec.rb +0 -9
- data/spec/spec_helper.rb +0 -19
- data/spec/support/config.rb +0 -8
- data/spec/support/link_checker.rb +0 -369
- data/spec/support/vcr.rb +0 -13
- data/spec/support/with_result.rb +0 -15
- data/spec/support/with_url.rb +0 -14
data/CONTRIBUTING.md
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# Contributing to ruby-link-checker
|
|
2
|
-
|
|
3
|
-
This project is work of [many contributors](https://github.com/dblock/ruby-link-checker/graphs/contributors).
|
|
4
|
-
|
|
5
|
-
You're encouraged to submit [pull requests](https://github.com/dblock/ruby-link-checker/pulls), [propose features and discuss issues](https://github.com/dblock/ruby-link-checker/issues).
|
|
6
|
-
|
|
7
|
-
In the examples below, substitute your Github username for `contributor` in URLs.
|
|
8
|
-
|
|
9
|
-
### Fork the Project
|
|
10
|
-
|
|
11
|
-
Fork the [project on Github](https://github.com/dblock/ruby-link-checker) and check out your copy.
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
git clone https://github.com/contributor/ruby-link-checker.git
|
|
15
|
-
cd ruby-link-checker
|
|
16
|
-
git remote add upstream https://github.com/dblock/ruby-link-checker.git
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Bundle Install and Test
|
|
20
|
-
|
|
21
|
-
Ensure that you can build the project and run tests.
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
bundle install
|
|
25
|
-
bundle exec rake
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Contribute Code
|
|
29
|
-
|
|
30
|
-
### Create a Topic Branch
|
|
31
|
-
|
|
32
|
-
Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
git checkout main
|
|
36
|
-
git pull upstream main
|
|
37
|
-
git checkout -b my-feature-branch
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Write Tests
|
|
41
|
-
|
|
42
|
-
Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build. Add tests to [spec](spec).
|
|
43
|
-
|
|
44
|
-
We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
|
|
45
|
-
|
|
46
|
-
### Write Code
|
|
47
|
-
|
|
48
|
-
Implement your feature or bug fix.
|
|
49
|
-
|
|
50
|
-
Ruby style is enforced with [Rubocop](https://github.com/bbatsov/rubocop). Run `bundle exec rubocop` and fix any style issues highlighted, auto-correct issues when possible with `bundle exec rubocop -a`. To silence generally ingored issues, including line lengths or code complexity metrics, run `bundle exec rubocop --auto-gen-config`.
|
|
51
|
-
|
|
52
|
-
Make sure that `bundle exec rake` completes without errors.
|
|
53
|
-
|
|
54
|
-
### Write Documentation
|
|
55
|
-
|
|
56
|
-
Document any external behavior in the [README](README.md).
|
|
57
|
-
|
|
58
|
-
### Update Changelog
|
|
59
|
-
|
|
60
|
-
Add a line to [CHANGELOG](CHANGELOG.md) under *Next Release*. Don't remove *Your contribution here*.
|
|
61
|
-
|
|
62
|
-
Make it look like every other line, including a link to the issue being fixed, your name and link to your Github account.
|
|
63
|
-
|
|
64
|
-
### Commit Changes
|
|
65
|
-
|
|
66
|
-
Make sure git knows your name and email address:
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
git config --global user.name "Your Name"
|
|
70
|
-
git config --global user.email "contributor@example.com"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Writing good commit logs is important. A commit log should describe what changed and why.
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
git add ...
|
|
77
|
-
git commit
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Push
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
git push origin my-feature-branch
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Make a Pull Request
|
|
87
|
-
|
|
88
|
-
Go to https://github.com/contributor/ruby-link-checker and select your feature branch. Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
|
|
89
|
-
|
|
90
|
-
### Update CHANGELOG Again
|
|
91
|
-
|
|
92
|
-
Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
* [#123](https://github.com/dblock/ruby-link-checker/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
Amend your previous commit and force push the changes.
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
git commit --amend
|
|
102
|
-
git push origin my-feature-branch -f
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Rebase
|
|
106
|
-
|
|
107
|
-
If you've been working on a change for a while, rebase with upstream/main.
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
git fetch upstream
|
|
111
|
-
git rebase upstream/main
|
|
112
|
-
git push origin my-feature-branch -f
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Check on Your Pull Request
|
|
116
|
-
|
|
117
|
-
Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
|
|
118
|
-
|
|
119
|
-
### Be Patient
|
|
120
|
-
|
|
121
|
-
It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
|
|
122
|
-
|
|
123
|
-
## Thank You
|
|
124
|
-
|
|
125
|
-
Please do know that we really appreciate and value your time and work. We love you, really.
|
data/Dangerfile
DELETED
data/Gemfile
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
source 'http://rubygems.org'
|
|
4
|
-
|
|
5
|
-
gemspec
|
|
6
|
-
|
|
7
|
-
gem 'rake'
|
|
8
|
-
|
|
9
|
-
group :development, :test do
|
|
10
|
-
gem 'danger'
|
|
11
|
-
gem 'danger-changelog', '0.8.0'
|
|
12
|
-
gem 'danger-pr-comment'
|
|
13
|
-
gem 'danger-toc', '0.2.0'
|
|
14
|
-
gem 'rspec', '~> 3.0'
|
|
15
|
-
gem 'rubocop', '~> 1.0'
|
|
16
|
-
gem 'rubocop-rake'
|
|
17
|
-
gem 'rubocop-rspec'
|
|
18
|
-
gem 'vcr'
|
|
19
|
-
gem 'webmock'
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
group :test do
|
|
23
|
-
gem 'simplecov', require: false
|
|
24
|
-
end
|
data/Gemfile.lock
DELETED
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
ruby-link-checker (0.4.0)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: http://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
activesupport (8.1.3.1)
|
|
10
|
-
base64
|
|
11
|
-
bigdecimal
|
|
12
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
13
|
-
connection_pool (>= 2.2.5)
|
|
14
|
-
drb
|
|
15
|
-
i18n (>= 1.6, < 2)
|
|
16
|
-
json
|
|
17
|
-
logger (>= 1.4.2)
|
|
18
|
-
minitest (>= 5.1)
|
|
19
|
-
securerandom (>= 0.3)
|
|
20
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
21
|
-
uri (>= 0.13.1)
|
|
22
|
-
addressable (2.9.0)
|
|
23
|
-
public_suffix (>= 2.0.2, < 8.0)
|
|
24
|
-
ast (2.4.3)
|
|
25
|
-
async (2.44.1)
|
|
26
|
-
console (~> 1.29)
|
|
27
|
-
fiber-annotation
|
|
28
|
-
io-event (~> 1.11)
|
|
29
|
-
async-http (0.99.0)
|
|
30
|
-
async (>= 2.35.1)
|
|
31
|
-
async-pool (~> 0.11)
|
|
32
|
-
io-endpoint (~> 0.14)
|
|
33
|
-
io-stream (~> 0.14)
|
|
34
|
-
protocol-http (~> 0.66)
|
|
35
|
-
protocol-http1 (~> 0.39)
|
|
36
|
-
protocol-http2 (~> 0.26)
|
|
37
|
-
protocol-url (~> 0.2)
|
|
38
|
-
async-pool (0.11.2)
|
|
39
|
-
async (>= 2.0)
|
|
40
|
-
base64 (0.3.0)
|
|
41
|
-
bigdecimal (4.1.2)
|
|
42
|
-
claide (1.1.0)
|
|
43
|
-
claide-plugins (0.9.2)
|
|
44
|
-
cork
|
|
45
|
-
nap
|
|
46
|
-
open4 (~> 1.3)
|
|
47
|
-
colored2 (3.1.2)
|
|
48
|
-
concurrent-ruby (1.3.8)
|
|
49
|
-
connection_pool (3.0.2)
|
|
50
|
-
console (1.37.0)
|
|
51
|
-
fiber-annotation
|
|
52
|
-
fiber-local (~> 1.1)
|
|
53
|
-
json
|
|
54
|
-
cork (0.3.0)
|
|
55
|
-
colored2 (~> 3.1)
|
|
56
|
-
crack (1.0.1)
|
|
57
|
-
bigdecimal
|
|
58
|
-
rexml
|
|
59
|
-
danger (9.6.1)
|
|
60
|
-
base64 (~> 0.2)
|
|
61
|
-
claide (~> 1.0)
|
|
62
|
-
claide-plugins (>= 0.9.2)
|
|
63
|
-
colored2 (>= 3.1, < 5)
|
|
64
|
-
cork (~> 0.1)
|
|
65
|
-
faraday (>= 0.9.0, < 3.0)
|
|
66
|
-
faraday-http-cache (~> 2.0)
|
|
67
|
-
git (>= 1.13)
|
|
68
|
-
kramdown (>= 2.5.1, < 3.0)
|
|
69
|
-
kramdown-parser-gfm (~> 1.0)
|
|
70
|
-
octokit (>= 4.0)
|
|
71
|
-
pstore (~> 0.1)
|
|
72
|
-
terminal-table (>= 1, < 5)
|
|
73
|
-
danger-changelog (0.8.0)
|
|
74
|
-
danger-plugin-api (~> 1.0)
|
|
75
|
-
danger-plugin-api (1.0.0)
|
|
76
|
-
danger (> 2.0)
|
|
77
|
-
danger-pr-comment (0.1.0)
|
|
78
|
-
danger (~> 9)
|
|
79
|
-
danger-toc (0.2.0)
|
|
80
|
-
activesupport
|
|
81
|
-
danger-plugin-api (~> 1.0)
|
|
82
|
-
kramdown
|
|
83
|
-
diff-lcs (1.6.2)
|
|
84
|
-
docile (1.4.1)
|
|
85
|
-
drb (2.2.3)
|
|
86
|
-
ethon (0.15.0)
|
|
87
|
-
ffi (>= 1.15.0)
|
|
88
|
-
faraday (2.14.3)
|
|
89
|
-
faraday-net_http (>= 2.0, < 3.5)
|
|
90
|
-
json
|
|
91
|
-
logger
|
|
92
|
-
faraday-http-cache (2.7.0)
|
|
93
|
-
faraday (>= 0.8)
|
|
94
|
-
faraday-net_http (3.4.4)
|
|
95
|
-
net-http (~> 0.5)
|
|
96
|
-
ffi (1.17.3-aarch64-linux-gnu)
|
|
97
|
-
ffi (1.17.3-aarch64-mingw-ucrt)
|
|
98
|
-
fiber-annotation (0.2.0)
|
|
99
|
-
fiber-local (1.1.0)
|
|
100
|
-
fiber-storage
|
|
101
|
-
fiber-storage (1.0.1)
|
|
102
|
-
git (5.0.5)
|
|
103
|
-
activesupport (>= 5.0)
|
|
104
|
-
addressable (~> 2.8)
|
|
105
|
-
process_executer (~> 4.0)
|
|
106
|
-
rchardet (~> 1.9)
|
|
107
|
-
hashdiff (1.2.1)
|
|
108
|
-
i18n (1.15.2)
|
|
109
|
-
concurrent-ruby (~> 1.0)
|
|
110
|
-
io-endpoint (0.17.2)
|
|
111
|
-
io-event (1.19.5)
|
|
112
|
-
io-stream (0.14.0)
|
|
113
|
-
openssl (>= 3.3)
|
|
114
|
-
json (2.21.2)
|
|
115
|
-
kramdown (2.5.2)
|
|
116
|
-
rexml (>= 3.4.4)
|
|
117
|
-
kramdown-parser-gfm (1.1.0)
|
|
118
|
-
kramdown (~> 2.0)
|
|
119
|
-
language_server-protocol (3.17.0.5)
|
|
120
|
-
lint_roller (1.1.0)
|
|
121
|
-
logger (1.7.0)
|
|
122
|
-
minitest (6.0.6)
|
|
123
|
-
drb (~> 2.0)
|
|
124
|
-
prism (~> 1.5)
|
|
125
|
-
nap (1.1.0)
|
|
126
|
-
net-http (0.9.1)
|
|
127
|
-
uri (>= 0.11.1)
|
|
128
|
-
octokit (10.0.0)
|
|
129
|
-
faraday (>= 1, < 3)
|
|
130
|
-
sawyer (~> 0.9)
|
|
131
|
-
open4 (1.3.4)
|
|
132
|
-
openssl (4.0.2)
|
|
133
|
-
parallel (1.27.0)
|
|
134
|
-
parser (3.3.10.1)
|
|
135
|
-
ast (~> 2.4.1)
|
|
136
|
-
racc
|
|
137
|
-
prism (1.9.0)
|
|
138
|
-
process_executer (4.0.4)
|
|
139
|
-
track_open_instances (~> 0.1)
|
|
140
|
-
protocol-hpack (1.5.1)
|
|
141
|
-
protocol-http (0.71.0)
|
|
142
|
-
protocol-http1 (0.40.2)
|
|
143
|
-
protocol-http (~> 0.68)
|
|
144
|
-
protocol-http2 (0.26.2)
|
|
145
|
-
protocol-hpack (~> 1.4)
|
|
146
|
-
protocol-http (~> 0.62)
|
|
147
|
-
protocol-url (0.18.0)
|
|
148
|
-
pstore (0.2.1)
|
|
149
|
-
public_suffix (7.0.5)
|
|
150
|
-
racc (1.8.1)
|
|
151
|
-
rainbow (3.1.1)
|
|
152
|
-
rake (13.3.1)
|
|
153
|
-
rchardet (1.10.2)
|
|
154
|
-
regexp_parser (2.11.3)
|
|
155
|
-
rexml (3.4.4)
|
|
156
|
-
rspec (3.13.2)
|
|
157
|
-
rspec-core (~> 3.13.0)
|
|
158
|
-
rspec-expectations (~> 3.13.0)
|
|
159
|
-
rspec-mocks (~> 3.13.0)
|
|
160
|
-
rspec-core (3.13.6)
|
|
161
|
-
rspec-support (~> 3.13.0)
|
|
162
|
-
rspec-expectations (3.13.5)
|
|
163
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
164
|
-
rspec-support (~> 3.13.0)
|
|
165
|
-
rspec-mocks (3.13.7)
|
|
166
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
167
|
-
rspec-support (~> 3.13.0)
|
|
168
|
-
rspec-support (3.13.7)
|
|
169
|
-
rubocop (1.84.0)
|
|
170
|
-
json (~> 2.3)
|
|
171
|
-
language_server-protocol (~> 3.17.0.2)
|
|
172
|
-
lint_roller (~> 1.1.0)
|
|
173
|
-
parallel (~> 1.10)
|
|
174
|
-
parser (>= 3.3.0.2)
|
|
175
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
176
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
177
|
-
rubocop-ast (>= 1.49.0, < 2.0)
|
|
178
|
-
ruby-progressbar (~> 1.7)
|
|
179
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
180
|
-
rubocop-ast (1.49.0)
|
|
181
|
-
parser (>= 3.3.7.2)
|
|
182
|
-
prism (~> 1.7)
|
|
183
|
-
rubocop-rake (0.7.1)
|
|
184
|
-
lint_roller (~> 1.1)
|
|
185
|
-
rubocop (>= 1.72.1)
|
|
186
|
-
rubocop-rspec (3.9.0)
|
|
187
|
-
lint_roller (~> 1.1)
|
|
188
|
-
rubocop (~> 1.81)
|
|
189
|
-
ruby-progressbar (1.13.0)
|
|
190
|
-
sawyer (0.9.3)
|
|
191
|
-
addressable (>= 2.3.5)
|
|
192
|
-
faraday (>= 0.17.3, < 3)
|
|
193
|
-
securerandom (0.4.1)
|
|
194
|
-
simplecov (0.22.0)
|
|
195
|
-
docile (~> 1.1)
|
|
196
|
-
simplecov-html (~> 0.11)
|
|
197
|
-
simplecov_json_formatter (~> 0.1)
|
|
198
|
-
simplecov-html (0.13.2)
|
|
199
|
-
simplecov_json_formatter (0.1.4)
|
|
200
|
-
terminal-table (4.0.0)
|
|
201
|
-
unicode-display_width (>= 1.1.1, < 4)
|
|
202
|
-
track_open_instances (0.1.15)
|
|
203
|
-
typhoeus (1.5.0)
|
|
204
|
-
ethon (>= 0.9.0, < 0.16.0)
|
|
205
|
-
tzinfo (2.0.6)
|
|
206
|
-
concurrent-ruby (~> 1.0)
|
|
207
|
-
unicode-display_width (3.2.0)
|
|
208
|
-
unicode-emoji (~> 4.1)
|
|
209
|
-
unicode-emoji (4.2.0)
|
|
210
|
-
uri (1.1.1)
|
|
211
|
-
vcr (6.4.0)
|
|
212
|
-
webmock (3.26.1)
|
|
213
|
-
addressable (>= 2.8.0)
|
|
214
|
-
crack (>= 0.3.2)
|
|
215
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
216
|
-
|
|
217
|
-
PLATFORMS
|
|
218
|
-
aarch64-linux
|
|
219
|
-
aarch64-mingw-ucrt
|
|
220
|
-
|
|
221
|
-
DEPENDENCIES
|
|
222
|
-
async-http
|
|
223
|
-
danger
|
|
224
|
-
danger-changelog (= 0.8.0)
|
|
225
|
-
danger-pr-comment
|
|
226
|
-
danger-toc (= 0.2.0)
|
|
227
|
-
rake
|
|
228
|
-
rspec (~> 3.0)
|
|
229
|
-
rubocop (~> 1.0)
|
|
230
|
-
rubocop-rake
|
|
231
|
-
rubocop-rspec
|
|
232
|
-
ruby-link-checker!
|
|
233
|
-
simplecov
|
|
234
|
-
typhoeus
|
|
235
|
-
vcr
|
|
236
|
-
webmock
|
|
237
|
-
|
|
238
|
-
CHECKSUMS
|
|
239
|
-
activesupport (8.1.3.1) sha256=85458765f25ea48b9019c46b6bb3fa5683197bf4280d9f06710a6e8d7a831376
|
|
240
|
-
addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
|
|
241
|
-
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
242
|
-
async (2.44.1) sha256=079bce0d019fb27cc58ec110fd9b9af4991d97b801d1c6cc6def1d1954dcf9b2
|
|
243
|
-
async-http (0.99.0) sha256=665eba5e530b05a9682c78b3aa5a51e97dd67b8b25b71ba76530b60cf6c26a11
|
|
244
|
-
async-pool (0.11.2) sha256=0a43a17b02b04d9c451b7d12fafa9a50e55dc6dd00d4369aca00433f16a7e3ed
|
|
245
|
-
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
246
|
-
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
|
|
247
|
-
claide (1.1.0) sha256=6d3c5c089dde904d96aa30e73306d0d4bd444b1accb9b3125ce14a3c0183f82e
|
|
248
|
-
claide-plugins (0.9.2) sha256=c7ea78bc067ab23bce8515497cdcdcb8f01c86dadfbe13c44644e382922c1c2e
|
|
249
|
-
colored2 (3.1.2) sha256=b13c2bd7eeae2cf7356a62501d398e72fde78780bd26aec6a979578293c28b4a
|
|
250
|
-
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
251
|
-
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
252
|
-
console (1.37.0) sha256=8093b286c2595a063849c098594fee5155ecc7967d36f3aa8cbe7569c8f3efd7
|
|
253
|
-
cork (0.3.0) sha256=a0a0ac50e262f8514d1abe0a14e95e71c98b24e3378690e5d044daf0013ad4bc
|
|
254
|
-
crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
|
|
255
|
-
danger (9.6.1) sha256=ca1b870fd8e9f27add22c5649e976efcfb3c76a57f5c7739bb3f1a72ce0506b7
|
|
256
|
-
danger-changelog (0.8.0) sha256=c2ba086861ee2b31990cce8d13d0f967ec5ea43c8cb438d61d147b539b56b7cd
|
|
257
|
-
danger-plugin-api (1.0.0) sha256=a0f3f4f2c19fbdfb41db6015fe8ed5eeb2588dc71f2f78d580294c2b10f83bd3
|
|
258
|
-
danger-pr-comment (0.1.0) sha256=82936d5cecaabd24de50273c3048b89afa5176cfaf5971d863fafbc7a7d923f3
|
|
259
|
-
danger-toc (0.2.0) sha256=6d4d767224a0f6048f4aa5679a3627fb38cc1902fdc407c43eeac23765d2c0a9
|
|
260
|
-
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
261
|
-
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
|
|
262
|
-
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
263
|
-
ethon (0.15.0) sha256=0809805a035bc10f54162ca99f15ded49e428e0488bcfe1c08c821e18261a74d
|
|
264
|
-
faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278
|
|
265
|
-
faraday-http-cache (2.7.0) sha256=cd7ac4bbe6c08592ea7af6655f98b2f76c4db0bad31bf40340df5aad719f0d89
|
|
266
|
-
faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588
|
|
267
|
-
ffi (1.17.3-aarch64-linux-gnu) sha256=28ad573df26560f0aedd8a90c3371279a0b2bd0b4e834b16a2baa10bd7a97068
|
|
268
|
-
ffi (1.17.3-aarch64-mingw-ucrt) sha256=3a265ea6eb15284287bf3ea2bd80d2550c7cab8ba485b41f9ce00e2d84a10b58
|
|
269
|
-
fiber-annotation (0.2.0) sha256=7abfadf1d119f508867d4103bf231c0354d019cc39a5738945dec2edadaf6c03
|
|
270
|
-
fiber-local (1.1.0) sha256=c885f94f210fb9b05737de65d511136ea602e00c5105953748aa0f8793489f06
|
|
271
|
-
fiber-storage (1.0.1) sha256=f48e5b6d8b0be96dac486332b55cee82240057065dc761c1ea692b2e719240e1
|
|
272
|
-
git (5.0.5) sha256=aa84f7b0d4955e885dc55fb3b9f028b3532d40ec5111109bf2cc3b17d5a91373
|
|
273
|
-
hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
|
|
274
|
-
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
275
|
-
io-endpoint (0.17.2) sha256=3feaf766c116b35839c11fac68b6aaadc47887bb488902a57bf8e1d288fb3338
|
|
276
|
-
io-event (1.19.5) sha256=b168a9b7c5a0e894f2047f82f4bf831f59edd067843005e930a62f375738bad2
|
|
277
|
-
io-stream (0.14.0) sha256=07d9b13ea2066ccbbc761fff8d69ad5a31e47561d31e02cc271f3ed9c1a8f1cd
|
|
278
|
-
json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a
|
|
279
|
-
kramdown (2.5.2) sha256=1ba542204c66b6f9111ff00dcc26075b95b220b07f2905d8261740c82f7f02fa
|
|
280
|
-
kramdown-parser-gfm (1.1.0) sha256=fb39745516427d2988543bf01fc4cf0ab1149476382393e0e9c48592f6581729
|
|
281
|
-
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
|
|
282
|
-
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
283
|
-
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
284
|
-
minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
|
|
285
|
-
nap (1.1.0) sha256=949691660f9d041d75be611bb2a8d2fd559c467537deac241f4097d9b5eea576
|
|
286
|
-
net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996
|
|
287
|
-
octokit (10.0.0) sha256=82e99a539b7637b7e905e6d277bb0c1a4bed56735935cc33db6da7eae49a24e8
|
|
288
|
-
open4 (1.3.4) sha256=a1df037310624ecc1ea1d81264b11c83e96d0c3c1c6043108d37d396dcd0f4b1
|
|
289
|
-
openssl (4.0.2) sha256=1037ad2868ae58df9ad917891c0c0f9815a1172f6846d4bcdd508e4c2ee747c2
|
|
290
|
-
parallel (1.27.0) sha256=4ac151e1806b755fb4e2dc2332cbf0e54f2e24ba821ff2d3dcf86bf6dc4ae130
|
|
291
|
-
parser (3.3.10.1) sha256=06f6a725d2cd91e5e7f2b7c32ba143631e1f7c8ae2fb918fc4cebec187e6a688
|
|
292
|
-
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
293
|
-
process_executer (4.0.4) sha256=6c179bd31b876e220e7a1ed30c8f8ee7333b9b5b4b8c301474b947b707c3ba6f
|
|
294
|
-
protocol-hpack (1.5.1) sha256=6feca238b8078da1cd295677d6f306c6001af92d75fe0643d33e6956cbc3ad91
|
|
295
|
-
protocol-http (0.71.0) sha256=38577bf3df0bf0c3f7ee7e21b43fcb4bd7624e36f697dbe9c3eea344f14bd9ba
|
|
296
|
-
protocol-http1 (0.40.2) sha256=add1191f06f16077b2e319ec5cf38c8623a2d2a9829f88a36ebaf8ecf80748a9
|
|
297
|
-
protocol-http2 (0.26.2) sha256=1457cfaa31877512c349051e0094ea170b8913a62d966b82ff7cd14e4b1a3ede
|
|
298
|
-
protocol-url (0.18.0) sha256=b16f55983094b46d18e04b709333b260e4ab5962a32696728e33a6c396150ed6
|
|
299
|
-
pstore (0.2.1) sha256=03904d0f2c66579e96d1e6704cdabc0c88df7ea8ed8782d9f3569f6f6c702c1a
|
|
300
|
-
public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
|
|
301
|
-
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
302
|
-
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
303
|
-
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
|
|
304
|
-
rchardet (1.10.2) sha256=e041cb195f464dc10e49ab130f78c8b5956cd9a4f4f6df84e0c183b87c135f33
|
|
305
|
-
regexp_parser (2.11.3) sha256=ca13f381a173b7a93450e53459075c9b76a10433caadcb2f1180f2c741fc55a4
|
|
306
|
-
rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
|
|
307
|
-
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
308
|
-
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
309
|
-
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
310
|
-
rspec-mocks (3.13.7) sha256=0979034e64b1d7a838aaaddf12bf065ea4dc40ef3d4c39f01f93ae2c66c62b1c
|
|
311
|
-
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
|
|
312
|
-
rubocop (1.84.0) sha256=88dec310153bb685a879f5a7cdb601f6287b8f0ee675d9dc63a17c7204c4190a
|
|
313
|
-
rubocop-ast (1.49.0) sha256=49c3676d3123a0923d333e20c6c2dbaaae2d2287b475273fddee0c61da9f71fd
|
|
314
|
-
rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
|
|
315
|
-
rubocop-rspec (3.9.0) sha256=8fa70a3619408237d789aeecfb9beef40576acc855173e60939d63332fdb55e2
|
|
316
|
-
ruby-link-checker (0.4.0)
|
|
317
|
-
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
318
|
-
sawyer (0.9.3) sha256=0d0f19298408047037638639fe62f4794483fb04320269169bd41af2bdcf5e41
|
|
319
|
-
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
320
|
-
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
321
|
-
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
322
|
-
simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
|
|
323
|
-
terminal-table (4.0.0) sha256=f504793203f8251b2ea7c7068333053f0beeea26093ec9962e62ea79f94301d2
|
|
324
|
-
track_open_instances (0.1.15) sha256=7f0e48821e6b4c881daaa40fb1583e308937c22a9c84883c150b399c3b5c3029
|
|
325
|
-
typhoeus (1.5.0) sha256=120b67ed1ef515e6c0e938176db880f15b0916f038e78ce2a66290f3f1de3e3b
|
|
326
|
-
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
327
|
-
unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
|
|
328
|
-
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
|
|
329
|
-
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
|
330
|
-
vcr (6.4.0) sha256=077ac92cc16efc5904eb90492a18153b5e6ca5398046d8a249a7c96a9ea24ae6
|
|
331
|
-
webmock (3.26.1) sha256=4f696fb57c90a827c20aadb2d4f9058bbff10f7f043bd0d4c3f58791143b1cd7
|
|
332
|
-
|
|
333
|
-
BUNDLED WITH
|
|
334
|
-
4.0.3
|
data/RELEASING.md
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Releasing ruby-link-checker
|
|
2
|
-
|
|
3
|
-
There are no hard rules about when to release ruby-link-checker. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
|
|
4
|
-
|
|
5
|
-
### Release
|
|
6
|
-
|
|
7
|
-
Run tests, check that all tests succeed locally.
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
bundle install
|
|
11
|
-
rake
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Check that the last build succeeded.
|
|
15
|
-
|
|
16
|
-
Add a date to this release in [CHANGELOG.md](CHANGELOG.md).
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
### 0.2.2 (2015/7/10)
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Remove the line with "Your contribution here.", since there will be no more contributions to this release.
|
|
23
|
-
|
|
24
|
-
Commit your changes.
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
git add README.md CHANGELOG.md lib/ruby-link-checker/version.rb
|
|
28
|
-
git commit -m "Preparing for release, 0.2.2."
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Release.
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
$ rake release
|
|
35
|
-
|
|
36
|
-
ruby-link-checker 0.2.2 built to pkg/ruby-link-checker-0.2.2.gem.
|
|
37
|
-
Tagged v0.2.2.
|
|
38
|
-
Pushed git commits and tags.
|
|
39
|
-
Pushed ruby-link-checker 0.2.2 to rubygems.org.
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Prepare for the Next Version
|
|
43
|
-
|
|
44
|
-
Add the next release to [CHANGELOG.md](CHANGELOG.md).
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
### 0.2.3 (Next)
|
|
48
|
-
|
|
49
|
-
* Your contribution here.
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Increment the third version number in [lib/ruby-link-checker/version.rb](lib/ruby-link-checker/version.rb).
|
|
53
|
-
|
|
54
|
-
Commit your changes.
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
git add CHANGELOG.md lib/ruby-link-checker/version.rb
|
|
58
|
-
git commit -m "Preparing for next development iteration, 0.2.3."
|
|
59
|
-
git push origin main
|
|
60
|
-
```
|
data/Rakefile
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'rubygems'
|
|
4
|
-
require 'bundler/gem_tasks'
|
|
5
|
-
|
|
6
|
-
Bundler.setup :default, :development
|
|
7
|
-
|
|
8
|
-
require 'rspec/core'
|
|
9
|
-
require 'rspec/core/rake_task'
|
|
10
|
-
|
|
11
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
12
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
require 'rubocop/rake_task'
|
|
16
|
-
RuboCop::RakeTask.new(:rubocop)
|
|
17
|
-
|
|
18
|
-
task default: %i[rubocop spec]
|
data/benchmarks/check.rb
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
require 'benchmark'
|
|
2
|
-
require 'net/http'
|
|
3
|
-
require 'typhoeus'
|
|
4
|
-
require 'async'
|
|
5
|
-
require 'async/http'
|
|
6
|
-
require 'ruby-link-checker'
|
|
7
|
-
|
|
8
|
-
input = File.readlines(File.join(__dir__, 'data/opensearch.org/small.txt')).map(&:strip)
|
|
9
|
-
|
|
10
|
-
CHECKERS = [
|
|
11
|
-
# LinkChecker::Net::HTTP::Checker,
|
|
12
|
-
LinkChecker::Typhoeus::Hydra::Checker,
|
|
13
|
-
LinkChecker::Async::HTTP::Checker
|
|
14
|
-
].freeze
|
|
15
|
-
|
|
16
|
-
Benchmark.bm(40) do |benchmark|
|
|
17
|
-
CHECKERS.each do |checker_klass|
|
|
18
|
-
benchmark.report(checker_klass.name) do
|
|
19
|
-
checker = checker_klass.new
|
|
20
|
-
checker.logger.level = Logger::INFO
|
|
21
|
-
case checker
|
|
22
|
-
when LinkChecker::Typhoeus::Hydra::Checker
|
|
23
|
-
checker.timeout = 5 # 1/12th of the default 60s
|
|
24
|
-
checker.connecttimeout = 1 # 1/10th of the default 10s
|
|
25
|
-
else
|
|
26
|
-
checker.read_timeout = 5 # 1/12th of the default 60s
|
|
27
|
-
checker.open_timeout = 5 # 1/12th of the default 60s
|
|
28
|
-
end
|
|
29
|
-
input.each do |url|
|
|
30
|
-
checker.check url
|
|
31
|
-
end
|
|
32
|
-
checker.run if checker.respond_to?(:run)
|
|
33
|
-
checker.results.each_pair do |bucket, results|
|
|
34
|
-
puts "#{bucket}: #{results.size}"
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|