github-pages-health-check 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/config/fastly-ips.txt +1 -5
- data/lib/github-pages-health-check/domain.rb +3 -2
- data/lib/github-pages-health-check/repository.rb +1 -1
- data/lib/github-pages-health-check/resolver.rb +3 -3
- data/lib/github-pages-health-check/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36f33b2755da0128337848a2f1ae21df8abed2c66b202c9ef175a10ee47f62b
|
4
|
+
data.tar.gz: aa0fde581a8f5009b6bcd55afe68d87363e2d753fb05f054bc123008c81427fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eb3bfb1f74f894f8fa93d80452e718cd1f30023c8b197f57f3cca6ddf17feceee8f9c585572daea02569e30f0031ab5cbff8af7e54cba401a3408f0ab6e4c45
|
7
|
+
data.tar.gz: 2e482e777cbb3c916d3c6fb5d1968a96c5cc6e847e1623a06cea1397d75b669bcaafaf62fa26ee486e77a9ba0512c93fdc4e8b04ffe07cd7edd1dc98f8ed5bc9
|
data/.travis.yml
CHANGED
data/config/fastly-ips.txt
CHANGED
@@ -337,9 +337,10 @@ module GitHubPages
|
|
337
337
|
# The domain to which this domain's CNAME resolves
|
338
338
|
# Returns nil if the domain is not a CNAME
|
339
339
|
def cname
|
340
|
-
|
340
|
+
cnames = dns.take_while { |answer| answer.type == Dnsruby::Types::CNAME }
|
341
|
+
return if cnames.empty?
|
341
342
|
|
342
|
-
@cname ||= Domain.new(
|
343
|
+
@cname ||= Domain.new(cnames.last.cname.to_s)
|
343
344
|
end
|
344
345
|
|
345
346
|
def mx_records_present?
|
@@ -5,7 +5,7 @@ module GitHubPages
|
|
5
5
|
class Repository < Checkable
|
6
6
|
attr_reader :name, :owner
|
7
7
|
|
8
|
-
REPO_REGEX = %r{\A[a-z0-9_\-]+/[a-z0-9_\-\.]+\z}i
|
8
|
+
REPO_REGEX = %r{\A[a-z0-9_\-]+/[a-z0-9_\-\.]+\z}i.freeze
|
9
9
|
|
10
10
|
HASH_METHODS = %i[
|
11
11
|
name_with_owner built? last_built build_duration build_error
|
@@ -4,10 +4,10 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
class Resolver
|
6
6
|
DEFAULT_RESOLVER_OPTIONS = {
|
7
|
-
:retry_times
|
7
|
+
:retry_times => 2,
|
8
8
|
:query_timeout => 5,
|
9
|
-
:dnssec
|
10
|
-
:do_caching
|
9
|
+
:dnssec => false,
|
10
|
+
:do_caching => false
|
11
11
|
}.freeze
|
12
12
|
PUBLIC_NAMESERVERS = %w(
|
13
13
|
8.8.8.8
|
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.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -233,8 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
|
237
|
-
rubygems_version: 2.7.6
|
236
|
+
rubygems_version: 3.0.1
|
238
237
|
signing_key:
|
239
238
|
specification_version: 4
|
240
239
|
summary: Checks your GitHub Pages site for commons DNS configuration issues
|