Skip to content

Commit

Permalink
Merge pull request #66 from ashmaroli/bump-rubocop
Browse files Browse the repository at this point in the history
Use Rubocop w/ config inherited from Jekyll-3.8.0
  • Loading branch information
DirtyF committed Apr 23, 2018
2 parents 45fb7fd + b21b016 commit 1cce1d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .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: 2.2
TargetRubyVersion: 2.1
Include:
- lib/**/*.rb

Expand All @@ -22,7 +22,7 @@ Lint/HandleExceptions:
Exclude:
- lib/jekyll/watcher.rb

Lint/RescueWithoutErrorClass:
Style/RescueStandardError:
Exclude:
- lib/jekyll/watcher.rb

Expand Down
2 changes: 1 addition & 1 deletion jekyll-watch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "jekyll", "~> 3.6"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop", "0.51"
spec.add_development_dependency "rubocop", "~> 0.55.0"
end
4 changes: 2 additions & 2 deletions lib/jekyll/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def watch(options, site = nil)
unless options["serving"]
trap("INT") do
listener.stop
puts " Halting auto-regeneration."
Jekyll.logger.info "", "Halting auto-regeneration."
exit 0
end

Expand Down Expand Up @@ -128,7 +128,7 @@ def process(site, time)
Jekyll.logger.warn "Error:", e.message
Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information."
end
puts ""
Jekyll.logger.info ""
end
end
end

0 comments on commit 1cce1d0

Please sign in to comment.