metanorma-gb 1.4.0 → 1.4.1

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: 50ae7327f236ecb70d2b98d3f9f0ea1ab142712089e9062ebd680561f2c40a2e
4
- data.tar.gz: b3b36dab86dbbaa96e215e276f60a80c81e268f2f305b40948a19afd6428630a
3
+ metadata.gz: 8e077fbc8c1b78bd762f3f835e746c9ef3962b7b006b1d2f52b0ceb1f456a60b
4
+ data.tar.gz: e96cd7481cafe9c70008beca81331c3cd5fc39f76ffa90d27befe94311ce8fbf
5
5
  SHA512:
6
- metadata.gz: 2b6993e4a7030025b09f98bb5f0c16f998533cddd4916ee0ea8dc4a5be22dca7301c2eca96a64c2348d75490e43f1bbdf1df577aa0a6f19e98e7515d4172dcaf
7
- data.tar.gz: e03ae570fd22b11928d5c8bcbd50c25b017269da85e926a96db586d0e38d55bc9407de81a9720e23f5f087a9814602a34420abf8369c399d10f6e0367211d70b
6
+ metadata.gz: 95871f762fadc540a35ec9676d97a14f8c1996afa33d09525b22d603224e199fb284e82a762b84a7da10f554548511ee20c1ce3210df0ee96478cb0079fb2e49
7
+ data.tar.gz: 5a102ff4ecb8556943d21d66f73f1744a84bce3b27e8e8649c8feef778ad854a1d69ca94735952d823f287323e4d2b9875c41249671d857e4ec81416954257cd
@@ -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: |
@@ -61,6 +61,7 @@ module Asciidoctor
61
61
  end
62
62
 
63
63
  def pdf_converter(node)
64
+ return nil if node.attr("no-pdf")
64
65
  node.nil? ? IsoDoc::Gb::PdfConvert.new({}) :
65
66
  IsoDoc::Gb::PdfConvert.new(doc_extract_attributes(node))
66
67
  end
@@ -32,10 +32,6 @@ module Metanorma
32
32
  "Metanorma::Gb #{Metanorma::Gb::VERSION}"
33
33
  end
34
34
 
35
- def input_to_isodoc(file, filename)
36
- Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend)
37
- end
38
-
39
35
  def extract_options(file)
40
36
  head = file.sub(/\n\n.*$/m, "\n")
41
37
  /\n:standard-logo-img: (?<standardlogoimg>[^\n]+)\n/ =~ head
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.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: metanorma-iso