metanorma-bipm 1.2.1 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,11 +71,11 @@ module IsoDoc
71
71
  unless name = node.at(ns("./#{elem}[not(@type = 'quoted')]"))
72
72
  return if node.at(ns("./#{elem}[@type = 'quoted']"))
73
73
 
74
- node.children.empty? and node.add_child("<#{elem}></#{elem}>") or
74
+ (node.children.empty? and node.add_child("<#{elem}></#{elem}>")) or
75
75
  node.children.first.previous = "<#{elem}></#{elem}>"
76
76
  name = node.children.first
77
77
  end
78
- if name.children.empty? then name.add_child(number)
78
+ if name.children.empty? then name.add_child(cleanup_entities(number))
79
79
  else (name.children.first.previous = "#{number}#{delim}")
80
80
  end
81
81
  end
@@ -250,6 +250,12 @@ module IsoDoc
250
250
  end
251
251
  end
252
252
 
253
+ def termsource1(elem)
254
+ while elem&.next_element&.name == "termsource"
255
+ elem << "; #{elem.next_element.remove.children.to_xml}"
256
+ end
257
+ elem.children = l10n("[#{@i18n.source} #{elem.children.to_xml.strip}]")
258
+ end
253
259
  include Init
254
260
  end
255
261
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module BIPM
3
- VERSION = "1.2.1".freeze
3
+ VERSION = "1.2.5".freeze
4
4
  end
5
5
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "metanorma-generic", "~> 1.11.0"
30
30
  spec.add_dependency "metanorma-iso", "~> 1.10.0"
31
31
 
32
- spec.add_development_dependency "byebug", "~> 9.1"
32
+ spec.add_development_dependency "debug"
33
33
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
34
34
  spec.add_development_dependency "guard", "~> 2.14"
35
35
  spec.add_development_dependency "guard-rspec", "~> 4.7"
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: 1.2.1
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.10.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: byebug
42
+ name: debug
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '9.1'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '9.1'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: equivalent-xml
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  - !ruby/object:Gem::Version
272
272
  version: '0'
273
273
  requirements: []
274
- rubygems_version: 3.2.22
274
+ rubygems_version: 3.2.32
275
275
  signing_key:
276
276
  specification_version: 4
277
277
  summary: metanorma-bipm lets you write BIPM standards in Metanorma.