gentoo/dev-ruby/flexmock/files/flexmock-2.3.6-ruby30-1.patch
Hans de Graaff 08de07e693
dev-ruby/flexmock: add ruby30, ruby31, ruby32
Use debian patches from upstream pull request that is still pending.

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2023-03-26 12:42:32 +02:00

26 lines
921 B
Diff

From f63ba0916132e16d5eeb1a5c1ad868b0169bf7fc Mon Sep 17 00:00:00 2001
From: Daniel Leidert <dleidert@debian.org>
Date: Mon, 22 Nov 2021 01:34:25 +0100
Subject: [PATCH] Properly accept argument and keywords
---
lib/flexmock/composite_expectation.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/flexmock/composite_expectation.rb b/lib/flexmock/composite_expectation.rb
index 370046f..fbc8e54 100644
--- a/lib/flexmock/composite_expectation.rb
+++ b/lib/flexmock/composite_expectation.rb
@@ -16,9 +16,9 @@ def add(expectation)
end
# Apply the constraint method to all expectations in the composite.
- def method_missing(sym, *args, &block)
+ def method_missing(sym, *args, **keywords, &block)
@expectations.each do |expectation|
- expectation.send(sym, *args, &block)
+ expectation.send(sym, *args, **keywords, &block)
end
self
end