metanorma-standoc 2.9.4 → 2.9.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: 49c6dfeea46b38b2e162f13b0e5b8f1e57f446c433e2e30313fff2e4c5b4e96e
4
- data.tar.gz: 188590c9c73a87e1ba73322a540986836b256541764ef4e45ba1a1a134eda1df
3
+ metadata.gz: 81a040f93adb31ed93c820fafd3fd6e6a52f4495dfc718133c92625c09a7c454
4
+ data.tar.gz: fe0dfb411b0f884c433a7788c739d9507269ebfc8374c5892a2a2d34e3a4039c
5
5
  SHA512:
6
- metadata.gz: cc6aed2b8ca43330882c41c8a00e2bc679ff5de30e9c1f914eca253ecc7900368b4c1968a2dbeceeae9db025798a15fe73a68892d83c4c0dcc6080477e66327a
7
- data.tar.gz: 0bf3a151f8dd22a2c28ee6ed158df5f8d8c6f2afe0d27cad2d8ec3234746d1994354ab52dbd1735b8c54ab99e44c3d3b7b10249a464205fc29c453d996e377c9
6
+ metadata.gz: e27143dc3445a8d74a4fa9a7f8b42d98789e434a05c590b9ecf03169b71a8b51892d80b9bf7a7b75a7f5806794a647ea7d50b64c5e87d461de1e501216b91d5f
7
+ data.tar.gz: 877f0be683c2f5829f2f6a19156e0cbb5e1b30fe84f1a50a63626f148da0745648a4a08904acfe9ab574842b973a607aa791ab3176a86567667ce6b3161e3400
@@ -131,6 +131,9 @@ module Metanorma
131
131
  xmldoc.xpath("//bibitem//bibitem").each do |b|
132
132
  b.delete("id")
133
133
  end
134
+ xmldoc.xpath("//bibdata//bibitem").each do |b|
135
+ b.delete("id")
136
+ end
134
137
  end
135
138
 
136
139
  def attachment_cleanup(xmldoc)
@@ -74,7 +74,7 @@ module Metanorma
74
74
 
75
75
  def metadata_date1(node, xml, type)
76
76
  date = node.attr("#{type}-date")
77
- date and xml.date type: type do |d|
77
+ date and xml.date(type:) do |d|
78
78
  d.on date
79
79
  end
80
80
  end
@@ -91,7 +91,7 @@ module Metanorma
91
91
  a == "date" || /^date_\d+$/.match(a) or next
92
92
  type, date = node.attr(a).split(/ /, 2)
93
93
  type or next
94
- xml.date type: type do |d|
94
+ xml.date(type:) do |d|
95
95
  d.on date
96
96
  end
97
97
  end
@@ -139,7 +139,7 @@ module Metanorma
139
139
  def metadata_getrelation1(doc, xml, type, desc)
140
140
  id = doc.split(/,\s*/)
141
141
  xml.relation type: relation_normalise(type) do |r|
142
- desc.nil? or r.description desc.gsub(/-/, " ")
142
+ desc.nil? or r.description desc.tr("-", " ")
143
143
  fetch_ref(r, doc, nil, **{}) or r.bibitem do |b|
144
144
  b.title id[1] || "--"
145
145
  b.docidentifier id[0]
@@ -19,6 +19,6 @@ module Metanorma
19
19
  end
20
20
 
21
21
  module Standoc
22
- VERSION = "2.9.4".freeze
22
+ VERSION = "2.9.5".freeze
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-standoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.4
4
+ version: 2.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.