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 3653b13
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 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
4 changes: 1 addition & 3 deletions lib/jekyll/assets/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ def parse_liquid(obj, ctx:)
end
when obj.is_a?(Array)
obj.map do |v|
parse_liquid(v, {
ctx: ctx,
})
parse_liquid(v, ctx: ctx)
end
when obj.is_a?(String)
k = Digest::SHA256.hexdigest(obj)[0, 6]
Expand Down

0 comments on commit 3653b13

Please sign in to comment.