Skip to content

Commit 03f2b1d

Browse files
committed
Workaround for error in rspec-parameterized-table_syntax
``` An error occurred while loading ./spec/ruby_h_to_go/function_definition_spec.rb. Failure/Error: "RB_FIX2INT" | "RB_FIX2INT" NoMethodError: undefined method 'of_caller' for an instance of Binding # /home/runner/work/go-gem-wrapper/go-gem-wrapper/vendor/bundle/ruby/4.0.0+0/gems/rspec-parameterized-table_syntax-2.0.1/lib/rspec/parameterized/table_syntax/table_syntax_implement.rb:6:in '|' # ./spec/ruby_h_to_go/function_definition_spec.rb:542:in 'block (3 levels) in <top (required)>' # /home/runner/work/go-gem-wrapper/go-gem-wrapper/vendor/bundle/ruby/4.0.0+0/gems/rspec-parameterized-core-2.0.1/lib/rspec/parameterized/core.rb:105:in 'BasicObject#instance_eval' # /home/runner/work/go-gem-wrapper/go-gem-wrapper/vendor/bundle/ruby/4.0.0+0/gems/rspec-parameterized-core-2.0.1/lib/rspec/parameterized/core.rb:105:in 'RSpec::Parameterized::Core::ExampleGroupMethods#define_cases' # /home/runner/work/go-gem-wrapper/go-gem-wrapper/vendor/bundle/ruby/4.0.0+0/gems/rspec-parameterized-core-2.0.1/lib/rspec/parameterized/core.rb:84:in 'RSpec::Parameterized::Core::ExampleGroupMethods#with_them' # ./spec/ruby_h_to_go/function_definition_spec.rb:546:in 'block (2 levels) in <top (required)>' # ./spec/ruby_h_to_go/function_definition_spec.rb:527:in 'block in <top (required)>' # ./spec/ruby_h_to_go/function_definition_spec.rb:3:in '<top (required)>' ```
1 parent 37407b3 commit 03f2b1d

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ group :test do
2323
gem "steep"
2424
gem "test-unit"
2525
gem "uri", ">= 1.0.3"
26+
27+
# FIXME: Workaround for Ruby 4.0+
28+
# ref. https://github.com/banister/binding_of_caller/pull/90
29+
gem "binding_of_caller", github: "kivikakk/binding_of_caller", branch: "push-yrnnzolypxun"
2630
end
2731

2832
gemspec path: "./_gem/"

Gemfile.lock

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
GIT
2+
remote: https://github.com/kivikakk/binding_of_caller.git
3+
revision: c590ef401ab8311d9e6c2b55cb8a7fa4553c18ab
4+
branch: push-yrnnzolypxun
5+
specs:
6+
binding_of_caller (1.0.1)
7+
debug_inspector (>= 1.2.0)
8+
19
PATH
210
remote: _gem
311
specs:
@@ -23,8 +31,6 @@ GEM
2331
base64 (0.2.0)
2432
benchmark (0.4.0)
2533
bigdecimal (3.1.9)
26-
binding_of_caller (1.0.1)
27-
debug_inspector (>= 1.2.0)
2834
concurrent-ruby (1.3.5)
2935
connection_pool (2.5.0)
3036
csv (3.3.3)
@@ -179,6 +185,7 @@ PLATFORMS
179185
ruby
180186

181187
DEPENDENCIES
188+
binding_of_caller!
182189
go_gem!
183190
rake
184191
rake-compiler
@@ -202,7 +209,7 @@ CHECKSUMS
202209
base64 (0.2.0) sha256=0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507
203210
benchmark (0.4.0) sha256=0f12f8c495545e3710c3e4f0480f63f06b4c842cc94cec7f33a956f5180e874a
204211
bigdecimal (3.1.9) sha256=2ffc742031521ad69c2dfc815a98e426a230a3d22aeac1995826a75dabfad8cc
205-
binding_of_caller (1.0.1) sha256=2b2902abff4246ddcfbc4da9b69bc4a019e22aeb300c2ff6289a173d4b90b29a
212+
binding_of_caller (1.0.1)
206213
concurrent-ruby (1.3.5) sha256=813b3e37aca6df2a21a3b9f1d497f8cbab24a2b94cab325bffe65ee0f6cbebc6
207214
connection_pool (2.5.0) sha256=233b92f8d38e038c1349ccea65dd3772727d669d6d2e71f9897c8bf5cd53ebfc
208215
csv (3.3.3) sha256=7e2966befb7bdaf7d5e9b36e1de73e6a5e7a72f584f180a1726aec88a1b0a900

0 commit comments

Comments
 (0)