github-pages-health-check 1.18.0 → 1.18.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f74ea156f562095369eeeb9563d5b6eb97c83d511d7d8514d65020f23fc9d62
4
- data.tar.gz: 2bcc302f901b883e8072da97bb5ba60746301403be1f881416fd01bce33ccbc2
3
+ metadata.gz: bd7b9a6265476c7ffa7b965ed0c331df229ceef7446b119fa35188acc8c43155
4
+ data.tar.gz: fb46e328d327c0ca84f6d69e1a183ea1989b226596d9bef705b489536f37bc30
5
5
  SHA512:
6
- metadata.gz: 94689f476ee4833e682d4cf32ff59698673641b6e218bc106cd0d23c5703bd3f1e66d8550286d7c7e6bb7f47c5b94bc037e2ac4df91b33c5dcd58da6c17e5706
7
- data.tar.gz: 36abc15449e5e6b71f1da35140df12310ecb0f9faac587aabfa90636eca9fa2778e1a657792afebe39c68bd7ba172058aaae0c8402d33409d7c1043da1fb2818
6
+ metadata.gz: 52ed7e445d7a983bc42076cc9c23eb51bc0b9966d9642638503d5b1d2f7e23e13881162f5138cdffbee2635acc63b76f5b7a47b2bf99a120fcee931f1cc36034
7
+ data.tar.gz: cfb67f8e4f0ed0c75e68c62d7bdd214842bb006dd824e9a09f331ccc9e7053e4e7f2cd16f443f61db6c5d3f262278a55168cf601e70c207feddc5c4bbee14c2c
@@ -1,15 +1,20 @@
1
1
  version: 2
2
2
  updates:
3
- - package-ecosystem: bundler
4
- directory: "/"
5
- schedule:
6
- interval: daily
7
- time: "10:00"
8
- timezone: Europe/Vienna
9
- pull-request-branch-name:
10
- separator: "-"
11
- open-pull-requests-limit: 99
12
- allow:
13
- - dependency-type: direct
14
- - dependency-type: indirect
15
- rebase-strategy: disabled
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "10:00"
8
+ timezone: Europe/Vienna
9
+ pull-request-branch-name:
10
+ separator: "-"
11
+ open-pull-requests-limit: 99
12
+ allow:
13
+ - dependency-type: direct
14
+ - dependency-type: indirect
15
+ rebase-strategy: disabled
16
+
17
+ - package-ecosystem: "github-actions"
18
+ directory: "/"
19
+ schedule:
20
+ interval: weekly
@@ -1,16 +1,18 @@
1
1
  on: push
2
- name: cibuild on push
2
+ name: "GitHub Pages Health Check Tests"
3
3
  jobs:
4
4
  build:
5
5
  name: "GitHub Pages Health Check Tests"
6
6
  runs-on: ubuntu-latest
7
7
  strategy:
8
+ fail-fast: false
8
9
  matrix:
9
10
  ruby:
10
- - 2.5
11
- - 2.6
12
- - 2.7
13
- - 3.0
11
+ - '2.6'
12
+ - '2.7'
13
+ - '3.0'
14
+ - '3.1'
15
+ - '3.2'
14
16
  steps:
15
17
  - uses: actions/checkout@master
16
18
  - name: script/cibuild-docker
data/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  *Checks your GitHub Pages site for common DNS configuration issues*
4
4
 
5
- [![Build Status](https://travis-ci.org/github/pages-health-check.svg)](https://travis-ci.org/github/pages-health-check) [![Gem Version](https://badge.fury.io/rb/github-pages-health-check.svg)](http://badge.fury.io/rb/github-pages-health-check)
5
+ [![Build Status](https://github.com/github/pages-health-check/actions/workflows/push-cibuild.yml/badge.svg)](https://github.com/github/pages-health-check/actions/workflows/push-cibuild.yml)
6
+ [![Gem Version](https://badge.fury.io/rb/github-pages-health-check.svg)](http://badge.fury.io/rb/github-pages-health-check)
6
7
 
7
8
  ## Installation
8
9
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_dependency("addressable", "~> 2.3")
20
20
  s.add_dependency("dnsruby", "~> 1.60")
21
- s.add_dependency("octokit", "~> 4.0")
22
- s.add_dependency("public_suffix", ">= 3.0", "< 5.0")
21
+ s.add_dependency("octokit", ">= 4", "< 8")
22
+ s.add_dependency("public_suffix", ">= 3.0", "< 6.0")
23
23
  s.add_dependency("typhoeus", "~> 1.3")
24
24
  end
@@ -160,7 +160,7 @@ module GitHubPages
160
160
  end
161
161
 
162
162
  # Is this a valid domain that PublicSuffix recognizes?
163
- # Used as an escape hatch to prevent false positives on DNS checkes
163
+ # Used as an escape hatch to prevent false positives on DNS checks
164
164
  def valid_domain?
165
165
  return @valid if defined? @valid
166
166
 
@@ -170,7 +170,7 @@ module GitHubPages
170
170
  :ignore_private => true)
171
171
  end
172
172
 
173
- # Is this domain an apex domain, meaning a CNAME would be innapropriate
173
+ # Is this domain an apex domain, meaning a CNAME would be inappropriate
174
174
  def apex_domain?
175
175
  return @apex_domain if defined?(@apex_domain)
176
176
 
@@ -202,7 +202,7 @@ module GitHubPages
202
202
  end
203
203
 
204
204
  #
205
- # Does the domain have assoicated NS records?
205
+ # Does the domain have associated NS records?
206
206
  #
207
207
  def dns_zone_ns?
208
208
  return @ns_records if defined?(@ns_records)
@@ -246,7 +246,7 @@ module GitHubPages
246
246
  # Is the given domain a CNAME to pages.github.(io|com)
247
247
  # instead of being CNAME'd to the user's subdomain?
248
248
  #
249
- # domain - the domain to check, generaly the target of a cname
249
+ # domain - the domain to check, generally the target of a cname
250
250
  def cname_to_pages_dot_github_dot_com?
251
251
  cname? && cname.pages_dot_github_dot_com?
252
252
  end
@@ -449,8 +449,11 @@ module GitHubPages
449
449
  def https_eligible?
450
450
  # Can't have any IP's which aren't GitHub's present.
451
451
  return false if non_github_pages_ip_present?
452
- # Must be a CNAME or point to our IPs.
453
452
 
453
+ # Can't have underscores in the domain name (Let's Encrypt does not allow it)
454
+ return false if host.include?("_")
455
+
456
+ # Must be a CNAME or point to our IPs.
454
457
  # Only check the one domain if a CNAME. Don't check the parent domain.
455
458
  return true if cname_to_github_user_domain?
456
459
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitHubPages
4
4
  module HealthCheck
5
- VERSION = "1.18.0"
5
+ VERSION = "1.18.2"
6
6
  end
7
7
  end
@@ -41,7 +41,7 @@ module GitHubPages
41
41
  URL = "https://github.com/github/pages-health-check"
42
42
  USER_AGENT = "Mozilla/5.0 (compatible; #{HUMAN_NAME}/#{VERSION}; +#{URL})"
43
43
 
44
- # surpress warn-level feedback due to unsupported record types
44
+ # suppress warn-level feedback due to unsupported record types
45
45
  def self.without_warnings(&block)
46
46
  warn_level = $VERBOSE
47
47
  $VERBOSE = nil
data/script/release CHANGED
@@ -31,10 +31,10 @@ tag=v`ls github-pages-health-check-*.gem | sed 's/^github-pages-health-check-\(.
31
31
 
32
32
  git fetch -t origin
33
33
 
34
- # (git tag -l | grep -q "$tag") && {
35
- # echo "Whoops, there's already a '${tag}' tag."
36
- # exit 1
37
- # }
34
+ (git tag -l | grep -q "$tag") && {
35
+ echo "Whoops, there's already a '${tag}' tag."
36
+ exit 1
37
+ }
38
38
 
39
39
  # Tag it and bag it.
40
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pages-health-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-08 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: octokit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '4'
48
+ - - "<"
46
49
  - !ruby/object:Gem::Version
47
- version: '4.0'
50
+ version: '8'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '4'
58
+ - - "<"
53
59
  - !ruby/object:Gem::Version
54
- version: '4.0'
60
+ version: '8'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: public_suffix
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -61,7 +67,7 @@ dependencies:
61
67
  version: '3.0'
62
68
  - - "<"
63
69
  - !ruby/object:Gem::Version
64
- version: '5.0'
70
+ version: '6.0'
65
71
  type: :runtime
66
72
  prerelease: false
67
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -71,7 +77,7 @@ dependencies:
71
77
  version: '3.0'
72
78
  - - "<"
73
79
  - !ruby/object:Gem::Version
74
- version: '5.0'
80
+ version: '6.0'
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: typhoeus
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -145,7 +151,7 @@ homepage: https://github.com/github/github-pages-health-check
145
151
  licenses:
146
152
  - MIT
147
153
  metadata: {}
148
- post_install_message:
154
+ post_install_message:
149
155
  rdoc_options: []
150
156
  require_paths:
151
157
  - lib
@@ -160,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
166
  - !ruby/object:Gem::Version
161
167
  version: '0'
162
168
  requirements: []
163
- rubygems_version: 3.1.2
164
- signing_key:
169
+ rubygems_version: 3.3.26
170
+ signing_key:
165
171
  specification_version: 4
166
172
  summary: Checks your GitHub Pages site for commons DNS configuration issues
167
173
  test_files: []