metanorma-utils 1.7.6 → 1.7.7

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: 763172a604af9c8aa2041735e905ba799c1dc2c1d30884d729a745466ee2bd04
4
- data.tar.gz: 350815e7f0ed225a291411b467fe234c269ad037fa7d7b5b78db3768115d7029
3
+ metadata.gz: 7464b0f736513d8c049db1859958c5730496c189c17ec06f3690ceeafdc51548
4
+ data.tar.gz: 7acf790ae1a53ab6693a6185c3f6b5be82ffcb1a8f75581b6fef8d27800d5688
5
5
  SHA512:
6
- metadata.gz: 844194eb8dcf4e1c95b2911ee2b20a6637bb098c713f46f9e16ca1bad369a70795e8edfc139df9dadbf38127e8685e86e6f23d485781b495de4b822cbb460bfa
7
- data.tar.gz: 4b1ec3c894633fa98d31c53b38f3c4d7b0632bf1e3178e427b5f2eb65cb3d6415a76140a05ee1e21185dd0384919a349aed520fb8f56f59d205115e69186c1ea
6
+ metadata.gz: dc31707be4f372e3edc040ab8c989b246e803ad48694cf9fbacfded0aa0cde52fcc00616d616697e344c65664dddbb9c259e1cd1d79032be6170884ac53c7385
7
+ data.tar.gz: ee8b200993fc61fcb8606ba7fe2a7406cf8f03b7da12be5c18f0f44c6fa1d6887eeb829cf404f09794a30b71fb7c85831644275c7de610f621bb762e94e5c18c
data/lib/utils/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Utils
3
- VERSION = "1.7.6".freeze
3
+ VERSION = "1.7.7".freeze
4
4
  end
5
5
  end
data/lib/utils/xml.rb CHANGED
@@ -144,6 +144,11 @@ module Metanorma
144
144
  end
145
145
  x.root.children.to_xml
146
146
  end
147
+
148
+ def guid_anchor?(id)
149
+ /^_[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i
150
+ .match?(id)
151
+ end
147
152
  end
148
153
  end
149
154
  end
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.7.6
4
+ version: 1.7.7
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-03-25 00:00:00.000000000 Z
11
+ date: 2024-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  requirements: []
322
- rubygems_version: 3.3.26
322
+ rubygems_version: 3.3.27
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: metanorma-utils