metanorma-iso 1.3.12 → 1.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +3 -2
- data/.github/workflows/ubuntu.yml +3 -2
- data/.github/workflows/windows.yml +3 -2
- data/lib/asciidoctor/iso/biblio.rng +2 -2
- data/lib/asciidoctor/iso/reqt.rng +6 -0
- data/lib/asciidoctor/iso/validate.rb +2 -2
- data/lib/isodoc/iso/html/isodoc.scss +1 -1
- data/lib/isodoc/iso/html/style-human.scss +1 -1
- data/lib/isodoc/iso/html/style-iso.scss +1 -1
- data/lib/isodoc/iso/html/wordstyle.scss +6 -4
- data/lib/metanorma/iso/version.rb +1 -1
- data/metanorma-iso.gemspec +0 -1
- data/spec/asciidoctor-iso/cleanup_spec.rb +2 -2
- data/spec/asciidoctor-iso/refs_spec.rb +2 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8d658a670c0afe45a4654242f2a38c9d422caee47b9ae7a769d1e6242d60574
|
4
|
+
data.tar.gz: 8bd58c910ff26cb03ec777c317c3b4471f3c891273b84af2d33a5e12efcb4b76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4c2d8d81ecaa9a99066c05b4b3a9b3c936f6d618fe55f382a31d5299f15f7acf50abe0b417b0dc9d28e6b10aef5d6a0edfe900d54de132fed1cc3ac6c988cbe
|
7
|
+
data.tar.gz: fa1ed4243a0be7e319d07e27671ab54ec58be122a71353798a2fbcc902e87a2e0627fd09c81a981f58938ada293b51cb12c9be8d86ff0d5725b579b3c88e0363
|
data/.github/workflows/macos.yml
CHANGED
@@ -2,13 +2,14 @@
|
|
2
2
|
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
3
|
name: macos
|
4
4
|
|
5
|
-
on: [push]
|
5
|
+
on: [push, pull_request]
|
6
6
|
|
7
7
|
jobs:
|
8
8
|
test-macos:
|
9
9
|
name: Test on Ruby ${{ matrix.ruby }} macOS
|
10
10
|
runs-on: macos-latest
|
11
11
|
strategy:
|
12
|
+
fail-fast: false
|
12
13
|
matrix:
|
13
14
|
ruby: [ '2.6', '2.5', '2.4' ]
|
14
15
|
steps:
|
@@ -20,7 +21,7 @@ jobs:
|
|
20
21
|
architecture: 'x64'
|
21
22
|
- name: Update gems
|
22
23
|
run: |
|
23
|
-
sudo gem install bundler
|
24
|
+
sudo gem install bundler --force
|
24
25
|
bundle install --jobs 4 --retry 3
|
25
26
|
- name: Use Node
|
26
27
|
uses: actions/setup-node@v1
|
@@ -2,13 +2,14 @@
|
|
2
2
|
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
3
|
name: ubuntu
|
4
4
|
|
5
|
-
on: [push]
|
5
|
+
on: [push, pull_request]
|
6
6
|
|
7
7
|
jobs:
|
8
8
|
test-linux:
|
9
9
|
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
strategy:
|
12
|
+
fail-fast: false
|
12
13
|
matrix:
|
13
14
|
ruby: [ '2.6', '2.5', '2.4' ]
|
14
15
|
steps:
|
@@ -20,7 +21,7 @@ jobs:
|
|
20
21
|
architecture: 'x64'
|
21
22
|
- name: Update gems
|
22
23
|
run: |
|
23
|
-
gem install bundler
|
24
|
+
gem install bundler
|
24
25
|
bundle install --jobs 4 --retry 3
|
25
26
|
- name: Use Node
|
26
27
|
uses: actions/setup-node@v1
|
@@ -2,13 +2,14 @@
|
|
2
2
|
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
3
|
name: windows
|
4
4
|
|
5
|
-
on: [push]
|
5
|
+
on: [push, pull_request]
|
6
6
|
|
7
7
|
jobs:
|
8
8
|
test-windows:
|
9
9
|
name: Test on Ruby ${{ matrix.ruby }} Windows
|
10
10
|
runs-on: windows-latest
|
11
11
|
strategy:
|
12
|
+
fail-fast: false
|
12
13
|
matrix:
|
13
14
|
ruby: [ '2.6', '2.5', '2.4' ]
|
14
15
|
steps:
|
@@ -21,7 +22,7 @@ jobs:
|
|
21
22
|
- name: Update gems
|
22
23
|
shell: pwsh
|
23
24
|
run: |
|
24
|
-
gem install bundler
|
25
|
+
gem install bundler
|
25
26
|
bundle config --local path vendor/bundle
|
26
27
|
bundle update
|
27
28
|
bundle install --jobs 4 --retry 3
|
@@ -67,7 +67,7 @@ module Asciidoctor
|
|
67
67
|
def locality_erefs_validate(root)
|
68
68
|
root.xpath("//eref[locality]").each do |t|
|
69
69
|
if /^(ISO|IEC)/.match t["citeas"]
|
70
|
-
unless /:[ ]?(\d+{4}
|
70
|
+
unless /:[ ]?(\d+{4}|–)$/.match t["citeas"]
|
71
71
|
warn "ISO: undated reference #{t['citeas']} should not contain "\
|
72
72
|
"specific elements"
|
73
73
|
end
|
@@ -157,7 +157,7 @@ module Asciidoctor
|
|
157
157
|
end
|
158
158
|
|
159
159
|
def bibitem_validate(xmldoc)
|
160
|
-
xmldoc.xpath("//bibitem[date/on = '
|
160
|
+
xmldoc.xpath("//bibitem[date/on = '–']").each do |b|
|
161
161
|
found = false
|
162
162
|
b.xpath("./note").each do |n|
|
163
163
|
found = true if /^ISO DATE:/.match n.text
|
@@ -639,7 +639,7 @@ margin: 2em 0 1em 0;
|
|
639
639
|
overflow: auto;
|
640
640
|
}
|
641
641
|
|
642
|
-
.figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle {
|
642
|
+
.figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
|
643
643
|
font-weight: 700;
|
644
644
|
font-size: 1em;
|
645
645
|
text-align: center;
|
@@ -633,7 +633,7 @@ margin: 2em 0 1em 0;
|
|
633
633
|
overflow: auto;
|
634
634
|
}
|
635
635
|
|
636
|
-
.figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle {
|
636
|
+
.figure-title, .FigureTitle, .SourceTitle, .AdmonitionTitle, .RecommendationTitle {
|
637
637
|
font-weight: 700;
|
638
638
|
font-size: 1em;
|
639
639
|
text-align: center;
|
@@ -502,14 +502,16 @@ a:link, span.MsoHyperlink
|
|
502
502
|
mso-style-unhide:no;
|
503
503
|
mso-style-parent:"";
|
504
504
|
mso-ansi-language:EN;
|
505
|
-
color:
|
506
|
-
|
505
|
+
color:blue;
|
506
|
+
text-decoration:underline;
|
507
|
+
text-underline:single;}
|
507
508
|
a:visited, span.MsoHyperlinkFollowed
|
508
509
|
{mso-style-noshow:yes;
|
509
510
|
mso-style-priority:99;
|
510
511
|
mso-themecolor:followedhyperlink;
|
511
|
-
|
512
|
-
|
512
|
+
text-decoration:underline;
|
513
|
+
text-underline:single;
|
514
|
+
color:purple;}
|
513
515
|
span.MsoPlaceholderText
|
514
516
|
{mso-style-noshow:yes;
|
515
517
|
mso-style-priority:99;
|
data/metanorma-iso.gemspec
CHANGED
@@ -33,7 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency "isodoc", "~> 1.0.0"
|
34
34
|
spec.add_dependency "metanorma-standoc", "~> 1.3.0"
|
35
35
|
|
36
|
-
spec.add_development_dependency "bundler", "~> 2.0.1"
|
37
36
|
spec.add_development_dependency "byebug"
|
38
37
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
39
38
|
spec.add_development_dependency "guard", "~> 2.14"
|
@@ -631,9 +631,9 @@ RSpec.describe Asciidoctor::ISO do
|
|
631
631
|
<p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
632
632
|
<bibitem id="iso123" type="standard">
|
633
633
|
<title format="text/plain">Standard</title>
|
634
|
-
<docidentifier>ISO 123
|
634
|
+
<docidentifier>ISO 123:—</docidentifier>
|
635
635
|
<date type="published">
|
636
|
-
<on
|
636
|
+
<on>–</on>
|
637
637
|
</date>
|
638
638
|
<contributor>
|
639
639
|
<role type="publisher"/>
|
@@ -20,9 +20,9 @@ RSpec.describe Asciidoctor::ISO do
|
|
20
20
|
<p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
|
21
21
|
<bibitem id="iso123" type="standard">
|
22
22
|
<title format="text/plain">Standard</title>
|
23
|
-
<docidentifier>ISO 123
|
23
|
+
<docidentifier>ISO 123:—</docidentifier>
|
24
24
|
<date type="published">
|
25
|
-
<on
|
25
|
+
<on>–</on>
|
26
26
|
</date>
|
27
27
|
<contributor>
|
28
28
|
<role type="publisher"/>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-jing
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.3.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: bundler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0.1
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 2.0.1
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: byebug
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|