diatheke 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bb793eaf473921eaa0daf081dc2361f86b9af35
4
- data.tar.gz: 0220a2355cb328882df3d89ea20ac2595c701187
3
+ metadata.gz: d301ca77f55a88d030d8c1a6fa686a29d243065e
4
+ data.tar.gz: b9e6ff17ea09bfbc7a688b68b7c912d4896db2d5
5
5
  SHA512:
6
- metadata.gz: 39d969e16e7f8062bf51efa6dc7c0ec0f77e545b80d10b1d6b14d0249ea196c7b63c559ad5906714cbb80f3f77cd9077c276901ba477d1a10c132a79a807e573
7
- data.tar.gz: ff34f6dff4074b7868c78f911e71eeac78d9fde96366f60618e251542a9ada92a1a5277b413f99e8e2f1a050084fc38acb866a90cb8e937579558efb0435efef
6
+ metadata.gz: 230a4687f16e39a67198641c4648dfeb6628e5b44ddd5d6c32cbb679f333d510d27c4665cb2c63c0a0ae7527110366726b65a3d173234a692756a8152901af53
7
+ data.tar.gz: c3da598fa002042e670123ab775c0b5cf238465e77acfd39bb66fb8a2df600191c9a178aa1b2ebd369ddb177d0803fa350935a8cb0062b9f296519365aa3bb6b
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 0.2.1
2
+ Make tests work with different versions of KJV bible text.
3
+
1
4
  0.2.0
2
5
  Support output format option.
3
6
 
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.2.0'
8
+ version '0.2.1'
9
9
  summary 'This library is a wrapper of the diatheke command-line client of the sword project.'
10
10
  end
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: diatheke 0.2.1 ruby lib
3
+ #
4
+ # This file is automatically generated by rim.
5
+ # PLEASE DO NOT EDIT IT DIRECTLY!
6
+ # Change the values in Rim.setup in Rakefile instead.
7
+
8
+ Gem::Specification.new do |s|
9
+ s.name = "diatheke"
10
+ s.version = "0.2.1"
11
+
12
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
+ s.require_paths = ["lib"]
14
+ s.authors = ["Jan Friedrich"]
15
+ s.date = "2017-08-22"
16
+ s.description = ""
17
+ s.email = "janfri26@gmail.com"
18
+ s.files = ["COPYING", "Changelog", "README.md", "Rakefile", "diatheke.gemspec", "lib/diatheke.rb", "test/test_diatheke.rb"]
19
+ s.rubygems_version = "2.6.12"
20
+ s.summary = "This library is a wrapper of the diatheke command-line client of the sword project."
21
+
22
+ if s.respond_to? :specification_version then
23
+ s.specification_version = 4
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_development_dependency(%q<rim>, ["~> 2.11"])
27
+ else
28
+ s.add_dependency(%q<rim>, ["~> 2.11"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<rim>, ["~> 2.11"])
32
+ end
33
+ end
@@ -11,10 +11,10 @@ class TestDiatheke < Test::Unit::TestCase
11
11
  def test_passage
12
12
  res = Diatheke.passage('KJV', 'Joh 1:1-3', format: :plain)
13
13
  assert_equal ['John 1:1', 'John 1:2', 'John 1:3'], res.map {|e| e.key}
14
- assert_match /^In the beginning was the Word/, res.first.text
14
+ assert_match %r(^In the beginning was the Word), res.first.text
15
15
  res = Diatheke.passage('KJV', 'Joh 1:1-3', format: :CGI)
16
16
  assert_equal ['John 1:1', 'John 1:2', 'John 1:3'], res.map {|e| e.key}
17
- assert_match %r(^<span >: In the beginning was the Word.+the Word was God.</span><br />$), res.first.text
17
+ assert_match %r(^<span.*In the beginning was the Word.+the Word was God.</span><br */>$), res.first.text
18
18
  end
19
19
 
20
20
  def test_search_phrase
@@ -33,7 +33,7 @@ class TestDiatheke < Test::Unit::TestCase
33
33
  end
34
34
 
35
35
  def test_correct_split_with_colon_in_text
36
- res = Diatheke.passage('KJV', 'Joh 1:39').first
36
+ res = Diatheke.passage('KJV', 'Joh 1:39', format: :plain).first
37
37
  assert_equal 'John 1:39', res.key
38
38
  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.'
39
39
  assert_equal text, res.text
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.2.0
4
+ version: 0.2.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: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-08-22 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.10'
19
+ version: '2.11'
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.10'
26
+ version: '2.11'
27
27
  description: ''
28
28
  email: janfri26@gmail.com
29
29
  executables: []
@@ -34,6 +34,7 @@ files:
34
34
  - Changelog
35
35
  - README.md
36
36
  - Rakefile
37
+ - diatheke.gemspec
37
38
  - lib/diatheke.rb
38
39
  - test/test_diatheke.rb
39
40
  homepage: