Skip to content

Commit 3df12ca

Browse files
dblockCopilot
andcommitted
Unwrap UPGRADING.md prose, link Ruby 4.0 release notes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 674126d commit 3df12ca

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

UPGRADING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
### Module renamed from `Ruby::Enum` to `RubyEnum::Enum`
66

7-
Ruby 4.0 reserves the top-level `Ruby` module for the language itself, so this
8-
gem's `Ruby::Enum` namespace is no longer safe to use. As of `2.0.0`, the gem
9-
uses `RubyEnum::Enum` instead.
7+
Ruby 4.0 [reserves](https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/) the top-level `Ruby` module for the language itself, so this gem's `Ruby::Enum` namespace is no longer safe to use. As of `2.0.0`, the gem uses `RubyEnum::Enum` instead.
108

119
`gem 'ruby-enum', '< 2.0.0'`
1210

@@ -28,10 +26,7 @@ class Color
2826
end
2927
```
3028

31-
For backward compatibility, `Ruby::Enum` is still available as a deprecated
32-
alias for `RubyEnum::Enum` and will emit a deprecation warning when included.
33-
It will be removed in a future major version. Update your code to use
34-
`RubyEnum::Enum` and `RubyEnum::Enum::Case` directly.
29+
For backward compatibility, `Ruby::Enum` is still available as a deprecated alias for `RubyEnum::Enum` and will emit a deprecation warning when included. It will be removed in a future major version. Update your code to use `RubyEnum::Enum` and `RubyEnum::Enum::Case` directly.
3530

3631
See [#55](https://github.com/dblock/ruby-enum/issues/55) for more information.
3732

0 commit comments

Comments
 (0)