scripref 1.0.0 → 1.1.1
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/LICENSE +1 -1
- data/Rakefile +0 -10
- data/lib/scripref/bookname.rb +1 -1
- data/lib/scripref/german.rb +7 -7
- data/lib/scripref.rb +1 -1
- data/regtest/formatter.rb +2 -2
- data/regtest/formatter.yml +192 -192
- data/regtest/parser.yml +105 -105
- data/regtest/processor.yml +265 -265
- data/scripref.gemspec +18 -31
- data/test/test_german.rb +12 -12
- metadata +12 -13
- data/.aspell.pws +0 -24
data/scripref.gemspec
CHANGED
@@ -1,37 +1,24 @@
|
|
1
|
-
#
|
2
|
-
|
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.
|
1
|
+
# encoding: utf-8
|
2
|
+
require_relative 'lib/scripref'
|
7
3
|
|
8
4
|
Gem::Specification.new do |s|
|
9
|
-
s.name =
|
10
|
-
s.
|
5
|
+
s.name = 'scripref'
|
6
|
+
s.summary = 'Library for parsing scripture references in real texts.'
|
7
|
+
s.version = Scripref::VERSION
|
8
|
+
s.authors = 'Jan Friedrich'
|
9
|
+
s.email = 'janfri26@gmail.com'
|
10
|
+
s.license = 'MIT'
|
11
11
|
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
s.email = "janfri26@gmail.com"
|
18
|
-
s.files = ["./.aspell.pws", "Changelog", "LICENSE", "README.md", "Rakefile", "lib/scripref", "lib/scripref.rb", "lib/scripref/basic_methods.rb", "lib/scripref/bookname.rb", "lib/scripref/bookorder.rb", "lib/scripref/const_reader.rb", "lib/scripref/english.rb", "lib/scripref/formatter.rb", "lib/scripref/german.rb", "lib/scripref/include.rb", "lib/scripref/parser.rb", "lib/scripref/passage.rb", "lib/scripref/pipelining.rb", "lib/scripref/processor.rb", "regtest/formatter.rb", "regtest/formatter.yml", "regtest/parser.rb", "regtest/parser.yml", "regtest/processor.rb", "regtest/processor.yml", "scripref.gemspec", "test/test_bookname.rb", "test/test_english.rb", "test/test_formatter.rb", "test/test_german.rb", "test/test_helper.rb", "test/test_integration.rb", "test/test_parser.rb", "test/test_passage.rb", "test/test_pipelining.rb", "test/test_processor.rb"]
|
19
|
-
s.homepage = "https://github.com/janfri/scripref"
|
20
|
-
s.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
21
|
-
s.rubygems_version = "3.1.2"
|
22
|
-
s.summary = "Library for parsing scripture references in real texts."
|
12
|
+
s.homepage = 'https://github.com/janfri/scripref'
|
13
|
+
s.metadata = {
|
14
|
+
'homepage_uri' => s.homepage,
|
15
|
+
'source_code_uri' => s.homepage
|
16
|
+
}
|
23
17
|
|
24
|
-
|
25
|
-
|
26
|
-
end
|
18
|
+
s.require_paths = 'lib'
|
19
|
+
s.files = %w[Changelog LICENSE README.md Rakefile scripref.gemspec] + Dir['lib/**/*'] + Dir['regtest/**/*'] + Dir['test/**.*']
|
27
20
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
s.add_development_dependency(%q<regtest>, ["~> 2"])
|
32
|
-
else
|
33
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
34
|
-
s.add_dependency(%q<rim>, ["~> 2.17"])
|
35
|
-
s.add_dependency(%q<regtest>, ["~> 2"])
|
36
|
-
end
|
21
|
+
s.add_development_dependency('rake', '>= 0')
|
22
|
+
s.add_development_dependency('rim', '~> 3.0')
|
23
|
+
s.add_development_dependency('regtest', '~> 2')
|
37
24
|
end
|
data/test/test_german.rb
CHANGED
@@ -32,21 +32,21 @@ class TestGerman < Test::Unit::TestCase
|
|
32
32
|
assert_match book_re, 'Off'
|
33
33
|
end
|
34
34
|
|
35
|
-
def
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
35
|
+
def test_book2osis_id
|
36
|
+
assert_osis_book_id :Gen, '1. Mose'
|
37
|
+
assert_osis_book_id :Matt, 'Matthäus'
|
38
|
+
assert_osis_book_id :Rev, 'Offenbarung'
|
39
|
+
assert_osis_book_id :Gen, '1. Mo'
|
40
|
+
assert_osis_book_id :Gen, '1.Mo'
|
41
|
+
assert_osis_book_id :Gen, '1M'
|
42
|
+
assert_osis_book_id :Matt, 'Mat'
|
43
|
+
assert_osis_book_id :Phil, 'Phil'
|
44
|
+
assert_osis_book_id :Rev, 'Off'
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
47
|
+
def assert_osis_book_id id, str
|
48
48
|
@parser ||= Scripref::Parser.new(Scripref::German)
|
49
|
-
assert_equal
|
49
|
+
assert_equal id, @parser.parse(str).first.b1
|
50
50
|
end
|
51
51
|
|
52
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scripref
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
|
+
original_platform: ''
|
6
7
|
authors:
|
7
8
|
- Jan Friedrich
|
8
|
-
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: regtest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,13 +52,11 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2'
|
55
|
-
description: ''
|
56
55
|
email: janfri26@gmail.com
|
57
56
|
executables: []
|
58
57
|
extensions: []
|
59
58
|
extra_rdoc_files: []
|
60
59
|
files:
|
61
|
-
- "./.aspell.pws"
|
62
60
|
- Changelog
|
63
61
|
- LICENSE
|
64
62
|
- README.md
|
@@ -94,9 +92,11 @@ files:
|
|
94
92
|
- test/test_pipelining.rb
|
95
93
|
- test/test_processor.rb
|
96
94
|
homepage: https://github.com/janfri/scripref
|
97
|
-
licenses:
|
98
|
-
|
99
|
-
|
95
|
+
licenses:
|
96
|
+
- MIT
|
97
|
+
metadata:
|
98
|
+
homepage_uri: https://github.com/janfri/scripref
|
99
|
+
source_code_uri: https://github.com/janfri/scripref
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|
102
102
|
- lib
|
@@ -104,15 +104,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: '0'
|
108
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
115
|
-
signing_key:
|
114
|
+
rubygems_version: 3.6.0.dev
|
116
115
|
specification_version: 4
|
117
116
|
summary: Library for parsing scripture references in real texts.
|
118
117
|
test_files: []
|
data/.aspell.pws
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
personal_ws-1.1 en 23
|
2
|
-
Bookname
|
3
|
-
Bookorder
|
4
|
-
OSIS
|
5
|
-
ParserError
|
6
|
-
PassSep
|
7
|
-
Philipper
|
8
|
-
Psalmen
|
9
|
-
Psm
|
10
|
-
Scripref
|
11
|
-
VerseSep
|
12
|
-
addons
|
13
|
-
autoload
|
14
|
-
formatter
|
15
|
-
fullref
|
16
|
-
mixins
|
17
|
-
pipelining
|
18
|
-
postfix
|
19
|
-
postfixes
|
20
|
-
refactoring
|
21
|
-
refactorings
|
22
|
-
regtest
|
23
|
-
sep
|
24
|
-
struct
|