Skip to content

Restore SecureRandom.alphanumeric with 0.3.x behavior - #36

Merged
hsbt merged 2 commits into
masterfrom
restore-alphanumeric-method
Dec 16, 2024
Merged

Restore SecureRandom.alphanumeric with 0.3.x behavior#36
hsbt merged 2 commits into
masterfrom
restore-alphanumeric-method

Conversation

@hsbt

@hsbthsbt commented Dec 16, 2024

Copy link
Copy Markdown
Member

Fixes#35

@hsbt
hsbtforce-pushed the restore-alphanumeric-method branch from 18f4649 to 2c8cdfbCompareDecember 16, 2024 05:08
@hsbt
hsbt merged commit 168d94f into masterDec 16, 2024
@hsbt
hsbt deleted the restore-alphanumeric-method branch December 16, 2024 05:35
@nevans

Copy link
Copy Markdown
Contributor

@hsbt Oops, I never made an issue for #34 (comment), so I guess the loss of #uuid_v4 and #uuid_v7 was missed.

yahonda added a commit to yahonda/rails that referenced this pull request Jan 6, 2026
This commit removes Ruby < 3.3 compatibility code since Rails main
branch requires Ruby 3.3.
- No need to check `SecureRandom.method(:alphanumeric).parameters.size`
in Ruby 3.3+ because it is always 2
ruby/securerandom#36
- Ruby 3.3 introduces `Range#overlap?`
https://bugs.ruby-lang.org/issues/19839
- Ruby 3.3 introcuces `Fiber#kill`
https://bugs.ruby-lang.org/issues/595
Refer to rails#56511
yahonda added a commit to yahonda/rails that referenced this pull request Jan 6, 2026
This commit removes Ruby < 3.3 compatibility code since Rails main
branch requires Ruby 3.3.
- No need to check `SecureRandom.method(:alphanumeric).parameters.size`
in Ruby 3.3+ because it is always 2
ruby/securerandom#36
- Ruby 3.3 introduces `Range#overlap?`
https://bugs.ruby-lang.org/issues/19839
- Ruby 3.3 introcuces `Fiber#kill`
https://bugs.ruby-lang.org/issues/595
Refer to rails#56511
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

From version 0.4.0 this package started to override my user.sessions.create method

2 participants

@hsbt@nevans