From e22311ec1a1e7971de64f804205bac18cb89e18c Mon Sep 17 00:00:00 2001 From: Frank Taillandier Date: Fri, 20 Mar 2020 11:55:32 +0100 Subject: [PATCH] style: align with latest jekyll-rubocop (#382) Merge pull request 382 --- .gitignore | 19 ++++++++----------- .rubocop.yml | 4 ++-- .rubocop_todo.yml | 4 ++-- jekyll-seo-tag.gemspec | 2 +- lib/jekyll-seo-tag/drop.rb | 2 +- 5 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index cc6acc6..6256dfa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,9 @@ -/.bundle/ -/.yardoc -/Gemfile.lock -/_yardoc/ -/coverage/ -/doc/ -/pkg/ -/spec/reports/ -/tmp/ -/bin/ *.gem -_site +.bundle +.yardoc +Gemfile.lock +pkg +spec/reports/ +spec/fixtures/.jekyll-cache +tmp/ +vendor/bundle diff --git a/.rubocop.yml b/.rubocop.yml index e5c8df6..8ed2cfa 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,11 +9,11 @@ AllCops: Exclude: - vendor/**/* -Metrics/LineLength: +Layout/LineLength: Exclude: - spec/**/* - jekyll-seo-tag.gemspec -Metrics/BlockLength: +Layout/BlockLength: Exclude: - spec/**/* diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8d8b2c8..cb469c1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by -# `rubocop --auto-gen-config` -# on 2019-03-25 11:42:06 +0100 using RuboCop version 0.66.0. +# `rubocop --auto-gen-config --auto-gen-only-exclude` +# on 2020-03-20 11:41:46 +0100 using RuboCop version 0.80.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new diff --git a/jekyll-seo-tag.gemspec b/jekyll-seo-tag.gemspec index 8703f69..97a0232 100644 --- a/jekyll-seo-tag.gemspec +++ b/jekyll-seo-tag.gemspec @@ -30,5 +30,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", ">= 1.15" spec.add_development_dependency "html-proofer", "~> 3.7" spec.add_development_dependency "rspec", "~> 3.5" - spec.add_development_dependency "rubocop-jekyll", "~> 0.4" + spec.add_development_dependency "rubocop-jekyll", "~> 0.11" end diff --git a/lib/jekyll-seo-tag/drop.rb b/lib/jekyll-seo-tag/drop.rb index 1a1b849..cb806d6 100644 --- a/lib/jekyll-seo-tag/drop.rb +++ b/lib/jekyll-seo-tag/drop.rb @@ -14,7 +14,7 @@ module Jekyll def initialize(text, context) @obj = {} @mutations = {} - @text = text + @text = text @context = context end