Corrected quote-usage. Replaced [-1].eql with end_with.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
Martin Jorn Rogalla 2015-03-04 22:31:19 +01:00
parent 2ef9bae75a
commit ca7375a51b
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module Jekyll
@permalink = options[:permalink] @permalink = options[:permalink]
if (@template || @permalink).nil? 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
end end
@ -81,7 +81,7 @@ module Jekyll
.gsub(/\A([^\/])/, '/\1') .gsub(/\A([^\/])/, '/\1')
# Append a trailing slash to the URL if the unsanitized URL had one # 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 url
end end