bomdb 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/bomdb.gemspec +1 -1
- data/data/book_of_mormon.db +0 -0
- data/lib/bomdb/export/books.rb +3 -1
- data/lib/bomdb/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5218f7bf1edf9df9a3360e7488cecf285ea7ab02
|
4
|
+
data.tar.gz: cdede845e0f795e1a11d38fca5c4fec52007f640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa072e14a3b56055279761ae47f971282b771603a0df94066973cf5a908e87df17a0e883d26073709267943b22abccd82165cd5b80cd298a145bc908c7515d09
|
7
|
+
data.tar.gz: c8010f32c6fd199e7eb3d4a3eac3fd6248d033fe99771c03e368bcc8e1c6580b63cc0d9e919ce6a6f992ec235c1355f1a08d7573e9c1c1bfa20c3e0be46c3ed0
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bomdb (0.
|
4
|
+
bomdb (0.8.0)
|
5
5
|
colorize (~> 0.7)
|
6
6
|
constellation (~> 0.1)
|
7
7
|
levenshtein-ffi (~> 1.1)
|
8
|
-
mericope (~> 0.
|
8
|
+
mericope (~> 0.2.0)
|
9
9
|
sequel (~> 4.21)
|
10
10
|
sqlite3 (~> 1.3)
|
11
11
|
text_clean (~> 0)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
json (1.8.3)
|
33
33
|
levenshtein-ffi (1.1.0)
|
34
34
|
ffi (~> 1.9)
|
35
|
-
mericope (0.
|
35
|
+
mericope (0.2.0)
|
36
36
|
activesupport (~> 4.0)
|
37
37
|
minitest (5.9.0)
|
38
38
|
multi_json (1.12.1)
|
data/bomdb.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency 'colorize', '~> 0.7'
|
27
27
|
spec.add_dependency 'text_clean', '~> 0'
|
28
28
|
spec.add_dependency 'levenshtein-ffi', '~> 1.1'
|
29
|
-
spec.add_dependency 'mericope', '~> 0.
|
29
|
+
spec.add_dependency 'mericope', '~> 0.2.0'
|
30
30
|
|
31
31
|
# spec.add_development_dependency 'bundler', '~> 1.7'
|
32
32
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/data/book_of_mormon.db
CHANGED
Binary file
|
data/lib/bomdb/export/books.rb
CHANGED
@@ -6,7 +6,9 @@ module BomDB
|
|
6
6
|
def export_json
|
7
7
|
books = []
|
8
8
|
select_books.each do |b|
|
9
|
-
|
9
|
+
fields = [ b[:book_name], b[:book_group], b[:book_sort] ]
|
10
|
+
fields << @db[:verses].where(:book_id => b[:book_id]).max(:verse_chapter)
|
11
|
+
books << JSON::generate(fields, array_nl: ' ')
|
10
12
|
end
|
11
13
|
Export::Result.new(success: true, body: "[\n " + books.join(",\n ") + "\n]\n")
|
12
14
|
end
|
data/lib/bomdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bomdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duane Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.2.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.2.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|