VotD - (Bible) Verse of the Day
VotD (Verse of the Day) is a Ruby Gem that wraps various web services that generate daily Bible Verses.
Currently the gem supports two VotD web services:
- Bible.org - NETBible Translation
- Bible Gateway - NIV Translations (Currently only supporting the default NIV, but planning on adding more.)
Other services are are planned:
If you are able to contribute modules for any of these, please see our CONTRIBUTING file. Let us know before you begin work in case someone else has a module in-progress.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install votd
To use VotD in your code:
require 'votd' votd = Votd.NetBible.new # or votd = Votd.BibleGateway.new votd.reference # Ephesians 2:8-9 votd.text # For by grace you are saved through faith... votd.date # 2012-03-24 votd.version # NETBible votd.to_html # <p class="votd-text">For by grace you are saved through faith...
Full text of HTML formatted VotD looks like the following
<p class="votd-text">For by grace you are saved through faith... it is not from works, so that no one can boast.</p> <p> <span class="votd-reference"><strong>Ephesians 2:8-9</strong></span> <span class="votd-version"><em>(NETBible)</em></span> </p>
You can then use the provided CSS classes to style the VotD.
For command-line usage see here
Documentation may be found here
Source code is available in our GitHub repository.
To submit bug, feature requests, patches see our Issues List on GitHub.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Write passing tests/specs (we use RSpec)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
See more on CONTRIBUTING.
See our CHANGELOG file.
See our TODO file.
Christopher Clarke firstname.lastname@example.org
Stephen Clarke email@example.com
(The MIT License)
© 2012 Christopher Clarke, Stephen Clarke. See LICENSE for details.