lib/jekyll/theme.rb passing rubocop

This commit is contained in:
Derek Gottlieb 2016-05-28 13:51:13 -05:00
parent 14c1ac388f
commit b5cec7d335
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,6 @@ AllCops:
- lib/jekyll/renderer.rb - lib/jekyll/renderer.rb
- lib/jekyll/site.rb - lib/jekyll/site.rb
- lib/jekyll/static_file.rb - lib/jekyll/static_file.rb
- lib/jekyll/theme.rb
- lib/jekyll/url.rb - lib/jekyll/url.rb
- lib/jekyll/utils.rb - lib/jekyll/utils.rb
- lib/jekyll.rb - lib/jekyll.rb

View File

@ -27,7 +27,7 @@ module Jekyll
def configure_sass def configure_sass
return unless sass_path return unless sass_path
require 'sass' require "sass"
Sass.load_paths << sass_path Sass.load_paths << sass_path
end end
@ -38,7 +38,7 @@ module Jekyll
return unless resolved_dir return unless resolved_dir
path = Jekyll.sanitized_path(root, resolved_dir) path = Jekyll.sanitized_path(root, resolved_dir)
path if Dir.exists?(path) path if Dir.exist?(path)
end end
def realpath_for(folder) def realpath_for(folder)
@ -50,7 +50,8 @@ module Jekyll
def gemspec def gemspec
@gemspec ||= Gem::Specification.find_by_name(name) @gemspec ||= Gem::Specification.find_by_name(name)
rescue Gem::LoadError rescue Gem::LoadError
raise Jekyll::Errors::MissingDependencyException, "The #{name} theme could not be found." raise Jekyll::Errors::MissingDependencyException,
"The #{name} theme could not be found."
end end
end end
end end