isodoc 2.12.3 → 2.12.5

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: 30063a7d69417bee799a6e513cb30a21d9c9cf88cdbb80a363bef79c838f67d5
4
- data.tar.gz: fa0af3cd1ab696ce85149f0887f06e69c8d1190a902bd67891979cb6a53ee93e
3
+ metadata.gz: 12e415517517e0dfbf1589b1133b4604f61247f6cbe1898af9627b34c79e7e9a
4
+ data.tar.gz: 7504dee7698caa7cb112d4536400ca673b46b8ec8765f5797cc631e60effe0fa
5
5
  SHA512:
6
- metadata.gz: '0282678a13b6a8027c563c441d2b2bf17e71cef27db296a8f227bdbc09b9996ca1458a61d3e972d6f6327ba65995ce4c1af094cc25c19c9c430ba42726ba4d76'
7
- data.tar.gz: 91e15265573da4a24b6b4e04081ffe220ac1c5d48fe498b506c7f9d52d743cbc8a82ec230e77afae34becea0f8fced0801ccb6da6b1540ea9aca8705b4759e3b
6
+ metadata.gz: c66a622582ea1ce1c487864c75fcf3474122bca305066f53b74fb50750d23da1a78c6a8e90e301d0cd80ca175ab0f560126081468146e843b156db0ab4ae532b
7
+ data.tar.gz: '028b0c4a1d0a72f065c18dc70b130a3cf3fdf6b9ded4ef24eac2a758e3bdcad145f38b75af26a45eee72b4cd54b55eabea61c30a4af0bf58cc6befc738cfb3c7'
data/isodoc.gemspec CHANGED
@@ -43,6 +43,7 @@ Gem::Specification.new do |spec|
43
43
  spec.add_dependency "thread_safe"
44
44
  spec.add_dependency "twitter_cldr", ">= 6.6.0"
45
45
  spec.add_dependency "uuidtools"
46
+ spec.add_dependency "nokogiri", "<= 1.16.8"
46
47
 
47
48
  spec.add_development_dependency "bigdecimal"
48
49
  spec.add_development_dependency "debug"
@@ -64,9 +64,8 @@ module IsoDoc
64
64
  lbl = @xrefs.anchor(elem["id"], :label, false)
65
65
  lbl and a = autonum(elem["id"], lbl)
66
66
  figname = figure_name(elem)
67
- if elem.parent.name == "figure"
67
+ (elem.parent.name == "figure") && a and
68
68
  a += subfigure_delim
69
- end
70
69
  lbl && figure_label?(elem) and s = "#{figname}#{a}"
71
70
  prefix_name(elem, { caption: figure_delim(elem) }, l10n(s&.strip), "name")
72
71
  end
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "2.12.3".freeze
2
+ VERSION = "2.12.5".freeze
3
3
  end
@@ -94,6 +94,7 @@ module IsoDoc
94
94
  end
95
95
 
96
96
  def fig_subfig_label(label, sublabel)
97
+ label && sublabel or return
97
98
  "#{label}#{subfigure_separator}#{sublabel}"
98
99
  end
99
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.3
4
+ version: 2.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-09 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: nokogiri
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "<="
172
+ - !ruby/object:Gem::Version
173
+ version: 1.16.8
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "<="
179
+ - !ruby/object:Gem::Version
180
+ version: 1.16.8
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: bigdecimal
169
183
  requirement: !ruby/object:Gem::Requirement