github-pages 174 → 175
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github-pages/configuration.rb +3 -10
- data/lib/github-pages/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3377072962dcd496e49add64c20a88b811adba00
|
4
|
+
data.tar.gz: 16336d9c052b95ed2bdd9fae379c03f1d3cb27b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d0d5c1e1015841e32e6e06fa6f805c764eec49084387d26405cbb90dc330397d81563c9393f23d26b40425f1a515a72aa2066c684fda6f454790dd307882af
|
7
|
+
data.tar.gz: cc1bdd84352bc7cdf74894c5bf7623e67aa9c528e36fd6440f6babc1f3ab1695676299533e0bfcdc580a52e0514a4840bee95043d71197853f313fbf0611346c
|
@@ -108,6 +108,9 @@ module GitHubPages
|
|
108
108
|
# Ensure we have those gems we want.
|
109
109
|
config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
|
110
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
|
+
|
111
114
|
if disable_whitelist?
|
112
115
|
config["whitelist"] = config["whitelist"] | config["plugins"]
|
113
116
|
end
|
@@ -127,7 +130,6 @@ module GitHubPages
|
|
127
130
|
debug_print_versions
|
128
131
|
set!(site)
|
129
132
|
processed(site)
|
130
|
-
conditionally_require_plugins(site)
|
131
133
|
end
|
132
134
|
|
133
135
|
# Set the site's configuration with all the proper defaults and overrides.
|
@@ -162,15 +164,6 @@ module GitHubPages
|
|
162
164
|
Jekyll.logger.debug "GitHub Pages:", "github-pages v#{GitHubPages::VERSION}"
|
163
165
|
Jekyll.logger.debug "GitHub Pages:", "jekyll v#{Jekyll::VERSION}"
|
164
166
|
end
|
165
|
-
|
166
|
-
# To minimize erorrs, lazy-load plugins if they're requested by the user
|
167
|
-
def conditionally_require_plugins(site)
|
168
|
-
plugins = []
|
169
|
-
plugins.push "jekyll-remote-theme" if site.config.key? "remote_theme"
|
170
|
-
Jekyll::External.require_with_graceful_fail(
|
171
|
-
plugins.select { |plugin| site.plugin_manager.plugin_allowed?(plugin) }
|
172
|
-
)
|
173
|
-
end
|
174
167
|
end
|
175
168
|
end
|
176
169
|
end
|
data/lib/github-pages/version.rb
CHANGED