Skip to content

Commit f1610b3

Browse files
authored
Remove y Object extension in IRB
Fixes: #685 This feature can easily break how you use other gems like factory_bot or prawn. #747 (comment) > But I kind of think we should leave `psych/y` around. If people really want to use it they could require the file. If you miss the function in Kernel, you can require it interactively or add it to `.irbrc`: ```ruby require 'psych/y' ```
1 parent a05262f commit f1610b3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/psych/core_ext.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ def to_yaml options = {}
1414
end
1515
end
1616

17-
if defined?(::IRB)
18-
require_relative 'y'
19-
end
20-
2117
# Up to Ruby 3.4, Set was a regular object and was dumped as such
2218
# by Pysch.
2319
# Starting from Ruby 3.5 it's a core class written in C, so we have to implement

0 commit comments

Comments
 (0)