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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28631c2deed7edc4e9d018a03e9cbce155028deeaa8d5149b8a1e57bf1812a21
4
- data.tar.gz: d66be495db2c250116a6988e40752db5c18ed9ab4143572f3843a21be959a9ad
3
+ metadata.gz: 8ff84390f97873c222f3b4f3de5cc4eddecf4248e96fd4969dfcee397989687f
4
+ data.tar.gz: 27188298c69c82dc025d680c2725b71d3169e90aca47d64ad94322221aa01121
5
5
  SHA512:
6
- metadata.gz: 320349a57e409a9af89a6ce807c7ce87bdf693a51105e2eb65c895192419d48c628915e3c96ab8878c5eeedd420e9e2b2f05057620aceafbd0df5545450e716e
7
- data.tar.gz: 750fc6c150ea10c2493c0944cc4e10c203e56b89abf5284fca6fbe880afce0e6f839f3589b0fa3a07aefcdab55df5009b1a94502ea9a03e3e2d06af6349f3f16
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
- matches = [/^ob/, /^(jude|jd(?!th)|jud(?!ith)(?!ges))/, /^2 ?jo?h?n/, /^3 ?jo?h?n/, /^ph(i?l|m)/]
11
- return Regexp.union(matches).match?(reference.downcase)
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: /^(phill?i|php)/, name: 'Philippians' },
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: /^ph(i?l|m)/, name: 'Philemon' },
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$|jd$|jude$)/, name: 'Jude' },
97
+ 'JUD' => { match: /^(jud|jd|jude)$/, name: 'Jude' },
99
98
  'REV' => { match: /^re?v/, name: 'Revelation' }
100
99
  }
101
100
  end
@@ -1,3 +1,3 @@
1
1
  module BibleRef
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
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.1
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: 2020-11-01 00:00:00.000000000 Z
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.2
96
+ rubygems_version: 3.1.6
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Bible reference parser