lib/jekyll/favicon/static_file/sourceable.rb in jekyll-favicon-1.0.0.pre.1 vs lib/jekyll/favicon/static_file/sourceable.rb in jekyll-favicon-1.0.0.pre.2

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true -require 'jekyll/favicon/configuration/defaults' -require 'jekyll/favicon/utils' +require "jekyll/favicon/configuration/defaults" +require "jekyll/favicon/utils" module Jekyll module Favicon class StaticFile < Jekyll::StaticFile # Add source to a static file @@ -29,26 +29,26 @@ def self.source_normalize(options) case options when String source_dir, source_name = File.split options - { 'dir' => source_dir, 'name' => source_name } + {"dir" => source_dir, "name" => source_name} when Hash Utils.compact options else {} end end def self.source_filter(options) - options.fetch 'source', {} + options.fetch "source", {} end private def source_relative_pathname - Pathname.new(source['dir']) - .join(source['name']) - .cleanpath + Pathname.new(source["dir"]) + .join(source["name"]) + .cleanpath end def source_defaults sourceable_defaults end