bible_ref 1.5.4 → 1.6.0

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: 7d1f3126ff6f1361e941704c6e60878cd330fb37709b4175e084443c84576821
4
- data.tar.gz: 74bd1f2d89c5a3a5c5b788f8bd9e7c4433657f33d2d1a69d49240be61b983246
3
+ metadata.gz: ab0bb0edca332ec87f43dd6ce4db0aab05e1bde7fe7a56c4a8d90be9a77717f3
4
+ data.tar.gz: 4464a27ea0b9595a8590f82ef6aa4d603d50dfef18340f6678e9b7aa20a19f8b
5
5
  SHA512:
6
- metadata.gz: 406aa2b0a830b39b844001ecf9aa60e6518d857890628aa92d19583ccaed53e11acd269d37c0f0bd96037dbc982eea0cd5f1e11fcefc4e05a0f603378c44e49c
7
- data.tar.gz: b64a2b52207b941575940b575a34833ca68822008e53bdff1a6805a12cfcd8662e527e3584eb04dca2c3b423cc95fcbb504f3644a4271fdb6669775dbed8894e
6
+ metadata.gz: c0d9db5be84e5ec8a6d0be7d342d8ba9a70833a0363f6cd229ebde28d5b9e0aa87d1c8c986921a0c8e8e5e7bc23f6c0e98f3a48a88389e75f0a1297a0856a352
7
+ data.tar.gz: 0bac20acb345b2de1d5d13a81061ad13318fb04231643b7cac6bf248081ef9e9bd317de0ecc7fcbb1371ecca23038ba18c2f33d7baf7845c25ed08dc32ffeffa
@@ -0,0 +1,86 @@
1
+ # frozen_string_literal: true
2
+ # -*- coding: utf-8 -*-
3
+ require_relative 'base'
4
+
5
+ module BibleRef
6
+ module Languages
7
+ class Czech < Base
8
+ # Is it a single chapter book?
9
+ def has_single_chapter?(reference)
10
+ matches = [/^ab/, /^(jud|juda)$/, /^2 ?jan/, /^3 ?jan/, /^fil/]
11
+ Regexp.union(matches).match?(reference.downcase)
12
+ end
13
+
14
+ def books
15
+ {
16
+ 'GEN' => { match: /^gen/, name: 'Genesis' },
17
+ 'EXO' => { match: /^ex/, name: 'Exodus' },
18
+ 'LEV' => { match: /^le?v/, name: 'Leviticus' },
19
+ 'NUM' => { match: /^nu/, name: 'Numeri' },
20
+ 'DEU' => { match: /^d(e?ut|eu)/, name: 'Deuteronomium' },
21
+ 'JOS' => { match: /^joz/, name: 'Jozue' },
22
+ 'JDG' => { match: /^soud/, name: 'Soudců' },
23
+ 'RUT' => { match: /^ru/, name: 'Rút' },
24
+ '1SA' => { match: /^1 ?s(a?m)?/, name: '1. Samuel' },
25
+ '2SA' => { match: /^2 ?s(a?m)?/, name: '2. Samuel' },
26
+ '1KI' => { match: /^1 ?kr(a?l)?/, name: '1. Královská' },
27
+ '2KI' => { match: /^2 ?kr(a?l)?/, name: '2. Královská' },
28
+ '1CH' => { match: /^1 ?p(ar)?/, name: '1. Paralipomenon' },
29
+ '2CH' => { match: /^2 ?p(ar)?/, name: '2. Paralipomenon' },
30
+ 'EZR' => { match: /^ezr/, name: 'Ezdráš' },
31
+ 'NEH' => { match: /^ne/, name: 'Nehemiáš' },
32
+ 'EST' => { match: /^est/, name: 'Ester' },
33
+ 'JOB' => { match: /^jo?b/, name: 'Job' },
34
+ 'PSA' => { match: /^za/, name: 'Žalmy' },
35
+ 'PRO' => { match: /^pri/, name: 'Přísloví' },
36
+ 'ECC' => { match: /^kaz/, name: 'Kazatel' },
37
+ 'SNG' => { match: /^pis/, name: 'Píseň písní' },
38
+ 'ISA' => { match: /^iza/, name: 'Izaiáš' },
39
+ 'JER' => { match: /^jer/, name: 'Jeremiáš' },
40
+ 'LAM' => { match: /^plac/, name: 'Pláč' },
41
+ 'EZK' => { match: /^eze/, name: 'Ezechiel' },
42
+ 'DAN' => { match: /^dan/, name: 'Daniel' },
43
+ 'HOS' => { match: /^oze/, name: 'Ozeáš' },
44
+ 'JOL' => { match: /^joe?l/, name: 'Joel' },
45
+ 'AMO' => { match: /^amo/, name: 'Amos' },
46
+ 'OBA' => { match: /^ab/, name: 'Abdiáš' },
47
+ 'JON' => { match: /^jona?/, name: 'Jonáš' },
48
+ 'MIC' => { match: /^mi/, name: 'Micheáš' },
49
+ 'NAM' => { match: /^na(h|m)/, name: 'Nahum' },
50
+ 'HAB' => { match: /^aba/, name: 'Abakuk' },
51
+ 'ZEP' => { match: /^sof/, name: 'Sofoniáš' },
52
+ 'HAG' => { match: /^ag/, name: 'Ageus' },
53
+ 'ZEC' => { match: /^zac/, name: 'Zachariáš' },
54
+ 'MAL' => { match: /^mal/, name: 'Malachiáš' },
55
+ 'MAT' => { match: /^ma?t/, name: 'Matouš' },
56
+ 'MRK' => { match: /^ma?rk/, name: 'Marek' },
57
+ 'LUK' => { match: /^lu?k/, name: 'Lukáš' },
58
+ 'JHN' => { match: /^j(an|n)/, name: 'Jan' },
59
+ 'ACT' => { match: /^sku/, name: 'Skutky' },
60
+ 'ROM' => { match: /^rim/, name: 'Římanům' },
61
+ '1CO' => { match: /^1 ?kor/, name: '1. Korintským' },
62
+ '2CO' => { match: /^2 ?kor/, name: '2. Korintským' },
63
+ 'GAL' => { match: /^gal/, name: 'Galatským' },
64
+ 'EPH' => { match: /^ef/, name: 'Efeským' },
65
+ 'PHP' => { match: /^filip/, name: 'Filipským' },
66
+ 'COL' => { match: /^kol/, name: 'Koloským' },
67
+ '1TH' => { match: /^1 ?tes/, name: '1. Tesalonickým' },
68
+ '2TH' => { match: /^2 ?tes/, name: '2. Tesalonickým' },
69
+ '1TI' => { match: /^1 ?tim/, name: '1. Timoteovi' },
70
+ '2TI' => { match: /^2 ?tim/, name: '2. Timoteovi' },
71
+ 'TIT' => { match: /^tit/, name: 'Titovi' },
72
+ 'PHM' => { match: /^fil/, name: 'Filemonovi' },
73
+ 'HEB' => { match: /^zid/, name: 'Židům' },
74
+ 'JAS' => { match: /^jak/, name: 'Jakub' },
75
+ '1PE' => { match: /^1 ?pet/, name: '1. Petr' },
76
+ '2PE' => { match: /^2 ?pet/, name: '2. Petr' },
77
+ '1JN' => { match: /^1 ?jan/, name: '1. Jan' },
78
+ '2JN' => { match: /^2 ?jan/, name: '2. Jan"' },
79
+ '3JN' => { match: /^3 ?jan/, name: '3. Jan' },
80
+ 'JUD' => { match: /^(jud|juda)$/, name: 'Juda' },
81
+ 'REV' => { match: /^zj(e)?/, name: 'Zjevení' }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end
@@ -3,6 +3,7 @@ require_relative 'languages/english'
3
3
  require_relative 'languages/latin'
4
4
  require_relative 'languages/portuguese'
5
5
  require_relative 'languages/romanian'
6
+ require_relative 'languages/czech'
6
7
 
7
8
  module BibleRef
8
9
  LANGUAGES = {
@@ -10,6 +11,7 @@ module BibleRef
10
11
  'eng' => Languages::English,
11
12
  'lat' => Languages::Latin,
12
13
  'por' => Languages::Portuguese,
13
- 'ron' => Languages::Romanian
14
+ 'ron' => Languages::Romanian,
15
+ 'cze' => Languages::Czech
14
16
  }.freeze
15
17
  end
@@ -1,3 +1,3 @@
1
1
  module BibleRef
2
- VERSION = '1.5.4'
2
+ VERSION = '1.6.0'
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.4
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-27 00:00:00.000000000 Z
11
+ date: 2024-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -67,6 +67,7 @@ files:
67
67
  - lib/bible_ref/languages.rb
68
68
  - lib/bible_ref/languages/base.rb
69
69
  - lib/bible_ref/languages/cherokee.rb
70
+ - lib/bible_ref/languages/czech.rb
70
71
  - lib/bible_ref/languages/english.rb
71
72
  - lib/bible_ref/languages/latin.rb
72
73
  - lib/bible_ref/languages/portuguese.rb
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  requirements: []
96
- rubygems_version: 3.2.33
97
+ rubygems_version: 3.5.3
97
98
  signing_key:
98
99
  specification_version: 4
99
100
  summary: Bible reference parser