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 Bibles class with King James subclass #1696

Merged
merged 1 commit into from
May 18, 2020

Conversation

jbergenson
Copy link
Contributor

Issue#

#1641

Description:

After viewing issue #1641, I thought I'd take a stab at adding a Bible class to Faker. In my branch, I initially included Bible as a subclass of Books, but I thought that making Bibles its own class might make it more extensible should anyone want to add other versions.

The yaml file is quite large but I've attempted to keep read times down by only accessing one book at a time.

I've included the King James English version, but there are several others that might eventually be included in the class. All tests and checks passing locally.

Copy link
Contributor

@Zeragamba Zeragamba left a comment

Choose a reason for hiding this comment

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

Changes look good to me. Would also be good to alias some of these to the Bibles namespace do that users could do Faker::Bibles.verse()

@Zeragamba
Copy link
Contributor

Thanks!

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