You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run code using Faker on Ruby 3 with deprecation warnings enabled (RUBYOPT='-W:deprecated') and see that you get a warning about Random::DEFAULT being deprecated:
/Users/connorshea/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/faker-2.15.1/lib/faker.rb:32: warning: constant Random::DEFAULT is deprecated
Can probably reproduce this with the gem's own test suite, I assume.
Expected behavior
No deprecation warning should be printed because we shouldn't use anything that's deprecated.
Describe the bug
Faker causes deprecation warnings on Ruby 3.
To Reproduce
Run code using Faker on Ruby 3 with deprecation warnings enabled (
RUBYOPT='-W:deprecated'
) and see that you get a warning about Random::DEFAULT being deprecated:Can probably reproduce this with the gem's own test suite, I assume.
Expected behavior
No deprecation warning should be printed because we shouldn't use anything that's deprecated.
See the "Random" section of the NEWS.md file for 3.0.0 for more context and how to fix this warning: https://github.com/ruby/ruby/blob/v3_0_0/NEWS.md
Additional context
Ruby version: 3.0.0
Faker version: 2.15.1
The text was updated successfully, but these errors were encountered: