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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8063723a091b8c2fbadc5a94ea90c2180c4ab071
4
- data.tar.gz: 8ae2be0acb52b34ef3695fee7c1ce4e2d6cbe701
3
+ metadata.gz: 5218f7bf1edf9df9a3360e7488cecf285ea7ab02
4
+ data.tar.gz: cdede845e0f795e1a11d38fca5c4fec52007f640
5
5
  SHA512:
6
- metadata.gz: c07e4c2ed540709504a521d4734835fa099932b48de13323186a276953f79d159c6c3b7b0848dec0a50edd76e42bbc04c2f978b60dded1af29c94ec1d4c7636e
7
- data.tar.gz: d5618ce75a1a22004ac204b693df216c392c0b94d7d927a5b81619edde507234a8573fdfb1b82fe234c15ad1eebe65bd6feb67746b6190a7b01a9161a79b1660
6
+ metadata.gz: fa072e14a3b56055279761ae47f971282b771603a0df94066973cf5a908e87df17a0e883d26073709267943b22abccd82165cd5b80cd298a145bc908c7515d09
7
+ data.tar.gz: c8010f32c6fd199e7eb3d4a3eac3fd6248d033fe99771c03e368bcc8e1c6580b63cc0d9e919ce6a6f992ec235c1355f1a08d7573e9c1c1bfa20c3e0be46c3ed0
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bomdb (0.7.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.1.1)
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.1.1)
35
+ mericope (0.2.0)
36
36
  activesupport (~> 4.0)
37
37
  minitest (5.9.0)
38
38
  multi_json (1.12.1)
@@ -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.1.1'
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'
Binary file
@@ -6,7 +6,9 @@ module BomDB
6
6
  def export_json
7
7
  books = []
8
8
  select_books.each do |b|
9
- books << JSON::generate([ b[:book_name], b[:book_group], b[:book_sort] ], array_nl: ' ')
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
@@ -1,3 +1,3 @@
1
1
  module BomDB
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.1
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-09 00:00:00.000000000 Z
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.1.1
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.1.1
124
+ version: 0.2.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement