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

Add Faker::Company.department generator #2737

Conversation

acuppy
Copy link
Contributor

@acuppy acuppy commented Apr 1, 2023

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

Faker::Company.department #=> "Information Technology"

- 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"`:
Copy link
Contributor

@thdaraujo thdaraujo left a 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

# @example
# Faker::Company.department #=> "Information Technology"
#
# @faker.version 1.6.0
Copy link
Contributor

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

@acuppy
Copy link
Contributor Author

acuppy commented Apr 12, 2023

Updated to include documentation and a revised version. Thank you for the feedback!

Copy link
Contributor

@thdaraujo thdaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@stefannibrasil stefannibrasil merged commit e32083a into faker-ruby:main Apr 14, 2023
@acuppy acuppy deleted the features/add-departments-to-company-generator branch February 9, 2024 19:56
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.

3 participants