File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 55* Custom Spring commands that implement ` #binstub_prelude ` will have that
66 snippet of code inserted into generated binstubs just after Spring is
77 set up. #329 - @merhard
8+ * Change monkey-patched ` Kernel.raise ` from public to private (to match default Ruby behavior) #351 - @mattbrictson
89
910## 1.1.3
1011
Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ def shush_backtraces
270270 end
271271 end
272272 end
273+ private :raise
273274 end
274275 end
275276
Original file line number Diff line number Diff line change @@ -350,4 +350,9 @@ def binstub_prelude
350350 assert_success %(bin/rails runner 'p ENV["OMG"]') , stdout : "2"
351351 assert_success %(bin/rails runner 'p ENV.key?("FOO")') , stdout : "false"
352352 end
353+
354+ test "Kernel.raise remains private" do
355+ expr = "p Kernel.private_instance_methods.include?(:raise)"
356+ assert_success %(bin/rails runner '#{ expr } ') , stdout : "true"
357+ end
353358end
You can’t perform that action at this time.
0 commit comments