Skip to content

Commit

Permalink
Merge pull request #241 from jekyll/pull/rubocop-update
Browse files Browse the repository at this point in the history
Style: Rubocop auto-correct
  • Loading branch information
DirtyF authored Nov 8, 2017
2 parents 7313ee7 + 59cd225 commit 62de1fb
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec
Expand Down
8 changes: 4 additions & 4 deletions jekyll-seo-tag.gemspec
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "jekyll"
require "jekyll-seo-tag/version"

Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/author_drop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jekyll
class SeoTag
# A drop representing the current page's author
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/drop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jekyll
class SeoTag
class Drop < Jekyll::Drops::Drop
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/filters.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jekyll
class SeoTag
class Filters
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/image_drop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jekyll
class SeoTag
# A drop representing the page image
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/json_ld.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/json_ld_drop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jekyll
class SeoTag
class JSONLDDrop < Jekyll::Drops::Drop
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/url_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jekyll
class SeoTag
# Mixin to share common URL-related methods between class
Expand Down
2 changes: 2 additions & 0 deletions lib/jekyll-seo-tag/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Prevent bundler errors
module Liquid; class Tag; end; end

Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag/author_drop_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Jekyll::SeoTag::AuthorDrop do
let(:data) { {} }
let(:config) { { "author" => "site_author" } }
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag/drop_spec.rb
Original file line number Diff line number Diff line change
@@ -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" } }
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag/filters_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Jekyll::SeoTag::Filters do
let(:page) { make_page }
let(:site) { make_site }
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag/image_drop_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Jekyll::SeoTag::ImageDrop do
let(:config) { { "title" => "site title" } }
let(:image) { nil }
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag/json_ld_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Jekyll::SeoTag::JSONLDDrop do
let(:author) { "author" }
let(:image) { "image" }
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag_integration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Jekyll::SeoTag do
let(:page) { make_page }
let(:site) { make_site }
Expand Down
2 changes: 2 additions & 0 deletions spec/jekyll_seo_tag_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Jekyll::SeoTag do
let(:config) { { "title" => "site title" } }
let(:page_meta) { {} }
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "jekyll"
require "jekyll-seo-tag"
Expand Down

0 comments on commit 62de1fb

Please sign in to comment.