metanorma-utils 1.8.0 → 1.8.1

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: 5d732ef5b43563be4481894015cde861af9d10a6c9ba3f27f9a7491fc5e035c8
4
- data.tar.gz: aaeea69fc4ebc1b02ff5714f31ccbad138ec7a9dc3d05afba575aef5b070da54
3
+ metadata.gz: 3641e3026c18fb0b8b8c8633f25be116510f79d34fe735a3453d45bba006a877
4
+ data.tar.gz: 834725d985d97af9aa1aca65213f1c9515187c978f3f5b87e06aca866d375702
5
5
  SHA512:
6
- metadata.gz: 358711ec61605ad726879b5b4c26dca54788d8e11772ada1251fce68b5ed47b768eeaa3683a0786475c7c6ae9e7d3266d00d6f139148ac4caba31f0c568cd34d
7
- data.tar.gz: 977160c2e5eadd24482b5433b095a865ab301f544ad2659426704910f2e963a29a1202af6f230010f4dac2b4d6a7da7b1fc1ac57e5b8adf7afc16bea9fcb5e2a
6
+ metadata.gz: fcc0a8eda513f8a8990180a081aabe8651579f719b2ff4b13e5880d421d5374117b872df13cea1948f35c510b625cb583b06e4fabe88b1b760a032a95285d0bc
7
+ data.tar.gz: e16f7a8fa041f690045de853465daf068fef217979d7d2b2ef3a78e9efadb9624546c4d805fd3eea10f542f5e40533a3e78ca04d1c70153a0edd3f2312515ddb
@@ -28,8 +28,9 @@ module Metanorma
28
28
  if @middoc_docattr && !/^:[^ :]+:($| )/.match?(text)
29
29
  @middoc_docattr = false
30
30
  @pass = false
31
- elsif (@is_delim && /^(-+|\*+|=+|_+)$/.match?(text)) ||
32
- (!@is_delim && !@delimln && /^-----*$|^\.\.\.\.\.*$/.match?(text))
31
+ elsif (@is_delim && /^(--+|\*\*+|==+|__+)$/.match?(text)) ||
32
+ (!@is_delim && !@delimln && /^-----*$|^\.\.\.\.\.*$|\/\/\/\/\/*$/
33
+ .match?(text))
33
34
  @delimln = text
34
35
  @pass = true
35
36
  elsif @pass_delim
@@ -43,7 +44,7 @@ module Metanorma
43
44
  @pass = true
44
45
  @middoc_docattr = true
45
46
  end
46
- @is_delim = /^\[(source|listing|literal|pass)\b/.match?(text)
47
+ @is_delim = /^\[(source|listing|literal|pass|comment)\b/.match?(text)
47
48
  @pass_delim = /^\[(pass)\b/.match?(text)
48
49
  @prev_line = text.strip
49
50
  end
data/lib/utils/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Utils
3
- VERSION = "1.8.0".freeze
3
+ VERSION = "1.8.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.