bomdb 0.9.0 → 1.0.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
- SHA1:
3
- metadata.gz: 9ef43d46210651b66ea43b74d7c839eb46016fb0
4
- data.tar.gz: d31dc13344a3dc942ff850f368d7879819440ec2
2
+ SHA256:
3
+ metadata.gz: d391db9b1317f730d3995d91e00dc65fb5253effb72c8cabeb60e8b09fdcfcd8
4
+ data.tar.gz: d4ca17fc755eaed2ba74468fbbb4ec2240f7ed597bde366ddeff344b6f475aa7
5
5
  SHA512:
6
- metadata.gz: ed8edfd7c1df4ed59bba75cf4f7688429a0ec4776cb199ed43f3fb0ef6749123e9ee9d4284516ba4492fb877937690e04cf9ae21a22eb11462a61c42c4bf09ae
7
- data.tar.gz: 7be412d55eb0d296467807f163501acb5cf88ed1d37b8c728f8364df8def4b9610114b2263aaae1bf75e09ac9f4f0a99cf09a221c39dabb7e44146d9f63a8fa3
6
+ metadata.gz: 7e779bce241a0e1f07e4c4c782e09f159ad09f9abc1fa50027c39a0643c8ecdbd9cc8836721e3ad71e843ceb289bbb31fd1b5baa2e721601edb7119db23d3660
7
+ data.tar.gz: e45889159a8eab75aeb62b8d006a01b40f9842aeaed3dcfe9e7465208a9710feee5d698936947ec1e2c8b2a00d3284e84262dbcb209bbb6a2fe80bc78319a723
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 3.0.2
data/Gemfile.lock CHANGED
@@ -1,61 +1,59 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bomdb (0.8.0)
4
+ bomdb (1.0.0)
5
5
  colorize (~> 0.7)
6
6
  constellation (~> 0.1)
7
- levenshtein-ffi (~> 1.1)
8
- mericope (~> 0.2.0)
9
- sequel (~> 4.21)
10
- sqlite3 (~> 1.3)
7
+ damerau-levenshtein (~> 1.3)
8
+ mericope (~> 0.3)
9
+ sequel (~> 5.68)
10
+ sqlite3 (~> 1.6)
11
11
  text_clean (~> 0)
12
- thor (~> 0.19)
12
+ thor (~> 1.2)
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activesupport (4.2.10)
18
- i18n (~> 0.7)
17
+ activesupport (5.2.8.1)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 0.7, < 2)
19
20
  minitest (~> 5.1)
20
- thread_safe (~> 0.3, >= 0.3.4)
21
21
  tzinfo (~> 1.1)
22
- byebug (4.0.5)
23
- columnize (= 0.9.0)
22
+ byebug (11.1.3)
24
23
  colorize (0.8.1)
25
- columnize (0.9.0)
26
- concurrent-ruby (1.0.5)
24
+ concurrent-ruby (1.2.2)
27
25
  constellation (0.1.1)
28
26
  multi_json
29
- diff-lcs (1.3)
30
- ffi (1.9.23)
31
- i18n (0.9.5)
27
+ damerau-levenshtein (1.3.3)
28
+ diff-lcs (1.5.0)
29
+ i18n (1.13.0)
32
30
  concurrent-ruby (~> 1.0)
33
- levenshtein-ffi (1.1.0)
34
- ffi (~> 1.9)
35
- mericope (0.2.0)
36
- activesupport (~> 4.0)
37
- minitest (5.11.3)
38
- multi_json (1.13.1)
31
+ mericope (0.3.0)
32
+ activesupport (~> 5.0)
33
+ mini_portile2 (2.8.2)
34
+ minitest (5.18.0)
35
+ multi_json (1.15.0)
39
36
  rake (10.5.0)
40
- rspec (3.7.0)
41
- rspec-core (~> 3.7.0)
42
- rspec-expectations (~> 3.7.0)
43
- rspec-mocks (~> 3.7.0)
44
- rspec-core (3.7.1)
45
- rspec-support (~> 3.7.0)
46
- rspec-expectations (3.7.0)
37
+ rspec (3.12.0)
38
+ rspec-core (~> 3.12.0)
39
+ rspec-expectations (~> 3.12.0)
40
+ rspec-mocks (~> 3.12.0)
41
+ rspec-core (3.12.2)
42
+ rspec-support (~> 3.12.0)
43
+ rspec-expectations (3.12.3)
47
44
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.7.0)
49
- rspec-mocks (3.7.0)
45
+ rspec-support (~> 3.12.0)
46
+ rspec-mocks (3.12.5)
50
47
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.7.0)
52
- rspec-support (3.7.1)
53
- sequel (4.49.0)
54
- sqlite3 (1.3.13)
48
+ rspec-support (~> 3.12.0)
49
+ rspec-support (3.12.0)
50
+ sequel (5.68.0)
51
+ sqlite3 (1.6.3)
52
+ mini_portile2 (~> 2.8.0)
55
53
  text_clean (0.2.2)
56
- thor (0.20.0)
54
+ thor (1.2.2)
57
55
  thread_safe (0.3.6)
58
- tzinfo (1.2.5)
56
+ tzinfo (1.2.11)
59
57
  thread_safe (~> 0.1)
60
58
 
61
59
  PLATFORMS
@@ -63,9 +61,9 @@ PLATFORMS
63
61
 
64
62
  DEPENDENCIES
65
63
  bomdb!
66
- byebug (~> 4.0)
64
+ byebug (~> 11.0)
67
65
  rake (~> 10.0)
68
66
  rspec (~> 3.2)
69
67
 
70
68
  BUNDLED WITH
71
- 1.12.5
69
+ 2.2.22
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 Duane Johnson
1
+ Copyright (c) 2015-2023 Duane Johnson
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  BomDB is a command-line tool (packaged as a Ruby gem) that provides multiple editions of the Book of Mormon in machine-readable form. At its heart is a sqlite3 database--data can be imported or exported using various formats and options.
4
4
 
5
- See the blog post [DIY Mosiah Priority with BomDB](http://blog.wordtree.org/2015/04/17/diy-mosiah-priority/) for further example usage.
5
+ See the blog post [DIY Mosiah Priority with BomDB](http://wordtree.org/news/diy-mosiah-priority) for further example usage.
6
6
 
7
7
  ## Usage
8
8
 
@@ -269,7 +269,9 @@ end
269
269
 
270
270
  ## Installation
271
271
 
272
- Ruby 2.1 is required. You should also have a normal build environment set up, e.g. command line tools on the mac, or GCC on Linux.
272
+ Ruby 2.1 is required. You should also have a normal build environment set up, e.g. command line tools on the mac, or GCC on Linux in order to build native dependencies such as `ffi`, `levenshtein-ffi`, `sqlite3`, `text)clean`, and `byebug`.
273
+
274
+ You may need to install sqlite3 dev dependencies. e.g. on Ubuntu: `sudo apt install libsqlite3-dev`
273
275
 
274
276
  To install BomDB for use on the command line, use `gem install`:
275
277
 
data/bomdb.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["duane.johnson@gmail.com"]
11
11
  spec.summary = %q{Book of Mormon Database}
12
12
  spec.description = %q{A command-line queryable database of multiple editions of the Book of Mormon}
13
- spec.homepage = "http://bomdb.wordtree.org"
13
+ spec.homepage = "https://github.com/wordtreefoundation/bomdb"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject{ |f| f =~ %r|data/.*\.json| }
@@ -19,17 +19,17 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
  spec.bindir = "bin"
21
21
 
22
- spec.add_dependency 'sequel', '~> 4.21'
23
- spec.add_dependency 'sqlite3', '~> 1.3'
24
- spec.add_dependency 'thor', '~> 0.19'
25
- spec.add_dependency 'constellation', '~> 0.1'
26
- spec.add_dependency 'colorize', '~> 0.7'
27
- spec.add_dependency 'text_clean', '~> 0'
28
- spec.add_dependency 'levenshtein-ffi', '~> 1.1'
29
- spec.add_dependency 'mericope', '~> 0.2.0'
22
+ spec.add_dependency 'sequel', '~> 5.68'
23
+ spec.add_dependency 'sqlite3', '~> 1.6'
24
+ spec.add_dependency 'thor', '~> 1.2'
25
+ spec.add_dependency 'constellation', '~> 0.1'
26
+ spec.add_dependency 'colorize', '~> 0.7'
27
+ spec.add_dependency 'text_clean', '~> 0'
28
+ spec.add_dependency 'damerau-levenshtein', '~> 1.3'
29
+ spec.add_dependency 'mericope', '~> 0.3'
30
30
 
31
31
  # spec.add_development_dependency 'bundler', '~> 1.7'
32
32
  spec.add_development_dependency 'rake', '~> 10.0'
33
- spec.add_development_dependency 'byebug', '~> 4.0'
33
+ spec.add_development_dependency 'byebug', '~> 11.0'
34
34
  spec.add_development_dependency 'rspec', '~> 3.2'
35
35
  end
@@ -1,5 +1,5 @@
1
1
  require 'strscan'
2
- require 'levenshtein'
2
+ require 'damerau-levenshtein'
3
3
 
4
4
  module BomDB
5
5
  module Diff
@@ -35,8 +35,8 @@ module BomDB
35
35
  # the insertion.
36
36
 
37
37
  candidates = (0..(insertion.size-1)).map do |i|
38
- d1 = Levenshtein.distance(del_before, insertion[0..i])
39
- d2 = Levenshtein.distance(del_after, insertion[(i + 1)..-1])
38
+ d1 = DamerauLevenshtein.distance(del_before, insertion[0..i])
39
+ d2 = DamerauLevenshtein.distance(del_after, insertion[(i + 1)..-1])
40
40
  d3 = insertion[i] == ' ' ? 1 : 0
41
41
  [ d1 + d2 + d3, insertion[0..i].chomp, insertion[(i + 1)..-1].chomp ]
42
42
  end.sort_by{ |a| a.first }
data/lib/bomdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BomDB
2
- VERSION = "0.9.0"
2
+ VERSION = "1.0.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.9.0
4
+ version: 1.0.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: 2018-03-06 00:00:00.000000000 Z
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.21'
19
+ version: '5.68'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.21'
26
+ version: '5.68'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: '1.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.19'
47
+ version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.19'
54
+ version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: constellation
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -95,33 +95,33 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: levenshtein-ffi
98
+ name: damerau-levenshtein
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.1'
103
+ version: '1.3'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.1'
110
+ version: '1.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: mericope
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.2.0
117
+ version: '0.3'
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.2.0
124
+ version: '0.3'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '4.0'
145
+ version: '11.0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '4.0'
152
+ version: '11.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -213,7 +213,7 @@ files:
213
213
  - spec/bomdb/schema_spec.rb
214
214
  - spec/bomdb_spec.rb
215
215
  - spec/spec_helper.rb
216
- homepage: http://bomdb.wordtree.org
216
+ homepage: https://github.com/wordtreefoundation/bomdb
217
217
  licenses:
218
218
  - MIT
219
219
  metadata: {}
@@ -232,8 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.5.1
235
+ rubygems_version: 3.3.5
237
236
  signing_key:
238
237
  specification_version: 4
239
238
  summary: Book of Mormon Database