From b5cec7d33569772b68d6148eb97894ac4b14ec81 Mon Sep 17 00:00:00 2001 From: Derek Gottlieb Date: Sat, 28 May 2016 13:51:13 -0500 Subject: [PATCH] lib/jekyll/theme.rb passing rubocop --- .rubocop.yml | 1 - lib/jekyll/theme.rb | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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