Project

bereshit

0.0
No commit activity in last 3 years
No release in over 3 years
Bereshit mean 'in the beginning...' in hebrew. This gems is a lorem ipsum based on Genesis 1:1 -- the first Chapter of the book of Genesis (Torah/Bible)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
~> 10.0
>= 0
 Project Readme

Bereshit

Bereshit mean 'in the beginning...' in hebrew. This gems is a lorem ipsum based on Genesis 1:1 the first Chapter of the book of Genesis (Torah/Bible)

Installation

Add this line to your application's Gemfile:

gem 'bereshit'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bereshit

Usage

require 'bereshit'

####Retrieve a paragraph

paragraph = Bereshit.paragraphs(1, false, false, 'hebrew')
puts paragraph
=> <p>בְּרֵאשִׁית בָּרָא אֱלֹהִים אֵת הַשָּׁמַיִם וְאֵת הָאָרֶץ:</p>

####retrieve 3 paragraphs

puts paragraphs = Bereshit.paragraphs(3, false, false, 'with_typo_fallback_to_english')
=> <p>And God made the beasts of the earth according to their kind and the cattle according to their kind, and all the creeping things of the ground according to their kind, and God saw that it was good.</p><p>And God said, "Let us make man in our image, after our likeness, and they shall rule over the fish of the sea and over the fowl of the heaven and over the animals and over all the earth and over all the creeping things that creep upon the earth."</p><p>And God created man in His image; in the image of God He created him; male and female He created them.</p>
#this was a String not an Array of 3 paragraph strings

####retrieve a paragraph without the <p> tag

puts Bereshit.paragraphs(1, true, false, 'english')
=> And God said, "Let the earth sprout vegetation, seed yielding herbs and fruit trees producing fruit according to its kind in which its seed is found, on the earth," and it was so.

####retrieve a paragraph without the full stop (.)

puts Bereshit.paragraphs(1, true, true, 'kreyol')
=> Bondye kreye moun. Li  l' pòtre ak li. Li kreye yo gason ak fi

####shortcut

Bareshit.p  #with all the parameters
#is equal to 
Bereshit.paragraphs #with all the parameters

####retrieve a sermon

title = Bereshit.sermon
#or
puts title = Bereshit.sermon('kreyol')
=> Getting Back To Bethel

In this version all the 'sermon' are in english... but feel free to fork, translate and add sermons. And the sermon are related to ALL the chapter of the book of Genesis so not only the first chapter.

####Locale

3 available locales 'hebrew', 'english' and 'kreyol' => that stands for Haitian kreyol

##todo add other locales :) add sermon ...

Contributing

guinslym

  1. Star it :)
  2. Fork it ( https://github.com/guinslym/bereshit/fork )
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Test it
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create a new Pull Request