diff mbox series

[qemu-web,RFC] Update to Jekyll 4.0

Message ID 20190906110649.9561-1-thuth@redhat.com
State New
Headers show
Series [qemu-web,RFC] Update to Jekyll 4.0 | expand

Commit Message

Thomas Huth Sept. 6, 2019, 11:06 a.m. UTC
- Update versions in Gemfile
- "has_key?" has to be renamed to "key?" in category_archive_plugin.rb
- Add .jekyll-cache to .gitignore file

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 .gitignore                          |  1 +
 Gemfile                             | 15 +++------------
 _plugins/category_archive_plugin.rb |  2 +-
 3 files changed, 5 insertions(+), 13 deletions(-)

Comments

Stefan Hajnoczi Sept. 9, 2019, 12:31 p.m. UTC | #1
On Fri, Sep 06, 2019 at 01:06:49PM +0200, Thomas Huth wrote:
> - Update versions in Gemfile
> - "has_key?" has to be renamed to "key?" in category_archive_plugin.rb
> - Add .jekyll-cache to .gitignore file
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  .gitignore                          |  1 +
>  Gemfile                             | 15 +++------------
>  _plugins/category_archive_plugin.rb |  2 +-
>  3 files changed, 5 insertions(+), 13 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index c744144..3b93b88 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ 
 /Gemfile.lock
 /vendor
 /.bundle
+/.jekyll-cache
diff --git a/Gemfile b/Gemfile
index b01dff9..200f2c4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -9,10 +9,10 @@  ruby RUBY_VERSION
 #
 # This will help ensure the proper Jekyll version is running.
 # Happy Jekylling!
-gem "jekyll", "3.3.0"
+gem "jekyll", "4.0.0"
 
 # This is the default theme for new Jekyll sites. You may change this to anything you like.
-gem "minima", "~> 2.0"
+gem "minima", "~> 2.5"
 
 # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
 # uncomment the line below. To upgrade, run `bundle update github-pages`.
@@ -20,14 +20,5 @@  gem "minima", "~> 2.0"
 
 # If you have any plugins, put them here!
 group :jekyll_plugins do
-   gem "jekyll-feed", "~> 0.6"
+   gem "jekyll-feed", "~> 0.12"
 end
-
-
-# for RHEL7
-gem 'public_suffix', "< 3.0"
-gem 'jekyll-watch', '= 1.5.0'
-gem 'listen', '< 3.1'
-gem 'ruby_dep', '< 1.4'
-gem 'json'
-gem 'json_pure'
diff --git a/_plugins/category_archive_plugin.rb b/_plugins/category_archive_plugin.rb
index c2d8b29..5f26aad 100644
--- a/_plugins/category_archive_plugin.rb
+++ b/_plugins/category_archive_plugin.rb
@@ -50,7 +50,7 @@  module Jekyll
 
     def render(context)
       # If the category is a variable in the current context, expand it
-      if context.has_key?(@category)
+      if context.key?(@category)
 	      category = context[@category]
       else
 	      category = @category