metanorma-bipm 2.7.1 → 2.7.3

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: ad65231e2c60636b8ddb3dcceca5cc8935151f6873eb7964c0787d662874553c
4
- data.tar.gz: 81a16168046a619da81c5c9598386889ff8cae291e29631b713b91b141599974
3
+ metadata.gz: 4f61b39d47d95aa1d5cdc018b7da02b7e388d12dd3610e4dd68479411633eca9
4
+ data.tar.gz: edf3bbfd2d23ac2bd8053b56e5b7313bb92aad686a8a0f43376f6905a57f57b0
5
5
  SHA512:
6
- metadata.gz: b36f2a8a8ffb26c22912b4bc3743249c0fbf40ed3ca03e79ed730368aee91bfdbc98a7f8e021a2549e553dce343a27427bae866a8865fb99a7b7dffcfff21f97
7
- data.tar.gz: 545719bca99fb1d7222196c351c83dcdcad98cd81cc75bccd8c441882be3d98baab029bb19ecae5394d6caa33a208d26043dcb8343e8c52fd48f5b3118191cfc
6
+ metadata.gz: e0a017712c5401020feed7cc49f9135b92908280a44231b84cff7f13b374f3d092679abac3622623622251ab1f704b6cab8eac710a0b3972e0543565d0cd0dd9
7
+ data.tar.gz: 36b300fe4b9c5e2f8d3282e2c21fceee949d5fb79ef2570bc55cb880788b5c376c51c9f08f7793d50777225a7b495371ff0d36701ab9a9e0b2b9cee4256b217c
data/README.adoc CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  image:https://img.shields.io/gem/v/metanorma-bipm.svg["Gem Version", link="https://rubygems.org/gems/metanorma-bipm"]
4
4
  image:https://github.com/metanorma/metanorma-bipm/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-bipm/actions?workflow=rake"]
5
- image:https://codeclimate.com/github/metanorma/metanorma-bipm/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-bipm"]
5
+ // image:https://codeclimate.com/github/metanorma/metanorma-bipm/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-bipm"]
6
6
  image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-bipm.svg["Pull Requests", link="https://github.com/metanorma/metanorma-bipm/pulls"]
7
7
  image:https://img.shields.io/github/commits-since/metanorma/metanorma-bipm/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-bipm/releases"]
8
8
 
@@ -10,37 +10,12 @@ module IsoDoc
10
10
  end
11
11
 
12
12
  def convert1(docxml, filename, dir)
13
- @jcgm = docxml&.at(ns("//bibdata/ext/editorialgroup/committee/" \
14
- "@acronym"))&.value == "JCGM"
13
+ @jcgm = docxml.at(ns(<<~XPATH))&.text == "JCGM"
14
+ //bibdata/contributor[role/description = 'committee']/organization/subdivision[@type = 'Committee']/identifier[not(@type = 'full')]
15
+ XPATH
15
16
  super
16
17
  end
17
- =begin
18
- def update_i18n(i18n)
19
- #require "debug"; binding.b
20
- if %w(2019).include?(@docscheme)
21
- %w(level2_ancillary level3_ancillary level2_ancillary_alt
22
- level3_ancillary_alt).each do |w|
23
- i18n_conditional_set(i18n, w, "#{w}_2019")
24
- end
25
- end
26
- i18n.set("annex", i18n.get["level2_ancillary"])
27
- i18n.set("appendix", i18n.get["level3_ancillary"])
28
- end
29
-
30
- def convert_i18n_init(docxml)
31
- #require "debug"; binding.b
32
- @docscheme =
33
- docxml.at(ns("//presentation-metadata[name" \
34
- "[text() = 'document-scheme']]/value"))&.text || "2021"
35
- super
36
- update_i18n(@i18n)
37
- end
38
18
 
39
- def i18n_conditional_set(i18n, old, new)
40
- i18n.get[new] or return
41
- i18n.set(old, i18n.get[new])
42
- end
43
- =end
44
19
  def middle_clause(_docxml)
45
20
  if @jcgm
46
21
  "//clause[parent::sections][not(@type = 'scope')]" \