lib/jekyll/assets/hooks/sources.rb in jekyll-assets-2.0.0.pre.beta4 vs lib/jekyll/assets/hooks/sources.rb in jekyll-assets-2.0.0

- old
+ new

@@ -1,5 +1,9 @@ +# Frozen-string-literal: true +# Copyright: 2012-2015 - MIT License +# Encoding: utf-8 + Jekyll::Assets::Hook.register :env, :init do - asset_config.fetch("sources", []).each do |path| + (asset_config["sources"] ||= []).each do |path| append_path jekyll.in_source_dir(path) end end