relaton-bib 1.14.1 → 1.14.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: 737ba2114b24020ae8ff872d210b8b49e3327306d6574ec124b4951e83391545
4
- data.tar.gz: 22a5b6f6f0446edab9500ca51e3aa5dc55644a530476fe84d0b5d66f4955feba
3
+ metadata.gz: 0dc6209c1ca723507ee58364eab5781bfd0735e7e48ca41caba930df28efafba
4
+ data.tar.gz: 5b0a27ecae7862a71fffcd2dd6e07bbd80ead8ea5d8c28bc435e55df62d3a34b
5
5
  SHA512:
6
- metadata.gz: 6f93e407ad0fceea997a9b4565f9e54edf4e2abb6d83e13c3e6f98a5d194dca9782f1772d232f3054941c3cbfc52f3ef5fcba3362860745b18d9875278acd942
7
- data.tar.gz: 22925839d4ad765bc233952991e5b5bf5864f7e925e6da90ad5d9c5b4bcebf68eec604fe3ffafab7acf46ff1e63b9c043baa8cbf0ee920bbf9fb8c833f417819
6
+ metadata.gz: f5324c05eab02136412a48c51296cdd35e2a17e29ec2a8894a557863d9e75c1eda450214dea53cfd94445a8d1ca40c7e5af6d7e3b741b3f0f21d37df7f9a247d
7
+ data.tar.gz: 9c101ac931e82526307cc39abf670bd57633cbb6d9293c6729acc16cd22231cb887485ab5e7a33bafdddab06eed8956a5baeb7a745a9c90e8df1ce43df56bd11
@@ -7,12 +7,12 @@ module RelatonBib
7
7
  # @return [String]
8
8
  attr_reader :reference_from
9
9
 
10
- # @return [String, NilClass]
10
+ # @return [String, nil]
11
11
  attr_reader :reference_to
12
12
 
13
13
  # @param type [String]
14
14
  # @param referenceFrom [String]
15
- # @param referenceTo [String, NilClass]
15
+ # @param referenceTo [String, nil]
16
16
  def initialize(type, reference_from, reference_to = nil)
17
17
  type_ptrn = %r{section|clause|part|paragraph|chapter|page|title|line|
18
18
  whole|table|annex|figure|note|list|example|volume|issue|time|anchor|
@@ -238,6 +238,8 @@ module RelatonBib
238
238
  # @return [RelatonBib::Organization, nil]
239
239
  def organization(contrib)
240
240
  org = contrib.at("./organization")
241
+ return unless org
242
+
241
243
  orgname = org.text.strip
242
244
  return if orgname.empty?
243
245
 
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.14.1".freeze
2
+ VERSION = "1.14.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-08 00:00:00.000000000 Z
11
+ date: 2022-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug