File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 5
5
* Custom Spring commands that implement ` #binstub_prelude ` will have that
6
6
snippet of code inserted into generated binstubs just after Spring is
7
7
set up. #329 - @merhard
8
+ * Change monkey-patched ` Kernel.raise ` from public to private (to match default Ruby behavior) #351 - @mattbrictson
8
9
9
10
## 1.1.3
10
11
Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ def shush_backtraces
270
270
end
271
271
end
272
272
end
273
+ private :raise
273
274
end
274
275
end
275
276
Original file line number Diff line number Diff line change @@ -350,4 +350,9 @@ def binstub_prelude
350
350
assert_success %(bin/rails runner 'p ENV["OMG"]') , stdout : "2"
351
351
assert_success %(bin/rails runner 'p ENV.key?("FOO")') , stdout : "false"
352
352
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
353
358
end
You can’t perform that action at this time.
0 commit comments