metanorma-bipm 1.2.3 → 2.0.0.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: 9b22db789ba7361ec7dc5d0c1da31726d0c76bfb48b15f0ff0d3fe4dc823c1a6
4
- data.tar.gz: b37ed78f5b86b7712ec3b07847a379db481c8661c3a877634c0af0cd928da810
3
+ metadata.gz: e12ccd357c97ed5057e57ff60b86afc4cf47941d8e52769930e5557052ad5d68
4
+ data.tar.gz: 5eaf1af1f25d13852b79da9499281536fd264d44d88c6ea40465ce44ec2bdc5a
5
5
  SHA512:
6
- metadata.gz: c110387336896dc5a738217756adb3b181ab5f8e734aaec1d38bbd45749b02df9436d7ff69d9e056470b9d68536949eb6ec0f4a61b6d19764ce351d8d0e77a76
7
- data.tar.gz: bd044fa43de831b8ba85f4b49ac096ea487ea927693a89d074276511b730dcd978e2c8cf3922d680b8254a6ea6d5c04c239435cb222ef93eaa67e5fc93c1988c
6
+ metadata.gz: 36b6f81ab682378bcb10cef58134b63fc4b1ed1bd2413f5ffed996f8a371fb09d95c51071bafad71dc93d561eacfaa63f7e99aa820aa357f217c4236d631a71b
7
+ data.tar.gz: c52d5a9880e003749185c8fd847b31253596a35381a21a89a241fa6d6877ba850a9e2ed8f8869161f276ef6d91cd5521965ffd8445e94c37751b182d8b3597de
@@ -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
@@ -2,3 +2,5 @@
2
2
  /.byebug_history
3
3
  /.rspec_status
4
4
  /coverage/
5
+ /Gemfile.devel
6
+ /Gemfile.lock
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "asciidoctor/vsd"
4
+ require "metanorma/bipm"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -72,16 +72,6 @@ module IsoDoc
72
72
  @jcgm ? docxml : super
73
73
  end
74
74
 
75
- def termref_cleanup(docxml)
76
- docxml
77
- .gsub(/\s*\[MODIFICATION\]\s*\[\/TERMREF\]/,
78
- l10n(", #{@i18n.modified} [/TERMREF]"))
79
- .gsub(%r{\s*\[/TERMREF\]\s*</p>\s*<p>\s*\[TERMREF\]}, "; ")
80
- .gsub(/\[TERMREF\]\s*/, l10n("[#{@i18n.source} "))
81
- .gsub(%r{\s*\[/TERMREF\]\s*}, l10n("]"))
82
- .gsub(/\s*\[MODIFICATION\]/, l10n(", #{@i18n.modified} &mdash; "))
83
- end
84
-
85
75
  def error_parse(node, out)
86
76
  case node.name
87
77
  when "blacksquare" then blacksquare_parse(node, out)