metanorma-bipm 2.0.4 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/bipm.brochure.xsl +449 -99
- data/lib/isodoc/bipm/bipm.guide.xsl +449 -99
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +449 -99
- data/lib/isodoc/bipm/bipm.rapport.xsl +449 -99
- data/lib/isodoc/bipm/jcgm.standard.xsl +423 -100
- data/lib/isodoc/bipm/presentation_xml_convert.rb +6 -6
- data/lib/metanorma/bipm/version.rb +1 -1
- data/metanorma-bipm.gemspec +1 -1
- metadata +5 -5
@@ -17,9 +17,9 @@ module IsoDoc
|
|
17
17
|
super
|
18
18
|
end
|
19
19
|
|
20
|
-
def eref_localities1(target, type, from,
|
21
|
-
@jcgm and
|
22
|
-
|
20
|
+
def eref_localities1(target, type, from, upto, node, lang = "en")
|
21
|
+
@jcgm and return @iso.eref_localities1(target, type, from, upto,
|
22
|
+
node, lang)
|
23
23
|
super
|
24
24
|
end
|
25
25
|
|
@@ -142,7 +142,7 @@ module IsoDoc
|
|
142
142
|
ret = list_people(
|
143
143
|
xml, "//bibdata/contributor[xmlns:role/@type = 'author']/person"
|
144
144
|
)
|
145
|
-
@i18n.
|
145
|
+
@i18n.boolean_conj(ret, "and")
|
146
146
|
end
|
147
147
|
|
148
148
|
COCHAIR = "xmlns:role[contains(text(),'co-chair')]".freeze
|
@@ -154,7 +154,7 @@ module IsoDoc
|
|
154
154
|
ret.empty? and return ""
|
155
155
|
role = xml&.at(ns("//bibdata/contributor[#{COCHAIR}]/role"))&.text
|
156
156
|
label = ret.size > 1 && role ? "#{role}s" : role
|
157
|
-
"#{label}: #{@i18n.
|
157
|
+
"#{label}: #{@i18n.boolean_conj(ret, 'and')}"
|
158
158
|
end
|
159
159
|
|
160
160
|
def list_chairs(xml)
|
@@ -162,7 +162,7 @@ module IsoDoc
|
|
162
162
|
ret.empty? and return ""
|
163
163
|
role = xml&.at(ns("//bibdata/contributor#{CHAIR}/role"))&.text
|
164
164
|
label = ret.size > 1 && role ? "#{role}s" : role
|
165
|
-
"#{label}: #{@i18n.
|
165
|
+
"#{label}: #{@i18n.boolean_conj(ret, 'and')}"
|
166
166
|
end
|
167
167
|
|
168
168
|
def list_people(xml, xpath)
|
data/metanorma-bipm.gemspec
CHANGED
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency "sassc", "2.4.0"
|
40
40
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
41
41
|
spec.add_development_dependency "timecop", "~> 0.9"
|
42
|
-
spec.add_development_dependency "vcr", "~>
|
42
|
+
spec.add_development_dependency "vcr", "~> 6.1.0"
|
43
43
|
spec.add_development_dependency "webmock"
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-bipm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.7
|
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-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 6.1.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 6.1.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: webmock
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
requirements: []
|
301
|
-
rubygems_version: 3.
|
301
|
+
rubygems_version: 3.3.9
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: metanorma-bipm lets you write BIPM standards in Metanorma.
|