diatheke 0.1.0 → 0.1.1

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: 9a586533e420d986d1e3beb2469605bd51867889
4
- data.tar.gz: c9de0f83d6b867a3df968239f47fa64044febe8b
3
+ metadata.gz: 3b5eff7a78010a887c6983998b6873258d4b8975
4
+ data.tar.gz: 21ece7232aa853f3444b1bef8944fd457d19a035
5
5
  SHA512:
6
- metadata.gz: d4ec8cf89dc3625cad33f43de5f92bbe9f64f1591896a5c99156354c8f4004061d74f4894e7daa23389d33b3758701442fe17b73b981d2109c58ddaa2024c0db
7
- data.tar.gz: 51f4f72717c351585e343ed1bd6996cd961ff6e7ab22dacd212870441d4b2bbd6bcbb73444a7ff520b730bfd5b2edbb8f5b6e8e96f49579a29fc8783c383f76f
6
+ metadata.gz: fd56b38f1799ea49741eef17b7e33e234380860cd1e7501c13bd8c1cbad1a37565eda7fdf4bf389b0edd0cee34ed6d125f6c45927de4aaa59e9b30a3a5b8d565
7
+ data.tar.gz: 4a8983afa8ce23e8405181ba2e8b0b1f39fba84f38c8fa1bc29b04c51ca97daea9c4d8d68b7bb4f2373c85025d34a4b30f80af3a8206f250801b0f751e22badb
data/Changelog CHANGED
@@ -1,2 +1,5 @@
1
+ 0.1.1
2
+ Handle line breaks in text correct.
3
+
1
4
  0.1.0
2
5
  First public release.
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
- require 'rim'
2
- require 'rim/check_version'
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.0'
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
@@ -55,7 +55,7 @@ module Diatheke
55
55
  end
56
56
 
57
57
  def parse_passage(s)
58
- a = s.split(/\n+/)
58
+ a = s.split(/\n\n+/)
59
59
  a.pop
60
60
  a.map do |v|
61
61
  k, t = v.split(': ', 2)
@@ -29,11 +29,16 @@ class TestDiatheke < Test::Unit::TestCase
29
29
  assert_equal ['John 1:42'], res
30
30
  end
31
31
 
32
- def test_correct_split
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.0
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-01-31 00:00:00.000000000 Z
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: 1.8.1
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: 1.8.1
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.2.1
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: []