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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34e6a622fc30a0c5f9fade1a3254a3c3974d15903012285831f7ee91a5bb6c11
4
- data.tar.gz: e67f2fefc81ca9f31242310f12c42e9ff1c92d77aafb1c5d3c22e11dc203e49b
3
+ metadata.gz: d8d658a670c0afe45a4654242f2a38c9d422caee47b9ae7a769d1e6242d60574
4
+ data.tar.gz: 8bd58c910ff26cb03ec777c317c3b4471f3c891273b84af2d33a5e12efcb4b76
5
5
  SHA512:
6
- metadata.gz: a98c201ef6c47d5033f33e277702c01eac7ad955ec99b64ee8f5bb5702c1b34aabef89fb7370c20e13401182d0b79fac2b8ea541725370b7befa643769617be6
7
- data.tar.gz: 4cbc80fb22e0102aba955881bb6f9093a4f9ae610817afb86292feadbfd15de6d73ecbfba5ffc64abeaaebef877a447ed6275fad2488bb6394a5faf902a06e91
6
+ metadata.gz: d4c2d8d81ecaa9a99066c05b4b3a9b3c936f6d618fe55f382a31d5299f15f7acf50abe0b417b0dc9d28e6b10aef5d6a0edfe900d54de132fed1cc3ac6c988cbe
7
+ data.tar.gz: fa1ed4243a0be7e319d07e27671ab54ec58be122a71353798a2fbcc902e87a2e0627fd09c81a981f58938ada293b51cb12c9be8d86ff0d5725b579b3c88e0363
@@ -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 -v "~> 2" --force
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 -v "~> 2"
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 -v "~> 2"
25
+ gem install bundler
25
26
  bundle config --local path vendor/bundle
26
27
  bundle update
27
28
  bundle install --jobs 4 --retry 3
@@ -638,9 +638,9 @@
638
638
  <zeroOrMore>
639
639
  <ref name="license"/>
640
640
  </zeroOrMore>
641
- <optional>
641
+ <zeroOrMore>
642
642
  <ref name="bclassification"/>
643
- </optional>
643
+ </zeroOrMore>
644
644
  <zeroOrMore>
645
645
  <ref name="bkeyword"/>
646
646
  </zeroOrMore>
@@ -39,6 +39,12 @@
39
39
  <optional>
40
40
  <attribute name="filename"/>
41
41
  </optional>
42
+ <optional>
43
+ <attribute name="model"/>
44
+ </optional>
45
+ <optional>
46
+ <attribute name="type"/>
47
+ </optional>
42
48
  <optional>
43
49
  <ref name="reqtitle"/>
44
50
  </optional>
@@ -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}|--)$/.match t["citeas"]
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 = '--']").each do |b|
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
@@ -85,7 +85,7 @@ p.FigureTitle
85
85
  mso-fareast-font-family:$bodyfont;
86
86
  mso-bidi-font-family:$bodyfont;
87
87
  mso-ansi-language:EN-GB;}
88
- p.AdmonitionTitle
88
+ p.AdmonitionTitle, p.RecommendationTitle
89
89
  {mso-style-unhide:no;
90
90
  mso-style-qformat:yes;
91
91
  mso-style-parent:"";
@@ -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:black;
506
- text-decoration:none;}
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
- text-decoration:none;
512
- color:black;}
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;
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.3.12".freeze
3
+ VERSION = "1.3.13".freeze
4
4
  end
5
5
  end
@@ -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:–</docidentifier>
634
+ <docidentifier>ISO 123:—</docidentifier>
635
635
  <date type="published">
636
- <on>--</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:–</docidentifier>
23
+ <docidentifier>ISO 123:—</docidentifier>
24
24
  <date type="published">
25
- <on>--</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.12
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: 2019-12-23 00:00:00.000000000 Z
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