metanorma-mpfa 0.4.0 → 0.4.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: 0fb2546742168abc4af81c4a1c6921b0c01c2e27fb8d52eed46cf40a20f92353
4
- data.tar.gz: 26473b6efacf914469da737a54fab479e00e171438a3838df6f19b003082b9fc
3
+ metadata.gz: 0c933db2087e74075d67d69696e55d6c6429188e64a1efcb3eb0e54a1f0003fc
4
+ data.tar.gz: 56e67d95a6f6553a947fceabbe9040d0e080d23c2fea46ac3dfe4ed640b0eef7
5
5
  SHA512:
6
- metadata.gz: 57b0d79d12c1ce861cb7c52c14b2257e5d1ca30a9c52f01c241ce413ce62767b63c0e4b70d7d192d6b1ed4cf81319664ce8b6c9ec6b4b28a4d64d6ecf69f44ad
7
- data.tar.gz: 0e70bf148a47b66edc05bc372da8b77d50d6693e31b8cd2c613cb6d6615ae510327e2d5c4ca31cae3f1d3c0f44beb0f39dce64602a268b594928db29ec09f541
6
+ metadata.gz: cce7e625ca697f02d77cda4292ff17ebcf15d2a110c6dbea4a4b05699d5a26929bbd852e8b91c1dd54e5837d6984561d9b7b777348a320160abf124ea159cac2
7
+ data.tar.gz: ca7ecfdc4cb6f325ab175b64e4183ba6eaf89ab2bcaad3dfe12b4ea28299365262ef7170216f8f650e55ae40eef86ab69804f6ca62d1a0c41bca94db4378556a
@@ -29,7 +29,6 @@ jobs:
29
29
  uses: actions/setup-ruby@v1
30
30
  with:
31
31
  ruby-version: ${{ matrix.ruby }}
32
- architecture: 'x64'
33
32
  - name: Update gems
34
33
  run: |
35
34
  sudo gem install bundler --force
@@ -31,7 +31,6 @@ jobs:
31
31
  uses: actions/setup-ruby@v1
32
32
  with:
33
33
  ruby-version: ${{ matrix.ruby }}
34
- architecture: 'x64'
35
34
  - name: Update gems
36
35
  run: |
37
36
  gem install bundler
@@ -39,15 +38,19 @@ jobs:
39
38
  - name: Run specs
40
39
  run: |
41
40
  bundle exec rake
42
- - name: Trigger dependent repositories
43
- if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6'
41
+ - name: Trigger repositories
42
+ if: matrix.ruby == '2.6'
44
43
  env:
45
- GH_USERNAME: ${{ secrets.PAT_USERNAME }}
46
- GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
44
+ GH_USERNAME: metanorma-ci
45
+ GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
47
46
  run: |
48
47
  curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
49
48
  [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
50
- for repo in $DEPENDENT_REPOS
49
+ CLIENT_PAYLOAD=$(cat <<EOF
50
+ "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
51
+ EOF
52
+ )
53
+ for repo in $REPOS
51
54
  do
52
- sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "{ \"ref\": \"${GITHUB_REF}\" }"
55
+ sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
53
56
  done
@@ -29,7 +29,6 @@ jobs:
29
29
  uses: actions/setup-ruby@v1
30
30
  with:
31
31
  ruby-version: ${{ matrix.ruby }}
32
- architecture: 'x64'
33
32
  - name: Update gems
34
33
  shell: pwsh
35
34
  run: |
@@ -12,8 +12,11 @@ module Asciidoctor
12
12
  h.delete("inline-header")
13
13
  end
14
14
  x.xpath("//*[@guidance]").each do |h|
15
- c = h.previous_element || next
16
- c.add_child h.remove
15
+ #c = h.at("./preceding-sibling::clause[last()]") || next
16
+ c = h.xpath("./preceding-sibling::clause")
17
+ c.empty? and next
18
+ #c.add_child h.remove
19
+ c.last.add_child h.remove
17
20
  end
18
21
  end
19
22
 
@@ -1,14 +1,3 @@
1
- <!--
2
- <div class="document-stage-band" id="{{ stage | downcase | replace: ' ', '-' }}-band">
3
- <p class="document-stage">{{ stage }}</p>
4
- </div>
5
-
6
- <div class="document-type-band" id="{{ doctype | downcase | replace: ' ', '-' }}-band">
7
- <p class="document-type">Ribose {{ doctype }}</p>
8
- </div>
9
- -->
10
-
11
-
12
1
  <div id='toggle'> <span>&#x2022;</span> </div>
13
2
 
14
3
  <header>
@@ -28,10 +28,6 @@ module Metanorma
28
28
  "Metanorma::MPFA #{Metanorma::MPFA::VERSION}"
29
29
  end
30
30
 
31
- def input_to_isodoc(file, filename)
32
- Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
33
- end
34
-
35
31
  def output(isodoc_node, inname, outname, format, options={})
36
32
  case format
37
33
  when :html
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module MPFA
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-mpfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-26 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities