From 0d1151191437e0da82a6a2cae7282cb8e137945a Mon Sep 17 00:00:00 2001 From: Anatoliy Yastreb Date: Tue, 24 May 2016 17:13:54 +0300 Subject: [PATCH] rubocop: fix link tag code style --- .rubocop.yml | 1 - lib/jekyll/tags/link.rb | 12 ++++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 50e89d45..2dd1e114 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -57,7 +57,6 @@ AllCops: - lib/jekyll/static_file.rb - lib/jekyll/stevenson.rb - lib/jekyll/tags/include.rb - - lib/jekyll/tags/link.rb - lib/jekyll/tags/post_url.rb - lib/jekyll/theme.rb - lib/jekyll/url.rb diff --git a/lib/jekyll/tags/link.rb b/lib/jekyll/tags/link.rb index f81e43b4..b2be1199 100644 --- a/lib/jekyll/tags/link.rb +++ b/lib/jekyll/tags/link.rb @@ -1,7 +1,7 @@ module Jekyll module Tags class Link < Liquid::Tag - TagName = 'link' + TAG_NAME = "link".freeze def initialize(tag_name, relative_path, tokens) super @@ -16,11 +16,15 @@ module Jekyll return document.url if document.relative_path == @relative_path end - raise ArgumentError, "Could not find document '#{@relative_path}' in tag '#{TagName}'.\n\n" \ - "Make sure the document exists and the path is correct." + raise ArgumentError, <