diatheke 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Changelog +3 -0
- data/Rakefile +4 -5
- data/lib/diatheke.rb +1 -1
- data/test/test_diatheke.rb +6 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5eff7a78010a887c6983998b6873258d4b8975
|
4
|
+
data.tar.gz: 21ece7232aa853f3444b1bef8944fd457d19a035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd56b38f1799ea49741eef17b7e33e234380860cd1e7501c13bd8c1cbad1a37565eda7fdf4bf389b0edd0cee34ed6d125f6c45927de4aaa59e9b30a3a5b8d565
|
7
|
+
data.tar.gz: 4a8983afa8ce23e8405181ba2e8b0b1f39fba84f38c8fa1bc29b04c51ca97daea9c4d8d68b7bb4f2373c85025d34a4b30f80af3a8206f250801b0f751e22badb
|
data/Changelog
CHANGED
data/Rakefile
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
require 'rim'
|
2
|
-
require 'rim/
|
3
|
-
require 'rim/gem'
|
4
|
-
require 'rim/test'
|
1
|
+
require 'rim/tire'
|
2
|
+
require 'rim/version'
|
5
3
|
|
6
4
|
Rim.setup do
|
7
5
|
name 'diatheke'
|
8
6
|
authors 'Jan Friedrich'
|
9
7
|
email 'janfri26@gmail.com'
|
10
|
-
version '0.1.
|
8
|
+
version '0.1.1'
|
9
|
+
summary 'This library is a wrapper of the diatheke command-line client of the sword project.'
|
11
10
|
end
|
data/lib/diatheke.rb
CHANGED
data/test/test_diatheke.rb
CHANGED
@@ -29,11 +29,16 @@ class TestDiatheke < Test::Unit::TestCase
|
|
29
29
|
assert_equal ['John 1:42'], res
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def test_correct_split_with_colon_in_text
|
33
33
|
res = Diatheke.passage('KJV', 'Joh 1:39').first
|
34
34
|
assert_equal 'John 1:39', res.key
|
35
35
|
text = 'He saith unto them, Come and see. They came and saw where he dwelt, and abode with him that day: for it was about the tenth hour.'
|
36
36
|
assert_equal text, res.text
|
37
37
|
end
|
38
38
|
|
39
|
+
def test_correct_split_on_line_break_in_text
|
40
|
+
res = Diatheke.passage('KJV', 'Joh 1:15')
|
41
|
+
assert_equal ['John 1:15'], res.map {|r| r.key}
|
42
|
+
end
|
43
|
+
|
39
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diatheke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Friedrich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rim
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '2.4'
|
20
20
|
type: :development
|
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:
|
26
|
+
version: '2.4'
|
27
27
|
description: ''
|
28
28
|
email: janfri26@gmail.com
|
29
29
|
executables: []
|
@@ -55,8 +55,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.4.1
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
|
-
summary:
|
61
|
+
summary: This library is a wrapper of the diatheke command-line client of the sword
|
62
|
+
project.
|
62
63
|
test_files: []
|