jekyll-github-metadata 1.6.0 → 1.7.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e31c09b658a0801c54f1ed63a5f23fdfa17d8b2
|
|
4
|
+
data.tar.gz: 5a1bb8408e9275ae8c0d94e4406a5acc21551090
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: octokit
|