From ca7375a51b779e754553c4bb5bd98cbf14aca490 Mon Sep 17 00:00:00 2001 From: Martin Jorn Rogalla Date: Wed, 4 Mar 2015 22:31:19 +0100 Subject: [PATCH] Corrected quote-usage. Replaced [-1].eql with end_with. Signed-off-by: Martin Jorn Rogalla --- lib/jekyll/url.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/url.rb b/lib/jekyll/url.rb index 4bbbf92e..14b70631 100644 --- a/lib/jekyll/url.rb +++ b/lib/jekyll/url.rb @@ -29,7 +29,7 @@ module Jekyll @permalink = options[:permalink] if (@template || @permalink).nil? - raise ArgumentError, 'One of :template or :permalink must be supplied.' + raise ArgumentError, "One of :template or :permalink must be supplied." end end @@ -81,7 +81,7 @@ module Jekyll .gsub(/\A([^\/])/, '/\1') # Append a trailing slash to the URL if the unsanitized URL had one - url << '/' if in_url[-1].eql?('/') + url << "/" if in_url.end_with?("/") url end