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 +4 -4
- data/Changelog +3 -0
- data/Rakefile +1 -1
- data/diatheke.gemspec +33 -0
- data/test/test_diatheke.rb +3 -3
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d301ca77f55a88d030d8c1a6fa686a29d243065e
|
4
|
+
data.tar.gz: b9e6ff17ea09bfbc7a688b68b7c912d4896db2d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230a4687f16e39a67198641c4648dfeb6628e5b44ddd5d6c32cbb679f333d510d27c4665cb2c63c0a0ae7527110366726b65a3d173234a692756a8152901af53
|
7
|
+
data.tar.gz: c3da598fa002042e670123ab775c0b5cf238465e77acfd39bb66fb8a2df600191c9a178aa1b2ebd369ddb177d0803fa350935a8cb0062b9f296519365aa3bb6b
|
data/Changelog
CHANGED
data/Rakefile
CHANGED
data/diatheke.gemspec
ADDED
@@ -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
|
data/test/test_diatheke.rb
CHANGED
@@ -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
|
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
|
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.
|
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-
|
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.
|
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.
|
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:
|