github-pages-health-check 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/github-pages-health-check.rb +3 -3
- data/lib/github-pages-health-check/error.rb +2 -2
- data/lib/github-pages-health-check/errors/build_error.rb +1 -1
- data/lib/github-pages-health-check/errors/deprecated_ip_error.rb +1 -1
- data/lib/github-pages-health-check/errors/invalid_a_record_error.rb +1 -1
- data/lib/github-pages-health-check/errors/invalid_cname_error.rb +1 -1
- data/lib/github-pages-health-check/errors/invalid_dns_error.rb +1 -1
- data/lib/github-pages-health-check/errors/invalid_domain_error.rb +1 -1
- data/lib/github-pages-health-check/errors/not_served_by_pages_error.rb +1 -1
- data/lib/github-pages-health-check/printer.rb +1 -1
- data/lib/github-pages-health-check/repository.rb +2 -2
- data/lib/github-pages-health-check/site.rb +1 -1
- data/lib/github-pages-health-check/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c989190d5dbc4a62740c5ba6a4d56362d268c7d5
|
4
|
+
data.tar.gz: 0b55a858dea8dacd95648bf4d34adc5e774f42b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba2480b91cd9c2d7094d19e4b331753d2fd147af48dd0a10b6080641a72f54c30f7d3a373bc6b0ff67aabc4b28d171252caba23ecb15961d9af42a5048e4ede
|
7
|
+
data.tar.gz: af09d81d4004946aeb56dd49226b389eb80689239715471d0354832906734a2ff24d67fa15cac503e8d121177c86343569a3b55cf0985edec1ac88ae37a59e5d
|
data/.rubocop.yml
CHANGED
@@ -34,9 +34,9 @@ module GitHubPages
|
|
34
34
|
# DNS and HTTP timeout, in seconds
|
35
35
|
TIMEOUT = 5
|
36
36
|
|
37
|
-
HUMAN_NAME = "GitHub Pages Health Check"
|
38
|
-
URL = "https://github.com/github/pages-health-check"
|
39
|
-
USER_AGENT = "Mozilla/5.0 (compatible; #{HUMAN_NAME}/#{VERSION}; +#{URL})"
|
37
|
+
HUMAN_NAME = "GitHub Pages Health Check".freeze
|
38
|
+
URL = "https://github.com/github/pages-health-check".freeze
|
39
|
+
USER_AGENT = "Mozilla/5.0 (compatible; #{HUMAN_NAME}/#{VERSION}; +#{URL})".freeze
|
40
40
|
|
41
41
|
TYPHOEUS_OPTIONS = {
|
42
42
|
:followlocation => true,
|
@@ -3,8 +3,8 @@
|
|
3
3
|
module GitHubPages
|
4
4
|
module HealthCheck
|
5
5
|
class Error < StandardError
|
6
|
-
DOCUMENTATION_BASE = "https://help.github.com"
|
7
|
-
DOCUMENTATION_PATH = "/categories/github-pages-basics/"
|
6
|
+
DOCUMENTATION_BASE = "https://help.github.com".freeze
|
7
|
+
DOCUMENTATION_PATH = "/categories/github-pages-basics/".freeze
|
8
8
|
LOCAL_ONLY = false # Error is only used when running locally
|
9
9
|
|
10
10
|
attr_reader :repository, :domain
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class BuildError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/troubleshooting-jekyll-builds/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/troubleshooting-jekyll-builds/".freeze
|
8
8
|
LOCAL_ONLY = true
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class DeprecatedIPError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/".freeze
|
8
8
|
|
9
9
|
def message
|
10
10
|
<<-MSG
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class InvalidARecordError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/".freeze
|
8
8
|
|
9
9
|
def message
|
10
10
|
<<-MSG
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class InvalidCNAMEError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/".freeze
|
8
8
|
|
9
9
|
def message
|
10
10
|
<<-MSG
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class InvalidDNSError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/".freeze
|
8
8
|
|
9
9
|
def message
|
10
10
|
"Domain's DNS record could not be retrieved"
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class InvalidDomainError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/".freeze
|
8
8
|
|
9
9
|
def message
|
10
10
|
"Domain is not a valid domain"
|
@@ -4,7 +4,7 @@ module GitHubPages
|
|
4
4
|
module HealthCheck
|
5
5
|
module Errors
|
6
6
|
class NotServedByPagesError < GitHubPages::HealthCheck::Error
|
7
|
-
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/"
|
7
|
+
DOCUMENTATION_PATH = "/articles/setting-up-a-custom-domain-with-github-pages/".freeze
|
8
8
|
|
9
9
|
def message
|
10
10
|
"Domain does not resolve to the GitHub Pages server"
|
@@ -45,11 +45,11 @@ module GitHubPages
|
|
45
45
|
alias reason build_error
|
46
46
|
|
47
47
|
def build_duration
|
48
|
-
last_build
|
48
|
+
last_build && last_build.duration
|
49
49
|
end
|
50
50
|
|
51
51
|
def last_built
|
52
|
-
last_build
|
52
|
+
last_build && last_build.updated_at
|
53
53
|
end
|
54
54
|
|
55
55
|
def domain
|
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.7.
|
4
|
+
version: 1.7.2
|
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-04-
|
11
|
+
date: 2018-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|