github-pages 74 → 75
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 +9 -5
- 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: e63c062224bf45159c79b954d140fdd269696a4d
|
4
|
+
data.tar.gz: 061fc52ee4345c6d6229760608583e0290730f0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c01947fee10b3763eddcfeca7b3624eb7ee556dc256cfcd9cc0248e0230b84b378239382f113452e227ec8c4bcf43a6add7482d285b6eb071f3b3a247578b82
|
7
|
+
data.tar.gz: 91db4ff1df44714e5612303b9e42ca92027ea48f743b5595b32cd6191d298dfc5f30a13d07dcde4228f45bf98a543f90879c10218618a27059ae9f4acbb97aa0
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "securerandom"
|
2
|
+
|
1
3
|
module GitHubPages
|
2
4
|
#
|
3
5
|
class Configuration
|
@@ -54,6 +56,7 @@ module GitHubPages
|
|
54
56
|
OVERRIDES = {
|
55
57
|
"lsi" => false,
|
56
58
|
"safe" => true,
|
59
|
+
"plugins" => SecureRandom.hex,
|
57
60
|
"plugins_dir" => SecureRandom.hex,
|
58
61
|
"whitelist" => PLUGIN_WHITELIST,
|
59
62
|
"highlighter" => "rouge",
|
@@ -98,11 +101,10 @@ module GitHubPages
|
|
98
101
|
# Merge user config into defaults
|
99
102
|
config = Jekyll::Utils.deep_merge_hashes(MERGED_DEFAULTS, user_config)
|
100
103
|
.fix_common_issues
|
101
|
-
.backwards_compatibilize
|
102
104
|
.add_default_collections
|
103
105
|
|
104
|
-
# Merge overwrites into user config
|
105
|
-
config = Jekyll::Utils.deep_merge_hashes
|
106
|
+
# Merge overwrites into user config
|
107
|
+
config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
|
106
108
|
|
107
109
|
# Ensure we have those gems we want.
|
108
110
|
config["gems"] = Array(config["gems"]) | DEFAULT_PLUGINS
|
@@ -116,12 +118,14 @@ module GitHubPages
|
|
116
118
|
# guards against double-processing via the value in #processed.
|
117
119
|
def set(site)
|
118
120
|
return if processed? site
|
119
|
-
|
121
|
+
debug_print_versions
|
120
122
|
set!(site)
|
121
123
|
processed(site)
|
122
124
|
end
|
123
125
|
|
124
|
-
|
126
|
+
# Print the versions for github-pages and jekyll to the debug
|
127
|
+
# stream for debugging purposes. See by running Jekyll with '--verbose'
|
128
|
+
def debug_print_versions
|
125
129
|
Jekyll.logger.debug "GitHub Pages:", "github-pages v#{GitHubPages::VERSION}"
|
126
130
|
Jekyll.logger.debug "GitHub Pages:", "jekyll v#{Jekyll::VERSION}"
|
127
131
|
end
|
data/lib/github-pages/version.rb
CHANGED