Merge pull request #241 from jekyll/pull/rubocop-update

Style: Rubocop auto-correct
This commit is contained in:
Frank Taillandier 2017-11-08 20:43:20 +01:00 committed by GitHub
commit 62de1fb078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 42 additions and 11 deletions

View File

@ -10,16 +10,11 @@ Metrics/BlockLength:
Exclude:
- spec/**/*
Style/Documentation:
Enabled: false
Style/FileName:
Enabled: false
Style/IndentHeredoc:
Layout/IndentHeredoc:
Exclude:
- spec/**/*
AllCops:
TargetRubyVersion: 2.1
Exclude:
- vendor/**/*

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source "https://rubygems.org"
gemspec

View File

@ -1,4 +1,4 @@
# coding: utf-8
# frozen_string_literal: true
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.add_dependency "jekyll", "~> 3.3"
spec.add_development_dependency "bundler", "~> 1.14"
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 "html-proofer", "~> 3.6"
spec.add_development_dependency "rubocop", "~> 0.48"
spec.add_development_dependency "rubocop", "~> 0.5"
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "jekyll"
require "jekyll-seo-tag/version"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
# A drop representing the current page's author

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
class Drop < Jekyll::Drops::Drop

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
class Filters

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
# A drop representing the page image

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
# This module is deprecated, but is included in the Gem to avoid a breaking

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
class JSONLDDrop < Jekyll::Drops::Drop

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Jekyll
class SeoTag
# Mixin to share common URL-related methods between class

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Prevent bundler errors
module Liquid; class Tag; end; end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag::AuthorDrop do
let(:data) { {} }
let(:config) { { "author" => "site_author" } }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag::Drop do
let(:config) { { "title" => "site title" } }
let(:page_meta) { { "title" => "page title" } }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag::Filters do
let(:page) { make_page }
let(:site) { make_site }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag::ImageDrop do
let(:config) { { "title" => "site title" } }
let(:image) { nil }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag::JSONLDDrop do
let(:author) { "author" }
let(:image) { "image" }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag do
let(:page) { make_page }
let(:site) { make_site }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
RSpec.describe Jekyll::SeoTag do
let(:config) { { "title" => "site title" } }
let(:page_meta) { {} }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "jekyll"
require "jekyll-seo-tag"