github-pages 74 → 75

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: 92b4a9dadf2cd413c80d8fdc95f9529d4919fa35
4
- data.tar.gz: 6066ceba1bf18c5be07f9a359a0257ba2b64fba2
3
+ metadata.gz: e63c062224bf45159c79b954d140fdd269696a4d
4
+ data.tar.gz: 061fc52ee4345c6d6229760608583e0290730f0d
5
5
  SHA512:
6
- metadata.gz: b3bb2c285e61eff6204ccad01e03b7c36a013ff18c4007b7f4e39a9d5173e043ddaaa53d72763a2444e6683b2966486b7c3fdec0630874965476206a65bae4af
7
- data.tar.gz: 67780e0713fb768f56d72457c1e5da134bda8e70fb5a5b7c0be66e004a77c30fd214e00fad38b3a8f79ee56142417b41c1fad86a44ebfae5b04c1b994192fe42
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 & ensure fully compatible
105
- config = Jekyll::Utils.deep_merge_hashes(config, OVERRIDES)
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
- print_debug_versions
121
+ debug_print_versions
120
122
  set!(site)
121
123
  processed(site)
122
124
  end
123
125
 
124
- def print_debug_versions
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
@@ -1,3 +1,3 @@
1
1
  module GitHubPages
2
- VERSION = 74
2
+ VERSION = 75
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: '74'
4
+ version: '75'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.