Skip to content

Commit

Permalink
Revert "Add space force and coast guard to military (faker-ruby#2136)"
Browse files Browse the repository at this point in the history
This reverts commit b4a9fb0.
  • Loading branch information
droznyk authored Oct 23, 2020
1 parent 0ee59f6 commit 90a19af
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 217 deletions.
4 changes: 0 additions & 4 deletions doc/default/military.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,5 @@ Faker::Military.navy_rank #=> "Seaman"

Faker::Military.air_force_rank #=> "Captain"

Faker::Military.space_force_rank #=> "Senior Enlisted Advisor of the Space Force"

Faker::Military.coast_guard_rank #=> "Master Chief Petty Officer of the Coast Guard"

Faker::Military.dod_paygrade #=> "E-6"
```
26 changes: 0 additions & 26 deletions lib/faker/default/military.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,6 @@ def air_force_rank
fetch('military.air_force_rank')
end

##
# Produces a rank in the U.S. Space Force.
#
# @return [String]
#
# @example
# Faker::Military.space_force_rank #=> "Senior Enlisted Advisor of the Space Force"
#
# @faker.version next
def space_force_rank
fetch('military.space_force_rank')
end

##
# Produces a rank in the U.S. Coast Guard
#
# @return [String]
#
# @example
# Faker::Military.coast_guard_rank #=> "Master Chief Petty Officer of the Coast Guard"
#
# @faker.version next
def coast_guard_rank
fetch('military.coast_guard_rank')
end

##
# Produces a U.S. Department of Defense Paygrade.
#
Expand Down
184 changes: 5 additions & 179 deletions lib/locales/en/military.yml
Original file line number Diff line number Diff line change
@@ -1,182 +1,8 @@
en:
faker:
military:
army_rank:
- Private
- Private First Class
- Specialist
- Corporal
- Sergeant
- Staff Sergeant
- Sergeant First Class
- Master Sergeant
- First Sergeant
- Sergeant Major
- Command Sergeant Major
- Sergeant Major of the Army
- Second Lieutenant
- First Lieutenant
- Captain
- Major
- Lieutenant Colonel
- Colonel
- Brigadier General
- Major General
- Lieutenant General
- General
- General of the Army
- General of the Armies
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 Chief Petty Officer
- Command Senior Chief Petty Officer
- Master Chief Petty Officer
- Command Master Chief Petty Officer
- Fleet Master Chief Petty Officer
- Force 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
coast_guard_rank:
- Seaman Recruit
- Seaman Apprentice
- Seaman
- Petty Officer Third Class
- Petty Officer Second Class
- Petty Officer First Class
- Chief Petty Officer
- Senior Chief Petty Officer
- Master Chief Petty Officer
- Command Master Chief Petty Officer
- Area Command Master Chief Petty Officer
- Coast Guard Reserve Force Master Chief Petty Officer
- Master Chief Petty Officer of the Coast Guard
- 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
space_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
- Senior Enlisted Advisor of the Space Force
- Senior Enlisted Advisor to the Chairman
- Second Lieutenant
- First Lieutenant
- Captain
- Major
- Lieutenant Colonel
- Colonel
- Brigadier General
- Major General
- Lieutenant General
- General
dod_paygrade:
- E-1
- E-2
- E-3
- E-4
- E-5
- E-6
- E-7
- E-8
- E-9
- O-1
- O-1E
- O-2
- O-2E
- O-3
- O-3E
- O-4
- O-5
- O-6
- O-7
- O-8
- O-9
- O-10
- W-1
- W-2
- W-3
- W-4
- W-5
- Special
army_rank: ["Private","Private First Class","Specialist","Corporal","Sergeant","Staff Sergeant","Sergeant First Class","Master Sergeant","First Sergeant","Sergeant Major","Command Sergeant Major","Sergeant Major of the Army","Second Lieutenant","First Lieutenant","Captain","Major","Lieutenant Colonel","Colonel","Brigadier General","Major General","Lieutenant General","General","General of the Army","General of the Armies"]
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"]
8 changes: 0 additions & 8 deletions test/faker/default/test_faker_military.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ def test_air_force_rank
assert @tester.air_force_rank.match(/\w/)
end

def test_space_force_rank
assert @tester.space_force_rank.match(/\w/)
end

def test_coast_guard_rank
assert @tester.coast_guard_rank.match(/\w/)
end

def test_dod_paygrade
assert @tester.dod_paygrade.match(/\w/)
end
Expand Down

0 comments on commit 90a19af

Please sign in to comment.