Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faker Deprecation Warnings showing up in Rails Console #1610

Closed
aarona opened this issue May 9, 2019 · 1 comment · Fixed by #1651
Closed

Faker Deprecation Warnings showing up in Rails Console #1610

aarona opened this issue May 9, 2019 · 1 comment · Fixed by #1651

Comments

@aarona
Copy link
Contributor

aarona commented May 9, 2019

Describe the bug

Faker deprecation warnings show up in Rails console when trying to autocomplete DateTime.now.

Faker::Pokemon.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::ElderScrolls.name is deprecated; use Faker::Games::ElderScrolls.name instead. It will be removed on or after 2019-01-01.
Faker::ElderScrolls.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::Cat.name is deprecated; use Faker::Creature::Cat.name instead. It will be removed on or after 2019-01-01.
Faker::Cat.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::Dog.name is deprecated; use Faker::Creature::Dog.name instead. It will be removed on or after 2019-01-01.
Faker::Dog.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::RockBand.name is deprecated; use Faker::Music::RockBand.name instead. It will be removed on or after 2019-01-01.
Faker::RockBand.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::Pokemon.name is deprecated; use Faker::Games::Pokemon.name instead. It will be removed on or after 2019-01-01.
Faker::Pokemon.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::ElderScrolls.name is deprecated; use Faker::Games::ElderScrolls.name instead. It will be removed on or after 2019-01-01.
Faker::ElderScrolls.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::Cat.name is deprecated; use Faker::Creature::Cat.name instead. It will be removed on or after 2019-01-01.
Faker::Cat.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::Dog.name is deprecated; use Faker::Creature::Dog.name instead. It will be removed on or after 2019-01-01.
Faker::Dog.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.
NOTE: Faker::RockBand.name is deprecated; use Faker::Music::RockBand.name instead. It will be removed on or after 2019-01-01.
Faker::RockBand.name called from /home/aaron/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/irb/completion.rb:174.

To Reproduce

Should be easy to reproduce. Create a Rails application with Faker and run rails c then try to autocomplete DateTime.now. (to get beginning_of_hour method for example)

Expected behavior

This shouldn't be happening or possibly the deprecation warnings should be removed in next release?

Additional context

I'm using the current version (v 1.9.3)

dgcliff added a commit to NEU-Libraries/charon that referenced this issue May 22, 2019
@rmcsharry
Copy link

rmcsharry commented Jun 7, 2019

These exact same warnings (ElderScrolls, Cat, Dog etc) show up when we run rspec tests.
Also using v 1.9.3

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 a pull request may close this issue.

2 participants