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 space force and coast guard to military #2136

Merged
merged 2 commits into from
Oct 5, 2020

Conversation

mathisto
Copy link
Contributor

@mathisto mathisto commented Oct 2, 2020

Issue#

No-Story

Description:

The military generator was lacking methods for both the "Coast Guard" and the newly minted "Space Force". I also added the missing paygrades for officers with years of enlisted service as well as warrant officers. Additionally, I fixed the deprecated style format for YAML arrays on the existing data.

All details verified against https://www.wikiwand.com/en/Uniformed_services_pay_grades_of_the_United_States

lib/faker/default/military.rb Outdated Show resolved Hide resolved
marines_rank: ["Private","Private First Class","Lance Corporal","Corporal","Sergeant","Staff Sergeant","Gunnery Sergeant","Master Sergeant","First Sergeant","Master Gunnery Sergeant","Sergeant Major","Sergeant Major of the Marine Corps","Second Lieutenant","First Lieutenant","Captain","Major","Lieutenant Colonel","Colonel","Brigadier General","Major General","Lieutenant General","General"]
navy_rank: ["Seaman Recruit","Fireman Recruit","Airman Recruit","Constructionman Recruit","Seaman Apprentice","Fireman Apprentice","Airman Apprentice","Constructionman Apprentice","Seaman","Fireman","Airman","Constructionman","Petty Officer Third Class","Petty Officer Second Class","Petty Officer First Class","Chief Petty Officer","Senior Petty Officer","Master Chief Petty Officer","Command Senior Chief Petty Officer","Command Master Chief Petty Officer","Fleet Master Chief Petty Officer","Master Chief Petty Officer of the Navy","Ensign","Lieutenant","Lieutenant Commander","Commander","Captain","Rear Admiral","Vice Admiral","Admiral","Fleet Admiral","Admiral of the Navy"]
air_force_rank: ["Airman Basic","Airman First Class","Senior Airman","Staff Sergeant","Technical Sergeant","Master Sergeant","Senior Master Sergeant","Chief Master Sergeant","Command Chief Master Sergeant","Chief Master Sergeant of the Air Force","Second Lieutenant","First Lieutenant","Captain","Major","Lieutenant Colonel","Colonel","Brigadier General","Major General","Lieutenant General","General","General of the Air Force"]
dod_paygrade: ["E-1","E-2","E-3","E-4","E-5","E-6","E-7","E-8","E-9","O-1","O-2","O-3","O-4","O-5","O-6","O-7","O-8","O-9","O-10","Special"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks 👍

@Zeragamba Zeragamba merged commit 9538777 into faker-ruby:master Oct 5, 2020
@Zeragamba
Copy link
Contributor

Thanks!

@mathisto
Copy link
Contributor Author

mathisto commented Oct 7, 2020

@Zeragamba Would you be able to opt in the gem to Hacktoberfest PR count?

@mathisto mathisto deleted the improve-military branch October 7, 2020 01:52
@Zeragamba
Copy link
Contributor

I can't enable it on the whole repo, but I hope the PR label helps :)

droznyk pushed a commit to droznyk/faker that referenced this pull request Oct 23, 2020
* Add space force and coast guard to military

* Fix silly typo
droznyk added a commit to droznyk/faker that referenced this pull request Oct 23, 2020
droznyk added a commit to droznyk/faker that referenced this pull request Oct 23, 2020
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.

2 participants