lib/jekyll/assets/hooks/jekyll/setup.rb in jekyll-assets-2.1.3 vs lib/jekyll/assets/hooks/jekyll/setup.rb in jekyll-assets-2.2.0

- old
+ new

@@ -1,13 +1,11 @@ +# ---------------------------------------------------------------------------- # Frozen-string-literal: true -# Copyright: 2012-2015 - MIT License +# Copyright: 2012 - 2016 - MIT License # Encoding: utf-8 +# ---------------------------------------------------------------------------- Jekyll::Hooks.register :site, :after_reset do |jekyll| - Jekyll::Assets::Env.new(jekyll) - - jekyll.sprockets.excludes.each do |exclude| - unless jekyll.config["exclude"].grep(%r!\A#{Regexp.escape(exclude)}/?!).size > 0 - jekyll.config["exclude"] << exclude - end - end + Jekyll::Assets::Env.init( + jekyll + ) end