lib/jekyll/assets.rb in jekyll-assets-2.0.0.pre.beta4 vs lib/jekyll/assets.rb in jekyll-assets-2.0.0
- old
+ new
@@ -1,22 +1,21 @@
+# Frozen-string-literal: true
+# Copyright: 2012-2015 - MIT License
+# Encoding: utf-8
+
require "sprockets"
require "jekyll"
-Dir.glob(File.expand_path("hooks/*.rb", __dir__)).map do |file|
- require file
-end
-
module Jekyll
module Assets
- %W(patches/**/* cached config env hook logger version liquid/*
- hooks/* addons/{*,**/*}).each do |path|
- if path !~ /\*/
- require_relative "assets/#{path}"
- else
- Dir.glob(File.expand_path("assets/#{path}.rb", __dir__)). \
- map do |file|
- require file
- end
- end
- end
+ require_relative "assets/version"
+ require_relative "assets/patches"
+ require_relative "assets/cached"
+ require_relative "assets/config"
+ require_relative "assets/env"
+ require_relative "assets/hook"
+ require_relative "assets/logger"
+ require_relative "assets/hooks"
+ require_relative "assets/liquid"
+ require_relative "assets/addons"
end
end