diatheke 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog +4 -0
  3. data/Rakefile +1 -1
  4. data/lib/diatheke.rb +3 -2
  5. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b5eff7a78010a887c6983998b6873258d4b8975
4
- data.tar.gz: 21ece7232aa853f3444b1bef8944fd457d19a035
3
+ metadata.gz: c5b7ae5fc4f88ee0fa647202198780d172c53b1a
4
+ data.tar.gz: bf21942929da6a63e5279c0ac61abce6c30b8b4b
5
5
  SHA512:
6
- metadata.gz: fd56b38f1799ea49741eef17b7e33e234380860cd1e7501c13bd8c1cbad1a37565eda7fdf4bf389b0edd0cee34ed6d125f6c45927de4aaa59e9b30a3a5b8d565
7
- data.tar.gz: 4a8983afa8ce23e8405181ba2e8b0b1f39fba84f38c8fa1bc29b04c51ca97daea9c4d8d68b7bb4f2373c85025d34a4b30f80af3a8206f250801b0f751e22badb
6
+ metadata.gz: 8a7cefb85adff3b1970eb7dcf1099dfe03e2594db75239a4d6505459e80a928a93926cbf45e1923a0357029e70cfb207d957388bc3c1602f8abecf3324156284
7
+ data.tar.gz: 6c5279f2f648312fc4c39471a32a4eca487d7e58eac58a932bcecb9969075a4c0bf0edb57a63220087d94b1083680ac34220aa5571672ea3810cf63acf4a4bd6
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.2
2
+ Split passages at reference key to ensure correct handling of line breaks.
3
+
4
+
1
5
  0.1.1
2
6
  Handle line breaks in text correct.
3
7
 
data/Rakefile CHANGED
@@ -5,6 +5,6 @@ Rim.setup do
5
5
  name 'diatheke'
6
6
  authors 'Jan Friedrich'
7
7
  email 'janfri26@gmail.com'
8
- version '0.1.1'
8
+ version '0.1.2'
9
9
  summary 'This library is a wrapper of the diatheke command-line client of the sword project.'
10
10
  end
@@ -55,9 +55,10 @@ module Diatheke
55
55
  end
56
56
 
57
57
  def parse_passage(s)
58
- a = s.split(/\n\n+/)
59
- a.pop
58
+ a = s.split(/^(?=\w+ +\d+:\d+:)/)
59
+ a.last.sub!(/\(\w+\)$/, '')
60
60
  a.map do |v|
61
+ v.strip!
61
62
  k, t = v.split(': ', 2)
62
63
  Verse.new k, t
63
64
  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.1
4
+ version: 0.1.2
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-10-09 00:00:00.000000000 Z
11
+ date: 2016-02-08 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: '2.4'
19
+ version: '2.6'
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: '2.4'
26
+ version: '2.6'
27
27
  description: ''
28
28
  email: janfri26@gmail.com
29
29
  executables: []
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  version: '0'
56
56
  requirements: []
57
57
  rubyforge_project:
58
- rubygems_version: 2.4.1
58
+ rubygems_version: 2.5.2
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: This library is a wrapper of the diatheke command-line client of the sword