github-pages 179 → 180

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: 0af6e2d0bc5e6eacf14bead097e524c941956ea6
4
- data.tar.gz: 68032608a4b375e2bf4480b8b24fa1fd8c9ad585
3
+ metadata.gz: 6ceeb556c793b993cd6f39d8d8239460c3fd6462
4
+ data.tar.gz: 6b12926877be7a03bab1f59dba421dc1fb4ff4e3
5
5
  SHA512:
6
- metadata.gz: fda519770a7c23652cf1804f1008cd8db21db78c77767c6fb61330c43a18a8b3f9d039628d65e2758f70b48e0b7ad46cb57074f5c0b449e69d320e3cb47189cf
7
- data.tar.gz: 5b38f3d0156751714e946e2c713c112f500913f36b4813aee0f048989b8c1c78f5382d9c7856baf59767a3c37aca7ca8fecae8523fb8919384d02efa14525377
6
+ metadata.gz: d346ae929e377f1c21f98de905ebbf572c28564174f37ec4450f924038de76af7a476d1887d2fef7a0bd0e0666433b423f2e2e788915c103404f34a4ce875d0e
7
+ data.tar.gz: 88234345e2c4ed139c9c94108729e8e06b31b6595a6e35387975a684e8f5e5f9ff52f7d93350f1844a866b7452bebc74c48c3ff4ab0ce5541ef2363d623d4b7c
@@ -23,6 +23,7 @@ module GitHubPages
23
23
  "hard_wrap" => false,
24
24
  "gfm_quirks" => "paragraph_end",
25
25
  },
26
+ "exclude" => ["CNAME"],
26
27
  }.freeze
27
28
 
28
29
  # User-overwritable defaults used only in production for practical reasons
@@ -100,24 +101,14 @@ module GitHubPages
100
101
  .fix_common_issues
101
102
  .add_default_collections
102
103
 
104
+ exclude_cname(config)
105
+
103
106
  # Merge overwrites into user config
104
107
  config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
105
108
 
106
109
  restrict_and_config_markdown_processor(config)
107
110
 
108
- # Ensure we have those gems we want.
109
- config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
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
-
114
- if disable_whitelist?
115
- config["whitelist"] = config["whitelist"] | config["plugins"]
116
- end
117
-
118
- if development?
119
- config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS
120
- end
111
+ configure_plugins(config)
121
112
 
122
113
  config
123
114
  end
@@ -158,6 +149,29 @@ module GitHubPages
158
149
  }
159
150
  end
160
151
 
152
+ # If the user's 'exclude' config is the default, also exclude the CNAME
153
+ def exclude_cname(config)
154
+ return unless config["exclude"].eql? Jekyll::Configuration::DEFAULTS["exclude"]
155
+ config["exclude"].concat(DEFAULTS["exclude"])
156
+ end
157
+
158
+ # Requires default plugins and configures whitelist in development
159
+ def configure_plugins(config)
160
+ # Ensure we have those gems we want.
161
+ config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
162
+
163
+ # To minimize erorrs, lazy-require jekyll-remote-theme if requested by the user
164
+ config["plugins"].push("jekyll-remote-theme") if config.key? "remote_theme"
165
+
166
+ return unless development?
167
+
168
+ if disable_whitelist?
169
+ config["whitelist"] = config["whitelist"] | config["plugins"]
170
+ end
171
+
172
+ config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS
173
+ end
174
+
161
175
  # Print the versions for github-pages and jekyll to the debug
162
176
  # stream for debugging purposes. See by running Jekyll with '--verbose'
163
177
  def debug_print_versions
@@ -7,7 +7,7 @@ module GitHubPages
7
7
  class Dependencies
8
8
  VERSIONS = {
9
9
  # Jekyll
10
- "jekyll" => "3.6.2",
10
+ "jekyll" => "3.7.3",
11
11
  "jekyll-sass-converter" => "1.5.2",
12
12
 
13
13
  # Converters
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHubPages
4
- VERSION = 179
4
+ VERSION = 180
5
5
  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: '179'
4
+ version: '180'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-16 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.6.2
19
+ version: 3.7.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.6.2
26
+ version: 3.7.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-sass-converter
29
29
  requirement: !ruby/object:Gem::Requirement