Skip to content

Commit 9baa1bb

Browse files
committed
Add a space after to help rendering in GHA.
1 parent ae0e0d8 commit 9baa1bb

12 files changed

Lines changed: 87 additions & 37 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v3
9-
- name: Install Ruby (2.7)
9+
- name: Install Ruby (3.4)
1010
uses: ruby/setup-ruby@v1
1111
with:
12-
ruby-version: 2.7
12+
ruby-version: 3.4
1313
- uses: amancevice/setup-code-climate@v0
1414
with:
1515
cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}

.github/workflows/danger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, reopened, edited, synchronize]
66
jobs:
77
danger:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
1111
with:

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ jobs:
88
fail-fast: false
99
matrix:
1010
entry:
11-
- { ruby: '2.7', allowed-failure: false }
12-
- { ruby: '3.0', allowed-failure: false }
13-
- { ruby: '3.1', allowed-failure: false }
14-
- { ruby: '3.2', allowed-failure: false }
11+
- { ruby: '2.7' }
12+
- { ruby: '3.0' }
13+
- { ruby: '3.1' }
14+
- { ruby: '3.2' }
15+
- { ruby: '3.3' }
16+
- { ruby: '3.4' }
1517
name: test (${{ matrix.entry.ruby }})
1618
steps:
1719
- uses: actions/checkout@v3
@@ -20,4 +22,3 @@ jobs:
2022
ruby-version: ${{ matrix.entry.ruby }}
2123
- run: bundle install --jobs=3 --retry=3 --path=vendor/bundle
2224
- run: bundle exec rake spec
23-
continue-on-error: ${{ matrix.entry.allowed-failure }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Gemfile.lock
22
pkg
33
coverage
4+
.DS_Store

.rubocop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
require:
2-
- rubocop-rake
3-
- rubocop-rspec
4-
51
AllCops:
62
TargetRubyVersion: 2.7
73
NewCops: enable
@@ -20,4 +16,8 @@ Style/HashTransformValues:
2016
Metrics:
2117
Enabled: false
2218

19+
plugins:
20+
- rubocop-rake
21+
- rubocop-rspec
22+
2323
inherit_from: .rubocop_todo.yml

.rubocop_todo.yml

Lines changed: 58 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-04-03 00:36:28 UTC using RuboCop version 1.48.1.
3+
# on 2025-07-05 14:01:58 UTC using RuboCop version 1.77.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -81,6 +81,7 @@ Lint/NonDeterministicRequireOrder:
8181
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
8282
Naming/FileName:
8383
Exclude:
84+
- 'Rakefile.rb'
8485
- 'lib/ruby-link-checker.rb'
8586

8687
# Offense count: 1
@@ -107,13 +108,13 @@ RSpec/BeNil:
107108
# Offense count: 2
108109
RSpec/BeforeAfterAll:
109110
Exclude:
110-
- 'spec/spec_helper.rb'
111-
- 'spec/rails_helper.rb'
112-
- 'spec/support/**/*.rb'
111+
- '**/spec/spec_helper.rb'
112+
- '**/spec/rails_helper.rb'
113+
- '**/spec/support/**/*.rb'
113114
- 'spec/ruby-link-checker/net/http/checker_spec.rb'
114115
- 'spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb'
115116

116-
# Offense count: 34
117+
# Offense count: 35
117118
# Configuration parameters: Prefixes, AllowedPatterns.
118119
# Prefixes: when, with, without
119120
RSpec/ContextWording:
@@ -127,7 +128,7 @@ RSpec/ContextWording:
127128

128129
# Offense count: 1
129130
# This cop supports unsafe autocorrection (--autocorrect-all).
130-
# Configuration parameters: SkipBlocks, EnforcedStyle.
131+
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
131132
# SupportedStyles: described_class, explicit
132133
RSpec/DescribedClass:
133134
Exclude:
@@ -151,18 +152,6 @@ RSpec/ExpectInHook:
151152
- 'spec/ruby-link-checker/net/http/checker_spec.rb'
152153
- 'spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb'
153154

154-
# Offense count: 6
155-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
156-
# Include: **/*_spec*rb*, **/spec/**/*
157-
RSpec/FilePath:
158-
Exclude:
159-
- 'spec/ruby-link-checker/callbacks_spec.rb'
160-
- 'spec/ruby-link-checker/checker_spec.rb'
161-
- 'spec/ruby-link-checker/config_spec.rb'
162-
- 'spec/ruby-link-checker/net/http/checker_spec.rb'
163-
- 'spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb'
164-
- 'spec/ruby-link-checker/version_spec.rb'
165-
166155
# Offense count: 6
167156
# Configuration parameters: AssignmentOnly.
168157
RSpec/InstanceVariable:
@@ -187,7 +176,7 @@ RSpec/MessageSpies:
187176
RSpec/MultipleExpectations:
188177
Max: 9
189178

190-
# Offense count: 57
179+
# Offense count: 58
191180
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
192181
# SupportedStyles: always, named_only
193182
RSpec/NamedSubject:
@@ -202,6 +191,19 @@ RSpec/NamedSubject:
202191
RSpec/NestedGroups:
203192
Max: 6
204193

194+
# Offense count: 6
195+
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
196+
# Include: **/*_spec.rb
197+
RSpec/SpecFilePathFormat:
198+
Exclude:
199+
- '**/spec/routing/**/*'
200+
- 'spec/ruby-link-checker/callbacks_spec.rb'
201+
- 'spec/ruby-link-checker/checker_spec.rb'
202+
- 'spec/ruby-link-checker/config_spec.rb'
203+
- 'spec/ruby-link-checker/net/http/checker_spec.rb'
204+
- 'spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb'
205+
- 'spec/ruby-link-checker/version_spec.rb'
206+
205207
# Offense count: 39
206208
RSpec/SubjectStub:
207209
Exclude:
@@ -216,6 +218,13 @@ Style/CaseEquality:
216218
Exclude:
217219
- 'spec/support/link_checker.rb'
218220

221+
# Offense count: 2
222+
# This cop supports unsafe autocorrection (--autocorrect-all).
223+
Style/ComparableBetween:
224+
Exclude:
225+
- 'lib/ruby-link-checker/net/http/result.rb'
226+
- 'lib/ruby-link-checker/typhoeus/hydra/result.rb'
227+
219228
# Offense count: 20
220229
# Configuration parameters: AllowedConstants.
221230
Style/Documentation:
@@ -237,12 +246,21 @@ Style/Documentation:
237246
- 'lib/ruby-link-checker/typhoeus/hydra/config.rb'
238247
- 'lib/ruby-link-checker/typhoeus/hydra/result.rb'
239248

249+
# Offense count: 1
250+
# This cop supports safe autocorrection (--autocorrect).
251+
# Configuration parameters: EnforcedStyle.
252+
# SupportedStyles: trailing_conditional, ternary
253+
Style/EmptyStringInsideInterpolation:
254+
Exclude:
255+
- 'lib/ruby-link-checker/result.rb'
256+
240257
# Offense count: 15
241258
# This cop supports unsafe autocorrection (--autocorrect-all).
242259
# Configuration parameters: EnforcedStyle.
243260
# SupportedStyles: always, always_true, never
244261
Style/FrozenStringLiteralComment:
245262
Exclude:
263+
- '**/*.arb'
246264
- 'benchmarks/check.rb'
247265
- 'lib/ruby-link-checker/errors.rb'
248266
- 'lib/ruby-link-checker/net/http.rb'
@@ -304,9 +322,29 @@ Style/StringLiterals:
304322
Exclude:
305323
- 'lib/ruby-link-checker/checker.rb'
306324

325+
# Offense count: 3
326+
# This cop supports safe autocorrection (--autocorrect).
327+
Style/SuperArguments:
328+
Exclude:
329+
- 'lib/ruby-link-checker/net/http/checker.rb'
330+
- 'lib/ruby-link-checker/typhoeus/hydra/checker.rb'
331+
- 'spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb'
332+
333+
# Offense count: 7
334+
# This cop supports safe autocorrection (--autocorrect).
335+
Style/SuperWithArgsParentheses:
336+
Exclude:
337+
- 'lib/ruby-link-checker/errors/redirect_loop_error.rb'
338+
- 'lib/ruby-link-checker/net/http/checker.rb'
339+
- 'lib/ruby-link-checker/net/http/result.rb'
340+
- 'lib/ruby-link-checker/result.rb'
341+
- 'lib/ruby-link-checker/typhoeus/hydra/checker.rb'
342+
- 'lib/ruby-link-checker/typhoeus/hydra/result.rb'
343+
- 'spec/ruby-link-checker/typhoeus/hydra/checker_spec.rb'
344+
307345
# Offense count: 1
308346
# This cop supports safe autocorrection (--autocorrect).
309-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
347+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
310348
# URISchemes: http, https
311349
Layout/LineLength:
312350
Max: 123

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
### 0.2.1 (Next)
1+
### 0.3.0 (Next)
22

3+
* [#10](https://github.com/dblock/ruby-link-checker/pull/10): Add a space after `:` to help rendering in GHA - [@dblock](https://github.com/dblock).
34
* Your contribution here.
45

56
### 0.2.0 (2023-04-03)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ A fast Ruby link checker with support for multiple HTTP libraries. Does not pars
1919
- [LinkChecker::Net::HTTP](#linkcheckernethttp)
2020
- [Options](#options)
2121
- [Retries](#retries)
22+
- [Rretry After](#retry-after)
2223
- [Results](#results)
2324
- [Methods](#methods)
2425
- [Logger](#logger)
@@ -170,6 +171,14 @@ By default link checkers do not retry. You can set a number of times to retry al
170171
checker = LinkChecker::Net::HTTP::Checker.new(retry: 1)
171172
```
172173

174+
#### Retry After
175+
176+
If retry is enabled, link checkers can wait for a number of seconds before retrying.
177+
178+
```ruby
179+
checker = LinkChecker::Net::HTTP::Checker.new(retry_after: 1) # wait for 1 second before retrying
180+
```
181+
173182
#### Results
174183

175184
By default checkers collect results.

lib/ruby-link-checker/result.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def to_s
5151
else
5252
'ERROR'
5353
end
54-
"#{method} #{uri}#{result_uri == uri ? nil : ' (' + result_uri.to_s + ')'}: #{status_s} (#{code})"
54+
"#{method} #{uri}#{result_uri == uri ? nil : ' (' + result_uri.to_s + ')'} : #{status_s} (#{code})"
5555
end
5656
end
5757

lib/ruby-link-checker/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module LinkChecker
4-
VERSION = '0.2.1'
4+
VERSION = '0.3.0'
55
end

0 commit comments

Comments
 (0)