diff --git a/.rubocop.yml b/.rubocop.yml index adad792..e5c8df6 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +inherit_from: .rubocop_todo.yml + require: rubocop-jekyll inherit_gem: rubocop-jekyll: .rubocop.yml diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 0000000..8d8b2c8 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,13 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2019-03-25 11:42:06 +0100 using RuboCop version 0.66.0. +# 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 +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 1 +# Cop supports --auto-correct. +Lint/ToJSON: + Exclude: + - 'lib/jekyll-seo-tag/json_ld_drop.rb' diff --git a/.travis.yml b/.travis.yml index 714cce0..f70c89c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,6 @@ script: script/cibuild env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true + matrix: + - JEKYLL_VERSION="~> 3.3" + - JEKYLL_VERSION=">= 4.0.0.pre.alpha1" diff --git a/Gemfile b/Gemfile index 83c46ca..a1ebfdb 100644 --- a/Gemfile +++ b/Gemfile @@ -4,4 +4,4 @@ source "https://rubygems.org" gemspec -gem "github-pages", :group => :jekyll_plugins +gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"] diff --git a/jekyll-seo-tag.gemspec b/jekyll-seo-tag.gemspec index 31d92aa..23ccce1 100644 --- a/jekyll-seo-tag.gemspec +++ b/jekyll-seo-tag.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r!^exe/!) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "jekyll", "~> 3.3" + spec.add_dependency "jekyll", ">= 3.3", "< 5.0" spec.add_development_dependency "bundler", ">= 1.15" spec.add_development_dependency "html-proofer", "~> 3.7" spec.add_development_dependency "rspec", "~> 3.5"