bible_parser 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2589fc1c1a0faff54fd9550a3c474623d74ad32f4cdffe70815ff744a9696a77
4
- data.tar.gz: 070ed35e7e8f41c11f0667892456b4038877ff815a8e09345df8d180a04f4797
3
+ metadata.gz: e543a3b5f67608255318a4e16787f3dde77be7f5defd660441bcfc473b55833c
4
+ data.tar.gz: 62ad1ed15b5e91b8069afa16fe3e488ac5e4f7dc7c90a44ec177e4d6c02341e2
5
5
  SHA512:
6
- metadata.gz: d6d140484f8e1a989205775edd2fbd04cc5f54d8682ce84925331e8b7e219be65278e2e7b174d03d746910f34a2bfb276331aa9061f968011993404d2cd69cb0
7
- data.tar.gz: d2ef4c8130bbaf1d38892666210c8286c82b0608ee48dc1e506f25080d8649c5c3c1f60611f04f640caa5f0e87c35f5bb82c2d0dd30341a431637973e5d072fd
6
+ metadata.gz: 355dba02ada40cc43a403bcc749f779364dd34838e6c217d7cb781e72d98a901e83aa654fd3943cf11bbb7156a7413d316109e94815dd31e2d5f79747ef55b25
7
+ data.tar.gz: 56c60269631d8d6dd92d3af986d3b0f164227e1427c09b8da146db05bb3d82940cb42ada8c37bb3e1378db3b27b9e5015ce7c0bf85f0e401d55b0171d02d0246
@@ -70,7 +70,7 @@ class BibleParser
70
70
  def start_chapter(attributes)
71
71
  attributes = Hash[attributes]
72
72
  if attributes['sID']
73
- @chapter = attributes['n'].to_i
73
+ @chapter = (attributes['n'] || attributes['osisID'] || attributes['sID']).split('.').last.to_i
74
74
  @wrapping_chapter = false
75
75
  elsif attributes['osisID']
76
76
  @chapter = attributes['osisID'].split('.').last.to_i
@@ -83,10 +83,10 @@ class BibleParser
83
83
  def start_verse(attributes)
84
84
  attributes = Hash[attributes]
85
85
  if attributes['sID']
86
- @verse = attributes['n'].to_i
86
+ @verse = (attributes['n'] || attributes['osisID'] || attributes['sID']).split.first.split('.').last.to_i
87
87
  @wrapping_verse = false
88
88
  elsif attributes['osisID']
89
- @verse = attributes['osisID'].split('.').last.to_i
89
+ @verse = attributes['osisID'].split.first.split('.').last.to_i
90
90
  @wrapping_verse = true
91
91
  else
92
92
  return
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bible_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Morgan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-04-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: nokogiri
@@ -52,7 +51,6 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- description:
56
54
  email: tim@timmorgan.org
57
55
  executables: []
58
56
  extensions: []
@@ -82,7 +80,6 @@ files:
82
80
  homepage: https://github.com/seven1m/bible_parser
83
81
  licenses: []
84
82
  metadata: {}
85
- post_install_message:
86
83
  rdoc_options: []
87
84
  require_paths:
88
85
  - lib
@@ -97,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
94
  - !ruby/object:Gem::Version
98
95
  version: '0'
99
96
  requirements: []
100
- rubygems_version: 3.0.3.1
101
- signing_key:
97
+ rubygems_version: 3.6.9
102
98
  specification_version: 4
103
99
  summary: Library for parsing the bible in various formats
104
100
  test_files: []