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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +4 -32
  3. data/.gitignore +14 -0
  4. data/Gemfile +4 -0
  5. data/lib/isodoc/iec/base_convert.rb +3 -2
  6. data/lib/isodoc/iec/html/htmlstyle.css +1 -1
  7. data/lib/isodoc/iec/html/htmlstyle.scss +1 -1
  8. data/lib/isodoc/iec/html_convert.rb +2 -1
  9. data/lib/isodoc/iec/iec.international-standard.xsl +294 -214
  10. data/lib/isodoc/iec/xref.rb +9 -8
  11. data/lib/{asciidoctor → metanorma}/iec/basicdoc.rng +0 -0
  12. data/lib/{asciidoctor → metanorma}/iec/biblio.rng +0 -0
  13. data/lib/{asciidoctor → metanorma}/iec/converter.rb +22 -1
  14. data/lib/{asciidoctor → metanorma}/iec/front.rb +1 -1
  15. data/lib/{asciidoctor → metanorma}/iec/iec.rng +0 -0
  16. data/lib/{asciidoctor → metanorma}/iec/iec_intro_en.xml +0 -0
  17. data/lib/{asciidoctor → metanorma}/iec/iec_intro_fr.xml +0 -0
  18. data/lib/{asciidoctor → metanorma}/iec/isodoc.rng +29 -0
  19. data/lib/{asciidoctor → metanorma}/iec/isostandard.rng +0 -0
  20. data/lib/{asciidoctor → metanorma}/iec/reqt.rng +0 -0
  21. data/lib/metanorma/iec/version.rb +1 -1
  22. data/lib/metanorma-iec.rb +1 -1
  23. data/metanorma-iec.gemspec +1 -1
  24. data/spec/isodoc/iev_spec.rb +5 -4
  25. data/spec/isodoc/ref_spec.rb +359 -353
  26. data/spec/{asciidoctor → metanorma}/base_spec.rb +1 -1
  27. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  28. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  29. data/spec/{asciidoctor → metanorma}/iev_spec.rb +1 -1
  30. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  31. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  32. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  33. data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
  34. data/spec/spec_helper.rb +2 -2
  35. metadata +22 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cd54ae113583e981d0db28b08ed00eb92f1b07a79d395c1d907860270889b59
4
- data.tar.gz: bb89fee2a134f6affa9a94d21da24a9ef2c827bb5a5ea03991d405325fe101b0
3
+ metadata.gz: 987a5334c5d941aa6ff1eac64f0b8edc6eb8958fdff9950d1af258e64a8b4664
4
+ data.tar.gz: 47cae3021910adfe22bffa239954953e4855a1761d23b3b60a1ad2c747ef4f25
5
5
  SHA512:
6
- metadata.gz: 1b3b33b44d4f1434415774b9ceccdff08a48ce8983aee4e7717e5a217fb47bfbfa77b447d70dd4a4530e5fd0e36e9158ebc18ff9ff58a07d4e3a7d80aee82219
7
- data.tar.gz: 4aa8430cb7caa4450916cf7a677612c937183e62a77b938787f4baf76e4d63fa4de0630283bc761cdd30063aca1df8472a8e5098bc9b453121f9eec75038c684
6
+ metadata.gz: 81403aa9928d89f6dcf70efe826c4e973a2b8eb6bf0b072463d07de91d723bd89b27244fa14b45fd6873dbb3ec10c7681762528d3ab878838b79cbd553fd3604
7
+ data.tar.gz: 1a7f54fb482fef04f0ab1fa9107a82e09b0e40c093477c797205a4475e317f39192d525fa467aad44f6ded89b90960a5919e01254670f7a30483659e05e6bae4
@@ -9,35 +9,7 @@ on:
9
9
  pull_request:
10
10
 
11
11
  jobs:
12
- rake:
13
- name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
14
- runs-on: ${{ matrix.os }}
15
- continue-on-error: ${{ matrix.experimental }}
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
@@ -7,3 +7,7 @@ source "https://rubygems.org"
7
7
  gemspec
8
8
 
9
9
  gem "reline", "~> 0.2.8.pre.11"
10
+
11
+ if File.exist? "Gemfile.devel"
12
+ eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
13
+ end
@@ -48,7 +48,7 @@ module IsoDoc
48
48
  out.p(**{ class: "zzSTDTitle1" }) { |p| p << "&nbsp;" }
49
49
  end
50
50
 
51
- def middle_title_parts(out)
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]} &mdash; #{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
- out.p(**{ class: "zzSTDTitle2" }) do |p|
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
@@ -331,7 +331,7 @@ p.zzSTDTitle1 {
331
331
  font-size: 1.5em;
332
332
  text-transform: uppercase; }
333
333
 
334
- p.zzSTDTitle2 {
334
+ .zzSTDTitle2 {
335
335
  font-weight: 700;
336
336
  font-size: 1.5em; }
337
337
 
@@ -133,7 +133,7 @@ p.zzSTDTitle1 {
133
133
  text-transform: uppercase;
134
134
  }
135
135
 
136
- p.zzSTDTitle2 {
136
+ .zzSTDTitle2 {
137
137
  font-weight: 700;
138
138
  font-size: 1.5em;
139
139
  }
@@ -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 @class = 'boilerplate-feedback']")
41
+ auth = docxml.at("//div[@id = 'boilerplate-feedback' or "\
42
+ "@class = 'boilerplate-feedback']")
42
43
  auth&.remove
43
44
  super
44
45
  end