github-pages 91 → 92

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: e59ee0d7f35866716aee61dcca0b6379151aa53e
4
- data.tar.gz: 74155baaa99a3058e5ed71caeece02e23797a0aa
3
+ metadata.gz: 5f784eff28960cd570365468ce908a6f8ad9be5e
4
+ data.tar.gz: 51e9a03e682959fd3936c1233481b6d8c12aa398
5
5
  SHA512:
6
- metadata.gz: 56fc0a2e4e2daf432eab8caf317d9b25d3ebfeb2b7be8e9c40e2a48482aa2c122440cc6930276b3d1a5e2ce5f975911b3469f0174aa5a1ea0061f06f16d769cf
7
- data.tar.gz: d9cb17e5de0b3f93b7d626536577c675db081aedfb10f659c3941541a9165ea4a626487538ecb11fbee13da6397a7bd5e4eabc13f28e71de8a7adb9c074ea7a0
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
- Jekyll.env == "development" && !ENV["DISABLE_WHITELIST"].to_s.empty?
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
@@ -1,3 +1,3 @@
1
1
  module GitHubPages
2
- VERSION = 91
2
+ VERSION = 92
3
3
  end
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: '91'
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-09 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll