github-pages 91 → 92
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 +11 -1
- data/lib/github-pages/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f784eff28960cd570365468ce908a6f8ad9be5e
|
4
|
+
data.tar.gz: 51e9a03e682959fd3936c1233481b6d8c12aa398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa623c2ef145b5db91742df3787b1b245e09d8fb4d8fd50f015912be5478743f835f165ec713907c0775eb0126a65708987b2e76c22de554b2aa10faabb3ab9
|
7
|
+
data.tar.gz: d1cba112537e303b19c9ec38458c191e81ff002a43a60c9e928691137158b511f01cd5abcf1af78ee8a92fdbbc84b2e19eb29d65bf3a499f341a32784a35e929
|
@@ -25,6 +25,11 @@ module GitHubPages
|
|
25
25
|
jemoji
|
26
26
|
).freeze
|
27
27
|
|
28
|
+
# Plugins only allowed locally
|
29
|
+
DEVELOPMENT_PLUGINS = %w(
|
30
|
+
jekyll-admin
|
31
|
+
).freeze
|
32
|
+
|
28
33
|
# Default, user overwritable options
|
29
34
|
DEFAULTS = {
|
30
35
|
"jailed" => false,
|
@@ -86,7 +91,11 @@ module GitHubPages
|
|
86
91
|
end
|
87
92
|
|
88
93
|
def disable_whitelist?
|
89
|
-
|
94
|
+
development? && !ENV["DISABLE_WHITELIST"].to_s.empty?
|
95
|
+
end
|
96
|
+
|
97
|
+
def development?
|
98
|
+
Jekyll.env == "development"
|
90
99
|
end
|
91
100
|
|
92
101
|
# Given a user's config, determines the effective configuration by building a user
|
@@ -108,6 +117,7 @@ module GitHubPages
|
|
108
117
|
# Ensure we have those gems we want.
|
109
118
|
config["gems"] = Array(config["gems"]) | DEFAULT_PLUGINS
|
110
119
|
config["whitelist"] = config["whitelist"] | config["gems"] if disable_whitelist?
|
120
|
+
config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS if development?
|
111
121
|
|
112
122
|
config
|
113
123
|
end
|
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: '92'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|