bible_ref 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bible_ref/languages/english.rb +5 -6
- data/lib/bible_ref/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ff84390f97873c222f3b4f3de5cc4eddecf4248e96fd4969dfcee397989687f
|
4
|
+
data.tar.gz: 27188298c69c82dc025d680c2725b71d3169e90aca47d64ad94322221aa01121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30d34f9878276275e136e974b114ecf2365e21be79821d3513a278e9094fa134a2ef80743dc07a1daa572b9c48f402a13def18966abf54bdfb902523a4697df
|
7
|
+
data.tar.gz: 4e2bf7bfe56773162e8618d7f189284b283b3c15e4b0b56092390a0df4b6c5accf5efe8ee6272aa136d5766198aee98c5943a1c8d1df792780a7964e5ef7816c
|
@@ -4,11 +4,10 @@ require_relative 'base'
|
|
4
4
|
module BibleRef
|
5
5
|
module Languages
|
6
6
|
class English < Base
|
7
|
-
|
8
7
|
# Is it a single chapter book?
|
9
8
|
def has_single_chapter?(reference)
|
10
|
-
|
11
|
-
|
9
|
+
matches = [/^ob/, /^(jud|jd|jude)\b/, /^2 ?jo?h?n/, /^3 ?jo?h?n/, /^(philem|phm|pm)/]
|
10
|
+
return Regexp.union(matches).match?(reference.downcase)
|
12
11
|
end
|
13
12
|
|
14
13
|
def books
|
@@ -80,14 +79,14 @@ module BibleRef
|
|
80
79
|
'2CO' => { match: /^2 ?cor?/, name: '2 Corinthians' },
|
81
80
|
'GAL' => { match: /^gal/, name: 'Galatians' },
|
82
81
|
'EPH' => { match: /^eph/, name: 'Ephesians' },
|
83
|
-
'PHP' => { match: /^(
|
82
|
+
'PHP' => { match: /^(phil|php|pp)/, name: 'Philippians' },
|
84
83
|
'COL' => { match: /^col/, name: 'Colossians' },
|
85
84
|
'1TH' => { match: /^1 ?the?s?/, name: '1 Thessalonians' },
|
86
85
|
'2TH' => { match: /^2 ?the?s?/, name: '2 Thessalonians' },
|
87
86
|
'1TI' => { match: /^1 ?tim?/, name: '1 Timothy' },
|
88
87
|
'2TI' => { match: /^2 ?tim?/, name: '2 Timothy' },
|
89
88
|
'TIT' => { match: /^tit/, name: 'Titus' },
|
90
|
-
'PHM' => { match: /^
|
89
|
+
'PHM' => { match: /^(philem|phm|pm)/, name: 'Philemon' },
|
91
90
|
'HEB' => { match: /^heb/, name: 'Hebrews' },
|
92
91
|
'JAS' => { match: /^ja(m|s)/, name: 'James' },
|
93
92
|
'1PE' => { match: /^1 ?pet?/, name: '1 Peter' },
|
@@ -95,7 +94,7 @@ module BibleRef
|
|
95
94
|
'1JN' => { match: /^1 ?jo?h?n/, name: '1 John' },
|
96
95
|
'2JN' => { match: /^2 ?jo?h?n/, name: '2 John' },
|
97
96
|
'3JN' => { match: /^3 ?jo?h?n/, name: '3 John' },
|
98
|
-
'JUD' => { match: /^(jud
|
97
|
+
'JUD' => { match: /^(jud|jd|jude)$/, name: 'Jude' },
|
99
98
|
'REV' => { match: /^re?v/, name: 'Revelation' }
|
100
99
|
}
|
101
100
|
end
|
data/lib/bible_ref/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bible_ref
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
|
-
rubygems_version: 3.1.
|
96
|
+
rubygems_version: 3.1.6
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Bible reference parser
|