metanorma-utils 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utils/linestatus.rb +1 -1
- data/lib/utils/log.rb +1 -1
- data/lib/utils/version.rb +1 -1
- data/lib/utils/xml.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe2af0c9b9521b3ae1953545fb434d08e45d028dd93c02fa509a8251e14e1c8e
|
4
|
+
data.tar.gz: c551aa4d4c08dba83273ce0be945a171cfbbdc4a9a2c02fd09044b3c97a8b317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6a23dde225425211a6ac35bb0e9b718189f0bc071eeef526a36ecebd3f8572f78addf7b93c4390374511642c360b6543e88e98e459ea1bb76849d077e008730
|
7
|
+
data.tar.gz: b537b6828491a4cc6f495c462e0c0810a8b1fcd61effb326232980f07325fe70e2ddc6b9f3c09d60b1f8c6af250c38e21064617acd294f8fa3542e141d647f40
|
data/lib/utils/linestatus.rb
CHANGED
@@ -29,7 +29,7 @@ module Metanorma
|
|
29
29
|
@middoc_docattr = false
|
30
30
|
@pass = false
|
31
31
|
elsif (@is_delim && /^(--+|\*\*+|==+|__+)$/.match?(text)) ||
|
32
|
-
(!@is_delim && !@delimln &&
|
32
|
+
(!@is_delim && !@delimln && /^-----*$|^\.\.\.\.\.*$|^\/\/\/\/\/*$/
|
33
33
|
.match?(text))
|
34
34
|
@delimln = text
|
35
35
|
@pass = true
|
data/lib/utils/log.rb
CHANGED
data/lib/utils/version.rb
CHANGED
data/lib/utils/xml.rb
CHANGED
@@ -99,15 +99,15 @@ module Metanorma
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def ns(xpath)
|
102
|
-
xpath.gsub(%r{/([a-zA-
|
103
|
-
.gsub(%r{::([a-zA-
|
104
|
-
.gsub(%r{\[([a-zA-
|
105
|
-
.gsub(%r{\[([a-zA-
|
102
|
+
xpath.gsub(%r{/([a-zA-Z])}, "/xmlns:\\1")
|
103
|
+
.gsub(%r{::([a-zA-Z])}, "::xmlns:\\1")
|
104
|
+
.gsub(%r{\[([a-zA-Z][a-z0-9A-Z@/-]* ?=)}, "[xmlns:\\1")
|
105
|
+
.gsub(%r{\[([a-zA-Z][a-z0-9A-Z@/-]*[/\[\]])}, "[xmlns:\\1")
|
106
106
|
end
|
107
107
|
|
108
108
|
def numeric_escapes(xml)
|
109
109
|
c = HTMLEntities.new
|
110
|
-
xml.split(/(&[^ \r\n\t
|
110
|
+
xml.split(/(&[^ \r\n\t#&;]+;)/).map do |t|
|
111
111
|
if /^(&[^ \t\r\n#;]+;)/.match?(t)
|
112
112
|
c.encode(c.decode(t), :hexadecimal)
|
113
113
|
else t
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.1
|
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-08-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|