Skip to content

Commit b1c12e9

Browse files
authored
Merge pull request #449 from github/jekyll-v3-5-0
Bump jekyll to v3.5.1
2 parents 9ae72e7 + 4460172 commit b1c12e9

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: ruby
22
rvm:
3-
- 2.0
43
- 2.1
54
- 2.2
65
- 2.3.3

lib/github-pages/configuration.rb

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Configuration
1414
# Default, user overwritable options
1515
DEFAULTS = {
1616
"jailed" => false,
17-
"gems" => GitHubPages::Plugins::DEFAULT_PLUGINS,
17+
"plugins" => GitHubPages::Plugins::DEFAULT_PLUGINS,
1818
"future" => true,
1919
"theme" => "jekyll-theme-primer",
2020
"kramdown" => {
@@ -44,7 +44,6 @@ class Configuration
4444
OVERRIDES = {
4545
"lsi" => false,
4646
"safe" => true,
47-
"plugins" => SecureRandom.hex,
4847
"plugins_dir" => SecureRandom.hex,
4948
"whitelist" => GitHubPages::Plugins::PLUGIN_WHITELIST,
5049
"highlighter" => "rouge",
@@ -63,7 +62,7 @@ class Configuration
6362
# Jekyll::Site and need to be set properly when the config is updated.
6463
CONFIGS_WITH_METHODS = %w(
6564
safe lsi highlighter baseurl exclude include future unpublished
66-
show_drafts limit_posts keep_files gems
65+
show_drafts limit_posts keep_files
6766
).freeze
6867

6968
class << self
@@ -105,9 +104,15 @@ def effective_config(user_config)
105104
config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
106105

107106
# Ensure we have those gems we want.
108-
config["gems"] = Array(config["gems"]) | DEFAULT_PLUGINS
109-
config["whitelist"] = config["whitelist"] | config["gems"] if disable_whitelist?
110-
config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS if development?
107+
config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
108+
109+
if disable_whitelist?
110+
config["whitelist"] = config["whitelist"] | config["plugins"]
111+
end
112+
113+
if development?
114+
config["whitelist"] = config["whitelist"] | DEVELOPMENT_PLUGINS
115+
end
111116

112117
config
113118
end
@@ -141,6 +146,10 @@ def set!(site)
141146
CONFIGS_WITH_METHODS.each do |opt|
142147
site.public_send("#{opt}=", site.config[opt])
143148
end
149+
150+
# While Configuration renamed the gems key to plugins, Site retained
151+
# backwards compatability and must be set manually
152+
site.gems = site.config["plugins"]
144153
end
145154
end
146155
end

lib/github-pages/dependencies.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ module GitHubPages
77
class Dependencies
88
VERSIONS = {
99
# Jekyll
10-
"jekyll" => "3.4.5",
10+
"jekyll" => "3.5.1",
1111
"jekyll-sass-converter" => "1.5.0",
1212

1313
# Converters
1414
"kramdown" => "1.13.2",
1515

1616
# Misc
17-
"liquid" => "3.0.6",
17+
"liquid" => "4.0.0",
1818
"rouge" => "1.11.1",
1919
"github-pages-health-check" => "1.3.5",
2020

2121
# Plugins
2222
"jekyll-redirect-from" => "0.12.1",
2323
"jekyll-sitemap" => "1.0.0",
2424
"jekyll-feed" => "0.9.2",
25-
"jekyll-gist" => "1.4.0",
25+
"jekyll-gist" => "1.4.1",
2626
"jekyll-paginate" => "1.1.0",
2727
"jekyll-coffeescript" => "1.0.1",
2828
"jekyll-seo-tag" => "2.2.3",

spec/github-pages/configuration_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
end
3030

3131
it "sets default gems" do
32-
expect(effective_config["gems"]).to include("jekyll-coffeescript")
32+
expect(effective_config["plugins"]).to include("jekyll-coffeescript")
3333
end
3434

3535
it "lets the user specify additional gems" do
36-
expect(effective_config["gems"]).to include("jekyll-sitemap")
36+
expect(effective_config["plugins"]).to include("jekyll-sitemap")
3737
end
3838

3939
it "honors the user's config" do
@@ -84,11 +84,11 @@
8484
end
8585

8686
it "sets default gems" do
87-
expect(site.config["gems"]).to include("jekyll-coffeescript")
87+
expect(site.config["plugins"]).to include("jekyll-coffeescript")
8888
end
8989

9090
it "lets the user specify additional gems" do
91-
expect(site.config["gems"]).to include("jekyll-sitemap")
91+
expect(site.config["plugins"]).to include("jekyll-sitemap")
9292
end
9393

9494
it "honors the user's config" do

0 commit comments

Comments
 (0)