diff --git a/.rubocop.yml b/.rubocop.yml index 84c8d1b7..2665a743 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,7 +16,6 @@ AllCops: - lib/jekyll/renderer.rb - lib/jekyll/site.rb - lib/jekyll/static_file.rb - - lib/jekyll/theme.rb - lib/jekyll/url.rb - lib/jekyll/utils.rb - lib/jekyll.rb diff --git a/lib/jekyll/theme.rb b/lib/jekyll/theme.rb index ed9cc68d..90536de7 100644 --- a/lib/jekyll/theme.rb +++ b/lib/jekyll/theme.rb @@ -27,7 +27,7 @@ module Jekyll def configure_sass return unless sass_path - require 'sass' + require "sass" Sass.load_paths << sass_path end @@ -38,7 +38,7 @@ module Jekyll return unless resolved_dir path = Jekyll.sanitized_path(root, resolved_dir) - path if Dir.exists?(path) + path if Dir.exist?(path) end def realpath_for(folder) @@ -50,7 +50,8 @@ module Jekyll def gemspec @gemspec ||= Gem::Specification.find_by_name(name) 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