jekyll-github-metadata 1.6.0 → 1.7.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
  SHA1:
3
- metadata.gz: 82921d733fd06cf58bc088ea389ac61b808dc337
4
- data.tar.gz: 347dce2f5db40a742fb2816caf85f1dd9566ab6e
3
+ metadata.gz: 5e31c09b658a0801c54f1ed63a5f23fdfa17d8b2
4
+ data.tar.gz: 5a1bb8408e9275ae8c0d94e4406a5acc21551090
5
5
  SHA512:
6
- metadata.gz: 08f87888788f65ef030886fc56992c32660e229867c3fe5682304d70051e082e22b645f14ddade9aacead1df3d379d75f0350ffb9c326c834a7e731c903c9c20
7
- data.tar.gz: f9b45ba9424471c3f49ca1c02dbe93210560ecd23b1483a28f666ead1e56057dabdd60610625a8fe8351dcac282e46fbb13df5daf57156658ddc4c3c5ff6d7cd
6
+ metadata.gz: d3096bbf569fec42459a1c9698db667881d80e6c3a5c68707008eadd4cf0fd33e1851002001096fe045fe19d0c67afa8839808e1c9a43255a55458f511cea421
7
+ data.tar.gz: 56a5b39e2cfbfae6fbade849733b9356c5fc1613582303a76c85d8316056c66f8bf65ff125fddbad3e80a155be9b732e01809fe4eb805559162f8bc1126b3bb6
@@ -12,6 +12,10 @@ module Jekyll
12
12
  'SUBDOMAIN_ISOLATION' => 'false'.freeze
13
13
  }.freeze
14
14
 
15
+ # Whether the GitHub instance supports HTTPS
16
+ # Note: this will be the same as how sites are served in Enterprise,
17
+ # but may be different from how sites are served on GitHub.com.
18
+ # See Repository#url_scheme
15
19
  def ssl?
16
20
  env_var('SSL') == 'true' || test?
17
21
  end
@@ -106,13 +106,17 @@ module Jekyll
106
106
  end
107
107
  end
108
108
 
109
+ # In enterprise, the site's scheme will be the same as the instance's
110
+ # In dotcom, this will be `https` for GitHub-owned sites that end with
111
+ # `.github.com` and will be `http` for all other sites.
112
+ # Note: This is not the same as *instance*'s scheme, which may differ
109
113
  def url_scheme
110
- if domain.end_with?(".github.com".freeze)
111
- "https".freeze
112
- elsif cname
113
- "http"
114
- else
114
+ if Pages.enterprise?
115
115
  Pages.scheme
116
+ elsif owner == 'github' && domain.end_with?('.github.com')
117
+ 'https'
118
+ else
119
+ 'http'
116
120
  end
117
121
  end
118
122
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module GitHubMetadata
3
- VERSION = '1.6.0'
3
+ VERSION = '1.7.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-github-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit