diff --git a/lib/jekyll/assets/patches/cached_environment.rb b/lib/jekyll/assets/patches/cached_environment.rb index 7c287aa8..1032be36 100644 --- a/lib/jekyll/assets/patches/cached_environment.rb +++ b/lib/jekyll/assets/patches/cached_environment.rb @@ -33,8 +33,8 @@ def initialize(env) # @return [Sprockets::Asset] # -- %i(find_asset find_asset!).each do |v| - define_method v do |*a| - super(*a).tap do |m| + define_method v do |*a, **b| + super(*a, **b).tap do |m| m&.environment = self end end diff --git a/lib/jekyll/assets/plugins/html/vid.rb b/lib/jekyll/assets/plugins/html/vid.rb index c5341a44..ab31e804 100644 --- a/lib/jekyll/assets/plugins/html/vid.rb +++ b/lib/jekyll/assets/plugins/html/vid.rb @@ -14,9 +14,9 @@ class Video < HTML # -- def run Nokogiri::HTML::Builder.with(doc) do |d| - d.video("No support for video.", args.to_h({ + d.video("No support for video.", args.to_h( html: true, skip: HTML.skips - })) + )) end end end diff --git a/lib/jekyll/assets/plugins/srcmap.rb b/lib/jekyll/assets/plugins/srcmap.rb index e14faa54..0731c305 100644 --- a/lib/jekyll/assets/plugins/srcmap.rb +++ b/lib/jekyll/assets/plugins/srcmap.rb @@ -23,10 +23,7 @@ module SrcMap # -- def self.map_path(env:, asset:) [ - path({ - asset: asset, - env: env, - }), + path(asset: asset, env: env), EXT, ].join end