scripref 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +6 -0
- data/lib/scripref/english.rb +1 -1
- data/lib/scripref/formatter.rb +6 -1
- data/lib/scripref/german.rb +3 -4
- data/lib/scripref/include.rb +1 -1
- data/lib/scripref/parser.rb +1 -1
- data/lib/scripref/processor.rb +1 -1
- data/lib/scripref.rb +10 -10
- data/regtest/formatter.rb +4 -1
- data/regtest/parser.rb +4 -1
- data/regtest/processor.rb +4 -1
- data/test/test_bookname.rb +1 -1
- data/test/test_english.rb +1 -1
- data/test/test_formatter.rb +6 -1
- data/test/test_german.rb +1 -1
- data/test/test_helper.rb +1 -1
- data/test/test_integration.rb +1 -1
- data/test/test_parser.rb +1 -1
- data/test/test_passage.rb +2 -1
- data/test/test_pipelining.rb +2 -2
- data/test/test_processor.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e94d9ac076852eecdb1678b74a3ce57335ac2bdddf72103a9ccd07180d5391bf
|
4
|
+
data.tar.gz: 5149ff60646c8ec4284eb6ed82457b65032b901a6d8621d746ec5fe4ffc145fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66e9c0fd63d8c6b651e3a7436e01b0b1973cdd51f98ea644e72d568596631d0287814b7b24ae3e007210c0aa5df0091db2774bcbd5ef1e771ae9d6d0f25ac08c
|
7
|
+
data.tar.gz: 7d17267a34064323d23aaf8f3ca2da04f132b50c27180d758f22591f1bd922e99ae53156be7f125822cbcd98510e9be068436f416d5c9314f06424163bdbc830
|
data/Changelog
CHANGED
data/lib/scripref/english.rb
CHANGED
data/lib/scripref/formatter.rb
CHANGED
data/lib/scripref/german.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
4
|
+
require_relative 'const_reader'
|
5
5
|
|
6
6
|
module Scripref
|
7
7
|
|
@@ -26,9 +26,8 @@ module Scripref
|
|
26
26
|
Hohel|Hoh|Hl, Jes, Jer, Klag, Hes, Dan, Hos, Joel, Amos|Am, Obad|Ob,
|
27
27
|
Jona|Jon, Mich|Mi, Nah, Hab, Zef, Hag, Sach, Mal, Mat|Mt, Mar|Mr, Luk|Lk,
|
28
28
|
Joh|Jh, Apg, Röm|Rö, 1. Kor|1Ko, 2. Kor|2Ko, Gal, Eph, Phil, Kol,
|
29
|
-
1. Thes|1Thes|1Th, 2. Thes|2Thes|2Th, 1. Tim|1Tim, 2. Tim|2Tim, Tit, Philem|Phm, Heb,
|
30
|
-
|
31
|
-
3. Joh|3Joh|3Jo, Jud, Off
|
29
|
+
1. Thes|1.Thes|1Thes|1Th, 2. Thes|2.Thes|2Thes|2Th, 1. Tim|1Tim, 2. Tim|2Tim, Tit, Philem|Phm, Heb, Jak, 1. Pet|1Pet|1Pe, 2. Pet|2Pet|2Pe, 1.
|
30
|
+
Joh|1Joh|1Jo, 2. Joh|2Joh|2Jo, 3. Joh|3Joh|3Jo, Jud, Off
|
32
31
|
END
|
33
32
|
|
34
33
|
# Array of book names.
|
data/lib/scripref/include.rb
CHANGED
data/lib/scripref/parser.rb
CHANGED
data/lib/scripref/processor.rb
CHANGED
data/lib/scripref.rb
CHANGED
@@ -5,16 +5,16 @@ require 'delegate'
|
|
5
5
|
|
6
6
|
module Scripref
|
7
7
|
|
8
|
-
VERSION = '1.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
VERSION = '1.2.0'
|
9
|
+
|
10
|
+
require_relative 'scripref/bookname'
|
11
|
+
require_relative 'scripref/bookorder'
|
12
|
+
require_relative 'scripref/english'
|
13
|
+
require_relative 'scripref/formatter'
|
14
|
+
require_relative 'scripref/german'
|
15
|
+
require_relative 'scripref/parser'
|
16
|
+
require_relative 'scripref/passage'
|
17
|
+
require_relative 'scripref/processor'
|
18
18
|
|
19
19
|
class Token < DelegateClass(String)
|
20
20
|
def initialize *args
|
data/regtest/formatter.rb
CHANGED
data/regtest/parser.rb
CHANGED
data/regtest/processor.rb
CHANGED
data/test/test_bookname.rb
CHANGED
data/test/test_english.rb
CHANGED
data/test/test_formatter.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
4
|
+
require_relative 'test_helper'
|
5
5
|
|
6
6
|
class TestFormatter < Test::Unit::TestCase
|
7
7
|
|
@@ -168,6 +168,11 @@ class TestFormatter < Test::Unit::TestCase
|
|
168
168
|
assert_formated_text_for_ast text, [pass(text: t1, b1: :Ruth, c1: 2, v1: 5, b2: :Ruth, c2: 2, v2: 5), semi, pass(text: t2, b1: :Mark, c1: 4, b2: :Mark, c2: 4)]
|
169
169
|
end
|
170
170
|
|
171
|
+
def test_two_refs_with_book_with_only_one_chapter
|
172
|
+
text = 'Obadja 3.5'
|
173
|
+
assert_formated_text_for_ast text, [pass(text: text, b1: :Obad, c1: 1, v1: 3, b2: :Obad, c2: 1, v2: 3), pass(b1: :Obad, c1: 1, v1: 5, b2: :Obad, c2: 1, v2: 5)]
|
174
|
+
end
|
175
|
+
|
171
176
|
######################################################################
|
172
177
|
# mixed variants of more than one passage
|
173
178
|
######################################################################
|
data/test/test_german.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/test/test_integration.rb
CHANGED
data/test/test_parser.rb
CHANGED
data/test/test_passage.rb
CHANGED
data/test/test_pipelining.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
4
|
+
require_relative 'test_helper'
|
5
5
|
|
6
6
|
class TestPipelining < Test::Unit::TestCase
|
7
7
|
|
@@ -17,7 +17,7 @@ class TestPipelining < Test::Unit::TestCase
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def test_left_to_right
|
20
|
-
|
20
|
+
require_relative '../lib/scripref/pipelining'
|
21
21
|
text = 'Hebräer 13,8'
|
22
22
|
parser = Parser.new(German)
|
23
23
|
formatter = Formatter.new(English)
|
data/test/test_processor.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scripref
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
|
-
original_platform: ''
|
7
6
|
authors:
|
8
7
|
- Jan Friedrich
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-04 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake
|
@@ -111,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
110
|
- !ruby/object:Gem::Version
|
112
111
|
version: '0'
|
113
112
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
113
|
+
rubygems_version: 3.7.0.dev
|
115
114
|
specification_version: 4
|
116
115
|
summary: Library for parsing scripture references in real texts.
|
117
116
|
test_files: []
|