Skip to content

Commit

Permalink
Appease Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
pathawks committed Oct 6, 2016
1 parent 79d06e5 commit 1b2c1d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_gem:
jekyll: .rubocop.yml

AllCops:
TargetRubyVersion: 1.9
TargetRubyVersion: 2.0
Include:
- lib/*.rb

Expand Down
8 changes: 4 additions & 4 deletions lib/jekyll/feed_meta_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Jekyll
class FeedMetaTag < Liquid::Tag
def render(context)
@context = context
attrs = attributes.map { |k, v| %(#{k}="#{v}") }.join(' ')
attrs = attributes.map { |k, v| %(#{k}="#{v}") }.join(" ")
"<link #{attrs} />"
end

Expand All @@ -14,9 +14,9 @@ def config

def attributes
{
:type => 'application/atom+xml',
:rel => 'alternate',
:href => "#{url}/#{path}",
:type => "application/atom+xml",
:rel => "alternate",
:href => "#{url}/#{path}",
:title => title
}.keep_if { |_, v| v }
end
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll/jekyll-feed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def file_exists?(file_path)
# Generates contents for a file
def content_for_file(file_path, file_source_path)
file = PageWithoutAFile.new(@site, File.dirname(__FILE__), "", file_path)
file.content = File.read(file_source_path).gsub(/(?<!\")\s+([<{])/, '\1')
file.content = File.read(file_source_path).gsub(%r!(?<\!")\s+([<{])!, '\1')
file.data["layout"] = nil
file.data["sitemap"] = false
file.output
Expand Down

0 comments on commit 1b2c1d8

Please sign in to comment.