Skip to content

Commit

Permalink
Fix a few more keyword argument issues
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Sep 7, 2023
1 parent 056d2c8 commit c58f94d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/jekyll/assets/patches/cached_environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/jekyll/assets/plugins/html/vid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions lib/jekyll/assets/plugins/srcmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c58f94d

Please sign in to comment.