-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Rename Faker::show to Faker::Theater #2921
Rename Faker::show to Faker::Theater #2921
Conversation
@stefannibrasil Please review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! One small ask: could you rewrite the commit message with the details from the original PR:
This Pull Request has been created because of naming issues identified here: https://github.com/faker-ruby/faker/issues/2787
This PR replaces the usage of Faker::Show to be Faker::Theater for the following reasons:
The file was created under faker/music/show.rb but the class definition is Faker::Show At the very least the class should be name-spaced correctly as Faker::Music::Show
Faker::Show is ambiguous for its current usage. Faker::Music::Show would also be ambiguous. The class supports three methods: adult_musical kids_musical play that generate names for musicals and plays which all can be categorized under Theater.
It helps with tracking down what was the reason behind the change.
Do you mean the commit message or the PR description? |
@stefannibrasil I have updated the PR description for it. Let me know if you need me to rewrite the commit message as well. |
the commit message is better, thanks! |
@stefannibrasil Can we merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks ⭐
class << self | ||
## | ||
# Produces the name of a musical for an older audience | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::Alphanumeric.alpha | ||
# #=> "West Side Story" | ||
# Faker::Theater.adult_musical |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
This Pull Request has been created because of naming issues identified here: #2787
This PR replaces the usage of Faker::Show to be Faker::Theater for the following reasons:
The file was created under faker/music/show.rb but the class definition is Faker::Show At the very least the class should be name-spaced correctly as Faker::Music::Show
Faker::Show is ambiguous for its current usage. Faker::Music::Show would also be ambiguous. The class supports three methods: adult_musical kids_musical play that generate names for musicals and plays which all can be categorized under Theater.
Checklist
Before submitting the PR make sure the following are checked:
[Fix #]
If you're proposing a new generator or locale: