kj 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/kj.gemspec +3 -3
- data/lib/kj/chapter.rb +2 -2
- data/lib/kj/verse.rb +0 -1
- data/spec/verse_spec.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e6e12bb9a7c3c42861ed1ee51803ac1d59dbb87
|
4
|
+
data.tar.gz: 055fdbbba8d2160bc7b429aa97fcc16388004bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5821fdc3e2385bfb2501541aefb90721323e3d327dcd1ecce8b11770ba4349215cfcea714bc476865f9966dbfce9cade52db3bb864fe51791ec18731681efbd
|
7
|
+
data.tar.gz: cfb38ab333bec01f7f41e89bcd718dda9bd14ab9401a43ff10ce3a9df7f544fce2bab2ae67c82b5d82d47d9fbfcffdfd36946e08cf84f84181a5265a74ef796c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/kj.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: kj 0.0.
|
5
|
+
# stub: kj 0.0.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "kj"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["David John"]
|
14
|
-
s.date = "2015-07-
|
14
|
+
s.date = "2015-07-13"
|
15
15
|
s.description = "kj is a simple rubygem for accessing the King James Bible. It uses an embedded sqlite data store."
|
16
16
|
s.email = "djohn@arch-no.org"
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/kj/chapter.rb
CHANGED
@@ -21,8 +21,8 @@ module Kj
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def verse(verse_number)
|
24
|
-
verse = Db.query("SELECT id FROM verses WHERE chapter_id = ? AND number = ?", [@id,
|
25
|
-
Verse.new(id: verse['id'], book_name: book_name, chapter_id: @id, chapter_number: number, number: verse_number)
|
24
|
+
verse = Db.query("SELECT id FROM verses WHERE chapter_id = ? AND number = ?", [@id, verse_number], true)
|
25
|
+
Verse.new(id: verse['id'], book_name: book_name, chapter_id: @id, chapter_number: @number, number: verse_number)
|
26
26
|
end
|
27
27
|
|
28
28
|
def verses(*numbers)
|
data/lib/kj/verse.rb
CHANGED
data/spec/verse_spec.rb
CHANGED
@@ -13,8 +13,11 @@ describe "Kj" do
|
|
13
13
|
expect(verse.title).to eq("Genesis 1:1")
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
describe '#text' do
|
17
|
+
it 'returns the verse text' do
|
18
|
+
expect(bible.book(:gen).chapter(1).verse(1).text).to eq("In the beginning God created the heaven and the earth." )
|
19
|
+
expect(bible.book(:gen).chapter(1).verse(2).text).to_not eq("In the beginning God created the heaven and the earth." )
|
20
|
+
end
|
18
21
|
end
|
19
22
|
|
20
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David John
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|