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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8834b93511d8ba6c9b53a1819cda17c8aea730a84196bc8f1271ddedc4674f66
4
- data.tar.gz: 869bdfce15c6817adac72ccd78666ea6cd8c3080aaa2adba4e99f042c8dc037f
3
+ metadata.gz: d36f33b2755da0128337848a2f1ae21df8abed2c66b202c9ef175a10ee47f62b
4
+ data.tar.gz: aa0fde581a8f5009b6bcd55afe68d87363e2d753fb05f054bc123008c81427fe
5
5
  SHA512:
6
- metadata.gz: 7b1e442409c64a742db36f7439ea1378cf40e130807eed20b689d4f80cec31c1c390e33c6d71e0f4400f38f23cdb208cf7307db308d930dad9236c1f676ff544
7
- data.tar.gz: 8ea3498c4725ebb75d087b79bbc519a30737fe12e348477c8424307153eef2d102e5b2c333da225beb78adddfb66deec94e903fe91857c68390f4d09f8d29783
6
+ metadata.gz: 1eb3bfb1f74f894f8fa93d80452e718cd1f30023c8b197f57f3cca6ddf17feceee8f9c585572daea02569e30f0031ab5cbff8af7e54cba401a3408f0ab6e4c45
7
+ data.tar.gz: 2e482e777cbb3c916d3c6fb5d1968a96c5cc6e847e1623a06cea1397d75b669bcaafaf62fa26ee486e77a9ba0512c93fdc4e8b04ffe07cd7edd1dc98f8ed5bc9
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2
4
- - 2.3
5
3
  - 2.4
6
4
  - 2.5
5
+ - 2.6
7
6
 
8
7
  before_install:
9
8
  - gem install bundler
@@ -9,8 +9,4 @@
9
9
  172.111.64.0/18
10
10
  185.31.16.0/22
11
11
  199.27.72.0/21
12
- 199.232.0.0/16
13
- 202.21.128.11/32
14
- 202.21.128.12/32
15
- 203.57.145.11/32
16
- 203.57.145.12/32
12
+ 199.232.0.0/16
@@ -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
- return unless dns.first.type == Dnsruby::Types::CNAME
340
+ cnames = dns.take_while { |answer| answer.type == Dnsruby::Types::CNAME }
341
+ return if cnames.empty?
341
342
 
342
- @cname ||= Domain.new(dns.first.cname.to_s)
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 => 2,
7
+ :retry_times => 2,
8
8
  :query_timeout => 5,
9
- :dnssec => false,
10
- :do_caching => false
9
+ :dnssec => false,
10
+ :do_caching => false
11
11
  }.freeze
12
12
  PUBLIC_NAMESERVERS = %w(
13
13
  8.8.8.8
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitHubPages
4
4
  module HealthCheck
5
- VERSION = "1.15.0".freeze
5
+ VERSION = "1.16.0".freeze
6
6
  end
7
7
  end
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.15.0
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: 2018-10-26 00:00:00.000000000 Z
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
- rubyforge_project:
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