-
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
Add Faker::Company.department generator #2737
Add Faker::Company.department generator #2737
Conversation
- Companies often include departments (e.g., "Information Technology), so this adds a few common department names to the Company generator. - All examples are strings with a few having '/' as well. Example: `Faker::Company.department #=> "Information Technology"`:
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 for your contribution!
Do you mind updating the docs? https://github.com/faker-ruby/faker/blob/main/doc/default/company.md
lib/faker/default/company.rb
Outdated
# @example | ||
# Faker::Company.department #=> "Information Technology" | ||
# | ||
# @faker.version 1.6.0 |
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.
Version needs to be marked as next as documented here: https://github.com/faker-ruby/faker/blob/main/CONTRIBUTING.md#yard-docs
Updated to include documentation and a revised version. Thank you for the feedback! |
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!
Summary
Companies often include departments (e.g., "Information Technology"), so this adds a few common department names to the Company generator.
All examples are strings, with a few having '/'.
Example