forked from faker-ruby/faker
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Faker::Educator and add docs (faker-ruby#1772)
* Refactor Faker::Educator. Reorganize the to do the dynamic generation of strings in the YML itself. Also reformat the YML to use one line per entry. * Add YARD docs for Faker::Educator. * Sorting things like a monkey * More sorting * Update educator.yml * Update educator.yml
- Loading branch information
1 parent
14717d4
commit 5792a82
Showing
2 changed files
with
129 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,74 @@ | ||
en: | ||
faker: | ||
educator: | ||
name: ['Marblewald', 'Mallowtown', 'Brookville', 'Flowerlake', 'Falconholt', 'Ostbarrow', 'Lakeacre', 'Clearcourt', 'Ironston', 'Mallowpond', 'Iceborough', 'Icelyn', 'Brighthurst', 'Bluemeadow', 'Vertapple', 'Ironbarrow'] | ||
secondary: ['High School', 'Secondary College', 'High'] | ||
name: | ||
- Bluemeadow | ||
- Brighthurst | ||
- Brookville | ||
- Clearcourt | ||
- Falconholt | ||
- Flowerlake | ||
- Iceborough | ||
- Icelyn | ||
- Ironbarrow | ||
- Ironston | ||
- Lakeacre | ||
- Mallowpond | ||
- Mallowtown | ||
- Marblewald | ||
- Ostbarrow | ||
- Vertapple | ||
secondary: | ||
- High | ||
- High School | ||
- Secondary College | ||
university: | ||
- "#{name} #{Educator.tertiary.university_type}" | ||
secondary_school: | ||
- "#{name} #{secondary}" | ||
campus: | ||
- "#{name} Campus" | ||
subject: | ||
- Applied Science (Psychology) | ||
- Architectural Technology | ||
- Arts | ||
- Biological Science | ||
- Biomedical Science | ||
- Business | ||
- Commerce | ||
- Communications | ||
- Computer Science | ||
- Creative Arts | ||
- Criminology | ||
- Design | ||
- Education | ||
- Engineering | ||
- Forensic Science | ||
- Health Science | ||
- Information Systems | ||
- Law | ||
- Medicine | ||
- Nursing | ||
- Psychology | ||
- Teaching | ||
degree: | ||
- "#{Educator.tertiary.degree.type} #{subject}" | ||
course_name: | ||
- "#{subject} #{Educator.tertiary.degree.course_number}" | ||
tertiary: | ||
type: ['College', 'University', 'Technical College', 'TAFE'] | ||
university_type: | ||
- College | ||
- TAFE | ||
- Technical College | ||
- University | ||
degree: | ||
subject: ['Arts', 'Business', 'Education', 'Applied Science (Psychology)', 'Architectural Technology', 'Biological Science', 'Biomedical Science', 'Commerce', 'Communications', 'Creative Arts', 'Criminology', 'Design', 'Engineering', 'Forensic Science', 'Health Science', 'Information Systems', 'Computer Science', 'Law', 'Nursing', 'Medicine', 'Psychology', 'Teaching'] | ||
type: ['Associate Degree in', 'Bachelor of', 'Master of'] | ||
course_number: ['1##', '2##', '3##', '4##', '5##'] | ||
type: | ||
- Associate Degree in | ||
- Bachelor of | ||
- Master of | ||
course_number: | ||
- 1## | ||
- 2## | ||
- 3## | ||
- 4## | ||
- 5## |