metanorma-iec 1.4.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +4 -32
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/lib/isodoc/iec/base_convert.rb +3 -2
- data/lib/isodoc/iec/html/htmlstyle.css +1 -1
- data/lib/isodoc/iec/html/htmlstyle.scss +1 -1
- data/lib/isodoc/iec/html_convert.rb +2 -1
- data/lib/isodoc/iec/iec.international-standard.xsl +294 -214
- data/lib/isodoc/iec/xref.rb +9 -8
- data/lib/{asciidoctor → metanorma}/iec/basicdoc.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iec/biblio.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iec/converter.rb +22 -1
- data/lib/{asciidoctor → metanorma}/iec/front.rb +1 -1
- data/lib/{asciidoctor → metanorma}/iec/iec.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iec/iec_intro_en.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iec/iec_intro_fr.xml +0 -0
- data/lib/{asciidoctor → metanorma}/iec/isodoc.rng +29 -0
- data/lib/{asciidoctor → metanorma}/iec/isostandard.rng +0 -0
- data/lib/{asciidoctor → metanorma}/iec/reqt.rng +0 -0
- data/lib/metanorma/iec/version.rb +1 -1
- data/lib/metanorma-iec.rb +1 -1
- data/metanorma-iec.gemspec +1 -1
- data/spec/isodoc/iev_spec.rb +5 -4
- data/spec/isodoc/ref_spec.rb +359 -353
- data/spec/{asciidoctor → metanorma}/base_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/iev_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
- data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 987a5334c5d941aa6ff1eac64f0b8edc6eb8958fdff9950d1af258e64a8b4664
|
4
|
+
data.tar.gz: 47cae3021910adfe22bffa239954953e4855a1761d23b3b60a1ad2c747ef4f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81403aa9928d89f6dcf70efe826c4e973a2b8eb6bf0b072463d07de91d723bd89b27244fa14b45fd6873dbb3ec10c7681762528d3ab878838b79cbd553fd3604
|
7
|
+
data.tar.gz: 1a7f54fb482fef04f0ab1fa9107a82e09b0e40c093477c797205a4475e317f39192d525fa467aad44f6ded89b90960a5919e01254670f7a30483659e05e6bae4
|
data/.github/workflows/rake.yml
CHANGED
@@ -9,35 +9,7 @@ on:
|
|
9
9
|
pull_request:
|
10
10
|
|
11
11
|
jobs:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
strategy:
|
17
|
-
fail-fast: false
|
18
|
-
matrix:
|
19
|
-
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
20
|
-
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
|
-
experimental: [ false ]
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v2
|
24
|
-
with:
|
25
|
-
submodules: true
|
26
|
-
|
27
|
-
- uses: ruby/setup-ruby@v1
|
28
|
-
with:
|
29
|
-
ruby-version: ${{ matrix.ruby }}
|
30
|
-
bundler-cache: true
|
31
|
-
|
32
|
-
- run: bundle exec rake
|
33
|
-
|
34
|
-
tests-passed:
|
35
|
-
needs: rake
|
36
|
-
runs-on: ubuntu-latest
|
37
|
-
steps:
|
38
|
-
- uses: peter-evans/repository-dispatch@v1
|
39
|
-
with:
|
40
|
-
token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
|
41
|
-
repository: ${{ github.repository }}
|
42
|
-
event-type: tests-passed
|
43
|
-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
12
|
+
notify:
|
13
|
+
uses: metanorma/metanorma-build-scripts/.github/workflows/mn-processor-rake.yml@main
|
14
|
+
secrets:
|
15
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
data/.gitignore
CHANGED
@@ -4,3 +4,17 @@
|
|
4
4
|
coverage/
|
5
5
|
|
6
6
|
.rubocop-https--*
|
7
|
+
|
8
|
+
/Gemfile.devel
|
9
|
+
/Gemfile.lock
|
10
|
+
/spec/assets/iso.doc
|
11
|
+
/spec/assets/iso.html
|
12
|
+
/spec/assets/iso.pdf
|
13
|
+
/test.doc
|
14
|
+
/test.err
|
15
|
+
/test.html
|
16
|
+
/test.pdf
|
17
|
+
/test.presentation.xml
|
18
|
+
/test.sts.xml
|
19
|
+
/test.xml
|
20
|
+
/test_alt.html
|
data/Gemfile
CHANGED
@@ -48,7 +48,7 @@ module IsoDoc
|
|
48
48
|
out.p(**{ class: "zzSTDTitle1" }) { |p| p << " " }
|
49
49
|
end
|
50
50
|
|
51
|
-
def middle_title_parts(
|
51
|
+
def middle_title_parts(_out)
|
52
52
|
title1 = @meta.get[:doctitlemain]&.sub(/\s+$/, "")
|
53
53
|
@meta.get[:doctitleintro] and
|
54
54
|
title1 = "#{@meta.get[:doctitleintro]} — #{title1}"
|
@@ -79,7 +79,8 @@ module IsoDoc
|
|
79
79
|
|
80
80
|
page_break(out)
|
81
81
|
out.div **attr_code(id: node["id"]) do |div|
|
82
|
-
|
82
|
+
depth = clause_title_depth(node, nil)
|
83
|
+
out.send "h#{depth}", **{ class: "zzSTDTitle2" } do |p|
|
83
84
|
p.b do |b|
|
84
85
|
node&.at(ns("./title"))&.children&.each { |c2| parse(c2, b) }
|
85
86
|
end
|
@@ -38,7 +38,8 @@ module IsoDoc
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def authority_cleanup(docxml)
|
41
|
-
auth = docxml.at("//div[@id = 'boilerplate-feedback' or
|
41
|
+
auth = docxml.at("//div[@id = 'boilerplate-feedback' or "\
|
42
|
+
"@class = 'boilerplate-feedback']")
|
42
43
|
auth&.remove
|
43
44
|
super
|
44
45
|
end
|