github-pages-health-check 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfe7405fbe483ae19425b6e1a25ff3b69ae32b89
4
- data.tar.gz: 9f4c19f364db6fd367746d2ed3c98861ef8bdc6b
3
+ metadata.gz: c989190d5dbc4a62740c5ba6a4d56362d268c7d5
4
+ data.tar.gz: 0b55a858dea8dacd95648bf4d34adc5e774f42b0
5
5
  SHA512:
6
- metadata.gz: 58af3ec791d4df7ab4a2389707e1e5571a3e589b3cd938d2622bca6553ae05c1bc80e3331ac13639a7e3b45543fc39258a8423b4ce678e13bb17a2196ad6709d
7
- data.tar.gz: ef30db84d2ede08b117e8b117533ee2e7df836343e9e32abc9c8ed680d20cacfc1cb5ea2ad7e9b6e24d8e83cc46f06857a48c2e1cc82bfa2130c7d78148b1150
6
+ metadata.gz: 8ba2480b91cd9c2d7094d19e4b331753d2fd147af48dd0a10b6080641a72f54c30f7d3a373bc6b0ff67aabc4b28d171252caba23ecb15961d9af42a5048e4ede
7
+ data.tar.gz: af09d81d4004946aeb56dd49226b389eb80689239715471d0354832906734a2ff24d67fa15cac503e8d121177c86343569a3b55cf0985edec1ac88ae37a59e5d
data/.rubocop.yml CHANGED
@@ -17,7 +17,7 @@
17
17
  #
18
18
 
19
19
  AllCops:
20
- TargetRubyVersion: 2.4
20
+ TargetRubyVersion: 2.2
21
21
  Exclude:
22
22
  - 'bin/**/*'
23
23
  - 'script/**/*'
@@ -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"
@@ -4,7 +4,7 @@ module GitHubPages
4
4
  module HealthCheck
5
5
  class Printer
6
6
  PRETTY_LEFT_WIDTH = 11
7
- PRETTY_JOINER = " | "
7
+ PRETTY_JOINER = " | ".freeze
8
8
 
9
9
  attr_reader :health_check
10
10
 
@@ -45,11 +45,11 @@ module GitHubPages
45
45
  alias reason build_error
46
46
 
47
47
  def build_duration
48
- last_build&.duration
48
+ last_build && last_build.duration
49
49
  end
50
50
 
51
51
  def last_built
52
- last_build&.updated_at
52
+ last_build && last_build.updated_at
53
53
  end
54
54
 
55
55
  def domain
@@ -14,7 +14,7 @@ module GitHubPages
14
14
  end
15
15
 
16
16
  def check!
17
- [domain, repository].each { |check| check&.check! }
17
+ [domain, repository].compact.each(&:check!)
18
18
  true
19
19
  end
20
20
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitHubPages
4
4
  module HealthCheck
5
- VERSION = "1.7.1"
5
+ VERSION = "1.7.2".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.7.1
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-24 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable