Skip to content

Restore SecureRandom.alphanumeric with 0.3.x behavior#36

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

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

Conversation

@hsbt
Copy link
Copy Markdown
Member

@hsbt hsbt commented Dec 16, 2024

Fixes #35

@hsbt hsbt force-pushed the restore-alphanumeric-method branch from 18f4649 to 2c8cdfb Compare December 16, 2024 05:08
@hsbt hsbt merged commit 168d94f into master Dec 16, 2024
@hsbt hsbt deleted the restore-alphanumeric-method branch December 16, 2024 05:35
@nevans
Copy link
Copy Markdown
Contributor

nevans commented Dec 20, 2024

@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 free to 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