Scriptures is a self contained copy of the LDS standard works as a ruby gem.
Thinking about making a scriptures REST services out of it. Maybe I am looking for a job at tech.lds.org? ah, nope.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install scriptures
Needs sqlite engine installed. My preference on OSX is to install through homebrew with:
$ brew install sqlite
The Scriptures Gem is basically a wrapper over Datamapper Models with the removal of
updates and db writes. All datamapper selectors are available and the models
are related. The Models are
Volume which are related
the way you would expect.
require 'scriptures' puts Scriptures::Verse.all(:scripture.like => "%faith%").first.scripture puts Scripures.search("faith").count
- Make search improvements.
- Improve Readme and describe API
- Maybe make some built in scopes (scripture mastery list etc)
- Eventually enable API for highlighting, notes and CLI
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request