Skip to content

Commit c58f94d

Browse files
committed
Fix a few more keyword argument issues
1 parent 056d2c8 commit c58f94d

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

lib/jekyll/assets/patches/cached_environment.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def initialize(env)
3333
# @return [Sprockets::Asset]
3434
# --
3535
%i(find_asset find_asset!).each do |v|
36-
define_method v do |*a|
37-
super(*a).tap do |m|
36+
define_method v do |*a, **b|
37+
super(*a, **b).tap do |m|
3838
m&.environment = self
3939
end
4040
end

lib/jekyll/assets/plugins/html/vid.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class Video < HTML
1414
# --
1515
def run
1616
Nokogiri::HTML::Builder.with(doc) do |d|
17-
d.video("No support for video.", args.to_h({
17+
d.video("No support for video.", args.to_h(
1818
html: true, skip: HTML.skips
19-
}))
19+
))
2020
end
2121
end
2222
end

lib/jekyll/assets/plugins/srcmap.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ module SrcMap
2323
# --
2424
def self.map_path(env:, asset:)
2525
[
26-
path({
27-
asset: asset,
28-
env: env,
29-
}),
26+
path(asset: asset, env: env),
3027
EXT,
3128
].join
3229
end

0 commit comments

Comments
 (0)