gentoo-ebuilds/dev-ruby/sprockets/files/sprockets-3.7.2-kwargs.patch
Hans de Graaff db5adb0c74
dev-ruby/sprockets/files: add missing patches
Closes: https://bugs.gentoo.org/844961
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2022-05-16 13:13:49 +02:00

28 lines
829 B
Diff

From 6e6d6a70848cf006fabf48088cb4140c6d1858e7 Mon Sep 17 00:00:00 2001
From: pavel <pavel.rosicky@easy.cz>
Date: Tue, 1 Oct 2019 12:29:13 +0200
Subject: [PATCH] kwargs
---
test/test_performance.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/test_performance.rb b/test/test_performance.rb
index c9e76c00f..f2ffde606 100644
--- a/test/test_performance.rb
+++ b/test/test_performance.rb
@@ -16,12 +16,12 @@ def stat(filename)
$dir_entires_calls = nil
class << Dir
alias_method :original_entries, :entries
- def entries(dirname, *args)
+ def entries(dirname, **args)
if $dir_entires_calls
$dir_entires_calls[dirname.to_s] ||= []
$dir_entires_calls[dirname.to_s] << caller
end
- original_entries(dirname, *args)
+ original_entries(dirname, **args)
end
end