This document is a list of user-visible feature changes since the 4.0.0 release, except for bug fixes.
Note that each entry is kept to a minimum, see links for details.
Note: We're only listing outstanding class updates.
-
Kernel
Kernel#autoload_relativeandModule#autoload_relativeare added. These methods work likeautoload, but resolve the file path relative to the file where the method is called, similar torequire_relative. This makes it easier to autoload constants from files in the same directory without hardcoding absolute paths or manipulating$LOAD_PATH. [Feature #15330]
-
Method
Method#source_location,Proc#source_location, andUnboundMethod#source_locationnow return extended location information with 5 elements:[path, start_line, start_column, end_line, end_column]. The previous 2-element format[path, line]can still be obtained by calling.take(2)on the result. [Feature #6012]Array#packaccepts a new formatRandrfor unpacking unsigned and signed LEB128 encoded integers. [Feature #21785]
-
Set
- A deprecated behavior,
Set#to_set,Range#to_set, andEnumerable#to_setaccepting arguments, was removed. [Feature #21390]
- A deprecated behavior,
We only list stdlib changes that are notable feature changes.
Other changes are listed in the following sections. We also listed release history from the previous bundled version that is Ruby 3.4.0 if it has GitHub releases.
- tsort 0.2.0
- win32-registry 0.1.2
- RubyGems 4.1.0.dev
- bundler 4.1.0.dev
- json 2.18.1
- openssl 4.0.1
- prism 1.9.0
- resolv 0.7.1
- stringio 3.2.1.dev
- strscan 3.1.7.dev
- syntax_suggest 2.0.3
- minitest 6.0.1
- test-unit 3.7.7
- rss 0.3.2
- net-imap 0.6.3
- rbs 3.10.3
- typeprof 0.31.1
- debug 1.11.1
- mutex_m 0.3.0
- resolv-replace 0.2.0
- syslog 0.4.0
- repl_type_completor 0.1.13
- pstore 0.2.1
- rdoc 7.2.0
- win32ole 1.9.3
- irb 1.17.0
Ruby 4.0 bundled RubyGems and Bundler version 4. see the following links for details.
A lot of work has gone into making Ractors more stable, performant, and usable. These improvements bring Ractor implementation closer to leaving experimental status.