Skip to content

Commit 38e0e9f

Browse files
authored
Merge pull request #232 from maxmind/greg/stf-557
Validate and update links (STF-557)
2 parents 76d48c6 + b2f49de commit 38e0e9f

25 files changed

Lines changed: 161 additions & 29 deletions

.github/workflows/links.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Links
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 13 * * 1" # weekly, to catch external link rot without a commit
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
linkChecker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
with:
19+
persist-credentials: false
20+
21+
- name: Setup mise
22+
uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1
23+
with:
24+
install: false
25+
26+
# Install only lychee (not the repo's full toolchain) and run the check.
27+
- name: Check links
28+
env:
29+
MISE_AUTO_INSTALL: "false"
30+
run: |
31+
mise install lychee
32+
mise run check-links

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535

3636
# zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces.
3737
# specify that we want the v1 branch.
38-
- uses: rubygems/release-gem@6317d8d1f7e28c24d28f6eff169ea854948bd9f7 # 1.2.0
38+
- uses: rubygems/release-gem@6317d8d1f7e28c24d28f6eff169ea854948bd9f7 # v1.2.0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pkg
77
*~
88
.DS_Store
99
.claude
10+
.lycheecache

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,6 @@ Report Transaction API:
438438
## Additional Resources
439439

440440
- [API Documentation](https://www.rubydoc.info/gems/minfraud)
441-
- [minFraud Web Services Docs](https://dev.maxmind.com/minfraud)
442-
- [Report Transaction API Docs](https://dev.maxmind.com/minfraud/report-a-transaction)
441+
- [minFraud Web Services Docs](https://dev.maxmind.com/minfraud/)
442+
- [Report Transaction API Docs](https://dev.maxmind.com/minfraud/report-a-transaction/)
443443
- GitHub Issues: https://github.com/maxmind/minfraud-api-ruby/issues

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ incident.
4343

4444
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
4545
version 1.3.0, available at
46-
[https://contributor-covenant.org/version/1/3/0/][version]
46+
[https://www.contributor-covenant.org/version/1/3/0/][version]
4747

48-
[homepage]: https://contributor-covenant.org
49-
[version]: https://contributor-covenant.org/version/1/3/0/
48+
[homepage]: https://www.contributor-covenant.org/
49+
[version]: https://www.contributor-covenant.org/version/1/3/0/

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Description
44

55
This package provides an API for the [MaxMind minFraud web
6-
services](https://dev.maxmind.com/minfraud?lang=en). This includes minFraud Score,
6+
services](https://dev.maxmind.com/minfraud/?lang=en). This includes minFraud Score,
77
Insights, and Factors. It also includes our [minFraud Report Transaction
8-
API](https://dev.maxmind.com/minfraud/report-a-transaction?lang=en).
8+
API](https://dev.maxmind.com/minfraud/report-a-transaction/?lang=en).
99

1010
The legacy minFraud Standard and Premium services are not supported by this
1111
API.
@@ -276,7 +276,7 @@ Please report all issues with this code using the
276276

277277
If you are having an issue with the minFraud service that is not specific
278278
to the client API, please see
279-
[our support page](https://www.maxmind.com/en/support).
279+
[our support page](https://support.maxmind.com/knowledge-base).
280280

281281
## Requirements
282282

@@ -288,7 +288,7 @@ Bug reports and pull requests are welcome on
288288
[GitHub](https://github.com/maxmind/minfraud-api-ruby). This project is
289289
intended to be a safe, welcoming space for collaboration, and contributors
290290
are expected to adhere to the [Contributor
291-
Covenant](https://contributor-covenant.org) code of conduct.
291+
Covenant](https://www.contributor-covenant.org/) code of conduct.
292292

293293
## Versioning
294294

@@ -301,7 +301,7 @@ Copyright (c) 2016-2020 kushnir.yb.
301301
Copyright (c) 2020-2026 MaxMind, Inc.
302302

303303
The gem is available as open source under the terms of the [MIT
304-
License](https://opensource.org/licenses/MIT).
304+
License](https://opensource.org/license/MIT).
305305

306306
## Thank You
307307

lib/minfraud/assessments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Minfraud
44
# Assessments is used to perform minFraud Score, Insights, and Factors
55
# requests.
66
#
7-
# @see https://dev.maxmind.com/minfraud?lang=en
7+
# @see https://dev.maxmind.com/minfraud/?lang=en
88
class Assessments
99
include ::Minfraud::Resolver
1010

lib/minfraud/components/account.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Minfraud
44
module Components
55
# Account corresponds to the account object of a minFraud request.
66
#
7-
# @see https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en#schema--request--account
7+
# @see https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en#schema--request--account
88
class Account < Base
99
include Minfraud::Validates
1010

lib/minfraud/components/billing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Minfraud
44
module Components
55
# Billing corresponds to the billing object of a minFraud request.
66
#
7-
# @see https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en#schema--request--billing
7+
# @see https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en#schema--request--billing
88
class Billing < Addressable; end
99
end
1010
end

lib/minfraud/components/credit_card.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Minfraud
44
module Components
55
# CreditCard corresponds to the credit_card object of a minFraud request.
66
#
7-
# @see https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en#schema--request--credit-card
7+
# @see https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en#schema--request--credit-card
88
class CreditCard < Base
99
include Minfraud::Validates
1010

@@ -17,7 +17,7 @@ class CreditCard < Base
1717
# The last two or four digits of the credit card number. In most cases,
1818
# you should send the last four digits for +last_digits+.
1919
#
20-
# @see https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en#schema--request--credit-card__last_digits
20+
# @see https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en#schema--request--credit-card__last_digits
2121
#
2222
# @return [String, nil]
2323
attr_accessor :last_digits

0 commit comments

Comments
 (0)