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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3031136200358acc9baa9c59a417a1fd55d1f64
4
- data.tar.gz: 312b62fe01d13f8d84808a6a93d941809b7e94ab
3
+ metadata.gz: 1e6e12bb9a7c3c42861ed1ee51803ac1d59dbb87
4
+ data.tar.gz: 055fdbbba8d2160bc7b429aa97fcc16388004bc5
5
5
  SHA512:
6
- metadata.gz: 3e7b7797fc2c2cc5c34348eeabb345307b848c472db62bb6303c2f2dc6e04675063f578098bc8a20fe69a2b77a3e1223a7fb0a42e32d4b37be772173db44a54c
7
- data.tar.gz: e4f60e47856e1470f31d9691ba9b5c87425fe843e621d85aef0e92711ff073236a80b0ef963f2dd89808e2641ac776534c356a497d5e5e5fad64b86b484d3637
6
+ metadata.gz: d5821fdc3e2385bfb2501541aefb90721323e3d327dcd1ecce8b11770ba4349215cfcea714bc476865f9966dbfce9cade52db3bb864fe51791ec18731681efbd
7
+ data.tar.gz: cfb38ab333bec01f7f41e89bcd718dda9bd14ab9401a43ff10ce3a9df7f544fce2bab2ae67c82b5d82d47d9fbfcffdfd36946e08cf84f84181a5265a74ef796c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
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.3 ruby lib
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.3"
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-12"
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 = [
@@ -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, number], true)
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)
@@ -21,7 +21,6 @@ module Kj
21
21
  def text
22
22
  @text ||= begin
23
23
  verse = Db.query("SELECT chapter_id, text FROM verses WHERE id = ?", [@id], true)
24
- @chapter_id = verse['chapter_id']
25
24
  verse['text']
26
25
  end
27
26
  end
@@ -13,8 +13,11 @@ describe "Kj" do
13
13
  expect(verse.title).to eq("Genesis 1:1")
14
14
  end
15
15
 
16
- it '#text' do
17
- expect(verse.text).to eq("In the beginning God created the heaven and the earth." )
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.3
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-12 00:00:00.000000000 Z
11
+ date: 2015-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3