github-pages 179 → 180
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 +4 -4
- data/lib/github-pages/configuration.rb +27 -13
- data/lib/github-pages/dependencies.rb +1 -1
- data/lib/github-pages/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ceeb556c793b993cd6f39d8d8239460c3fd6462
|
4
|
+
data.tar.gz: 6b12926877be7a03bab1f59dba421dc1fb4ff4e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d346ae929e377f1c21f98de905ebbf572c28564174f37ec4450f924038de76af7a476d1887d2fef7a0bd0e0666433b423f2e2e788915c103404f34a4ce875d0e
|
7
|
+
data.tar.gz: 88234345e2c4ed139c9c94108729e8e06b31b6595a6e35387975a684e8f5e5f9ff52f7d93350f1844a866b7452bebc74c48c3ff4ab0ce5541ef2363d623d4b7c
|
@@ -23,6 +23,7 @@ module GitHubPages
|
|
23
23
|
"hard_wrap" => false,
|
24
24
|
"gfm_quirks" => "paragraph_end",
|
25
25
|
},
|
26
|
+
"exclude" => ["CNAME"],
|
26
27
|
}.freeze
|
27
28
|
|
28
29
|
# User-overwritable defaults used only in production for practical reasons
|
@@ -100,24 +101,14 @@ module GitHubPages
|
|
100
101
|
.fix_common_issues
|
101
102
|
.add_default_collections
|
102
103
|
|
104
|
+
exclude_cname(config)
|
105
|
+
|
103
106
|
# Merge overwrites into user config
|
104
107
|
config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
|
105
108
|
|
106
109
|
restrict_and_config_markdown_processor(config)
|
107
110
|
|
108
|
-
|
109
|
-
config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
|
110
|
-
|
111
|
-
# To minimize erorrs, lazy-require jekyll-remote-theme if requested by the user
|
112
|
-
config["plugins"].push("jekyll-remote-theme") if config.key? "remote_theme"
|
113
|
-
|
114
|
-
if disable_whitelist?
|
115
|
-
config["whitelist"] = config["whitelist"] | config["plugins"]
|
116
|
-
end
|
117
|
-
|
118
|
-
if development?
|
119
|
-
config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS
|
120
|
-
end
|
111
|
+
configure_plugins(config)
|
121
112
|
|
122
113
|
config
|
123
114
|
end
|
@@ -158,6 +149,29 @@ module GitHubPages
|
|
158
149
|
}
|
159
150
|
end
|
160
151
|
|
152
|
+
# If the user's 'exclude' config is the default, also exclude the CNAME
|
153
|
+
def exclude_cname(config)
|
154
|
+
return unless config["exclude"].eql? Jekyll::Configuration::DEFAULTS["exclude"]
|
155
|
+
config["exclude"].concat(DEFAULTS["exclude"])
|
156
|
+
end
|
157
|
+
|
158
|
+
# Requires default plugins and configures whitelist in development
|
159
|
+
def configure_plugins(config)
|
160
|
+
# Ensure we have those gems we want.
|
161
|
+
config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
|
162
|
+
|
163
|
+
# To minimize erorrs, lazy-require jekyll-remote-theme if requested by the user
|
164
|
+
config["plugins"].push("jekyll-remote-theme") if config.key? "remote_theme"
|
165
|
+
|
166
|
+
return unless development?
|
167
|
+
|
168
|
+
if disable_whitelist?
|
169
|
+
config["whitelist"] = config["whitelist"] | config["plugins"]
|
170
|
+
end
|
171
|
+
|
172
|
+
config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS
|
173
|
+
end
|
174
|
+
|
161
175
|
# Print the versions for github-pages and jekyll to the debug
|
162
176
|
# stream for debugging purposes. See by running Jekyll with '--verbose'
|
163
177
|
def debug_print_versions
|
data/lib/github-pages/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '180'
|
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-03-
|
11
|
+
date: 2018-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.7.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.7.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-sass-converter
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|