kj 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/db/kjb.db +0 -0
  4. data/kj.gemspec +4 -4
  5. data/vendor/import.rb +2 -1
  6. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e5bc05975546bb303db5a1ac35e77f3ebc7cf59
4
- data.tar.gz: 7d5bd62505d4160365820c4b4152caed2a55104d
3
+ metadata.gz: 8646289fa93bc6e79b9b35c4f448e4215ed5c516
4
+ data.tar.gz: 406b32c6cb397a96e920876af847d56930a6b0d6
5
5
  SHA512:
6
- metadata.gz: 97f03d719439a09f9a9adf0ff58adae73a049b89a21f85b0d4d41d2389e80d05d4ca3f98d6aab5b8005a708485c05139ad45c6af8e76bf5e3306117fb877506c
7
- data.tar.gz: 9c1005077d0161b3424525a6e4d841ec2877163b3a62179402f3101d625c7bdbcc5771bcee759b0a081f5252edff976af6b3f3eac8d724ddfb570b4b0120a1ac
6
+ metadata.gz: 48d726842ba6f5b742a302f84af6e974a5f3d58f5f8651dd93c06df023bc215dd9b7871c10036bd47c8fa644c4a049098711fc68e1fc3b099130339916788ee6
7
+ data.tar.gz: 01c36c2cd4fc52a2a4ca164983034bccc3ff961557243cd21d1be8cc3f4680045125a6febdf65d29a7516f8cac56b110516dac1ccd4819e7b25a0a32a4b7b4bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
data/db/kjb.db CHANGED
Binary file
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.11 ruby lib
5
+ # stub: kj 0.0.12 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "kj"
9
- s.version = "0.0.11"
9
+ s.version = "0.0.12"
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-26"
14
+ s.date = "2015-08-01"
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 = [
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
47
47
  ]
48
48
  s.homepage = "http://github.com/billguy/kj"
49
49
  s.licenses = ["MIT"]
50
- s.rubygems_version = "2.4.6"
50
+ s.rubygems_version = "2.4.8"
51
51
  s.summary = "kj is a simple rubygem for accessing the King James Bible"
52
52
 
53
53
  if s.respond_to? :specification_version then
@@ -21,7 +21,7 @@ csv.each do |row| # build books table
21
21
  end
22
22
 
23
23
  current_book_id, current_book_name, current_chapter_id, current_chapter_number = nil, nil, nil, nil # import chapters, verses
24
- File.readlines(File.join(path.parent.to_s, 'kjb.txt')).each do |line| #obtained from httpirbs://getbible.net/Bibles
24
+ File.readlines(File.join(path.parent.to_s, 'kjb.txt')).each do |line| #obtained from https://getbible.net/Bibles
25
25
  parts = line.split('||')
26
26
  book_name = parts[0]
27
27
  chapter_number = parts[1].to_i
@@ -29,6 +29,7 @@ File.readlines(File.join(path.parent.to_s, 'kjb.txt')).each do |line| #obtained
29
29
  verse_text = parts[3].chomp
30
30
  if current_book_name != book_name
31
31
  current_book_name = book_name
32
+ current_chapter_number = nil
32
33
  current_book_id = db.get_first_row("SELECT id FROM books WHERE name = ?", [book_name])['id']
33
34
  end
34
35
  if current_chapter_number != chapter_number
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.11
4
+ version: 0.0.12
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-26 00:00:00.000000000 Z
11
+ date: 2015-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.6
123
+ rubygems_version: 2.4.8
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: kj is a simple rubygem for accessing the King James Bible