mn2pdf 1.22.2 → 1.23

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: fdd3f34195cf93f977c0a14e81e81e5a5fb9449684028613a32e0e052e9dc4b0
4
- data.tar.gz: 87b1ba95a946136dcbe32ee3221c51721e477351e06ad84cf31fd59d0f704285
3
+ metadata.gz: 10ca19db80d8efe03100f5ec676e5261938cdea9481099d0d15a4462eb60f29f
4
+ data.tar.gz: eb08e5eeb02c1466726eb04783f03280998600bafcd75345c4016b3a7b1af96c
5
5
  SHA512:
6
- metadata.gz: 45f50f13fcf5a1b17e6c3b580d7137aae431b6b3a916eef0a3dcdc0eec180527ae0f6cd16cf6dcc4bfc6fc77bfe6228f029a5efc973eaf27cb930abdb5d33c5e
7
- data.tar.gz: b968be6cd583de40526eecc57f13b5108fd0eded6815238578d1c0f23a801c938a06b7652b4d2229683d4484aa94e64d89f0c860c617d30be1f139e3ce9c9122
6
+ metadata.gz: '095b2c141920d8415378ad6b38974f2addbad14c56dddc52edd0c891ade38908720a07952dcad2dc58b492127c937829f67829382e70280a6cb24e9871637a3b'
7
+ data.tar.gz: 2a4a25fc19f95f06c031a5a097c11c7544c34cbe42548c787cb18bc7497671a89b7063caa935167409d05fbe3743239b5070503bd37c0f394d053bed8e7d5e10
@@ -4,7 +4,8 @@ name: rake
4
4
 
5
5
  on:
6
6
  push:
7
- branches: [ master ]
7
+ branches: [ master, main ]
8
+ tags: [ v* ]
8
9
  pull_request:
9
10
 
10
11
  jobs:
@@ -31,14 +32,32 @@ jobs:
31
32
  steps:
32
33
  - uses: actions/checkout@master
33
34
 
34
- - name: Use Ruby
35
- uses: ruby/setup-ruby@v1
35
+ - uses: ruby/setup-ruby@v1
36
36
  with:
37
37
  ruby-version: ${{ matrix.ruby }}
38
- bundler-cache: true
39
38
 
40
- - name: Update gems
41
- run: bundle install --jobs 4 --retry 3
39
+ - uses: actions/cache@v1
40
+ with:
41
+ path: vendor/bundle
42
+ key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}
43
+ restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }}
44
+
45
+ - run: bundle config set path 'vendor/bundle'
46
+
47
+ - run: bundle install --jobs 4 --retry 3
42
48
 
43
- - name: Run specs
44
- run: bundle exec rake
49
+ - run: bundle exec rake
50
+
51
+ notify:
52
+ name: Trigger notify workflow
53
+ needs: rake
54
+ runs-on: ubuntu-latest
55
+ steps:
56
+ - name: Trigger notify workflow
57
+ uses: Sibz/github-status-action@v1
58
+ with:
59
+ authToken: ${{ secrets.GITHUB_TOKEN }}
60
+ context: 'tests-passed-successfully'
61
+ description: 'Tests passed successfully'
62
+ state: 'success'
63
+ sha: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -0,0 +1,49 @@
1
+ name: release-tag
2
+
3
+ on:
4
+ repository_dispatch:
5
+ types: [ metanorma/mn2pdf ]
6
+
7
+ jobs:
8
+ tag_repo:
9
+ runs-on: ubuntu-18.04
10
+ if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - name: Add writable remote
14
+ run: |
15
+ git config --global user.name "metanorma-ci"
16
+ git config --global user.email "metanorma-ci@users.noreply.github.com"
17
+ git remote add github "https://metanorma-ci:${{ secrets.METANORMA_CI_PAT_TOKEN }}@github.com/$GITHUB_REPOSITORY.git"
18
+ git pull github ${GITHUB_REF} --ff-only
19
+ - name: Parse mn2pdf version
20
+ env:
21
+ MN2PDF_TAG: ${{ github.event.client_payload.ref }}
22
+ run: |
23
+ echo "::set-env name=MN2PDF_VERSION::${MN2PDF_TAG#*/v}"
24
+ - name: Use Ruby
25
+ uses: actions/setup-ruby@v1
26
+ with:
27
+ ruby-version: '2.6'
28
+ architecture: 'x64'
29
+ - name: Update gems
30
+ run: |
31
+ gem install gem-release
32
+ gem install bundler
33
+ bundle install --jobs 4 --retry 3
34
+ - name: Update version
35
+ run: |
36
+ gem bump --version ${MN2PDF_VERSION} --no-commit
37
+ - name: Update mn2pdf.jar
38
+ run: |
39
+ rm -f bin/mn2pdf.jar
40
+ rake bin/mn2pdf.jar
41
+ - name: Run specs
42
+ run: |
43
+ bundle exec rake
44
+ - name: Push commit and tag
45
+ run: |
46
+ git add -u bin/mn2pdf.jar lib/mn2pdf/version.rb
47
+ git commit -m "Bump version to ${MN2PDF_VERSION}"
48
+ git tag v${MN2PDF_VERSION}
49
+ git push github HEAD:${GITHUB_REF} --tags
@@ -0,0 +1,42 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-18.04
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - name: Use Ruby
14
+ uses: actions/setup-ruby@v1
15
+ with:
16
+ ruby-version: '2.6'
17
+ architecture: 'x64'
18
+ - name: Update gems
19
+ run: |
20
+ gem install bundler
21
+ bundle install --jobs 4 --retry 3
22
+ - name: Update mn2pdf.jar
23
+ run: |
24
+ rm -f bin/mn2pdf.jar
25
+ rake bin/mn2pdf.jar
26
+ - name: Run specs
27
+ run: |
28
+ bundle exec rake
29
+ - name: Publish to rubygems.org
30
+ env:
31
+ RUBYGEMS_API_KEY: ${{secrets.METANORMA_CI_RUBYGEMS_API_KEY}}
32
+ run: |
33
+ gem install gem-release
34
+ touch ~/.gem/credentials
35
+ cat > ~/.gem/credentials << EOF
36
+ ---
37
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
38
+ EOF
39
+ chmod 0600 ~/.gem/credentials
40
+ git status
41
+ gem release
42
+
@@ -1,9 +1,7 @@
1
1
  = mn2pdf Ruby gem
2
2
 
3
3
  image:https://img.shields.io/gem/v/mn2pdf.svg["Gem Version", link="https://rubygems.org/gems/mn2pdf"]
4
- image:https://github.com/metanorma/mn2pdf-ruby/workflows/ubuntu/badge.svg["Ubuntu Build Status", link="https://github.com/metanorma/mn2pdf-ruby/actions?query=workflow%3Aubuntu"]
5
- image:https://github.com/metanorma/mn2pdf-ruby/workflows/macos/badge.svg["OSX Build Status", link="https://github.com/metanorma/mn2pdf-ruby/actions?query=workflow%3Amacos"]
6
- image:https://github.com/metanorma/mn2pdf-ruby/workflows/windows/badge.svg["Windows Build Status", link="https://github.com/metanorma/mn2pdf-ruby/actions?query=workflow%3Awindows"]
4
+ image:https://github.com/metanorma/mn2pdf-ruby/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/mn2pdf-ruby/actions?workflow=rake"]
7
5
  image:https://codeclimate.com/github/metanorma/mn2pdf-ruby/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/mn2pdf-ruby"]
8
6
  image:https://img.shields.io/github/issues-pr-raw/metanorma/mn2pdf-ruby.svg["Pull Requests", link="https://github.com/metanorma/mn2pdf-ruby/pulls"]
9
7
  image:https://img.shields.io/github/commits-since/metanorma/mn2pdf-ruby/latest.svg["Commits since latest",link="https://github.com/metanorma/mn2pdf-ruby/releases"]
Binary file
@@ -1,3 +1,3 @@
1
1
  module Mn2pdf
2
- VERSION = '1.22.2'
2
+ VERSION = '1.23'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mn2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.2
4
+ version: '1.23'
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-11-01 00:00:00.000000000 Z
11
+ date: 2020-11-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  mn2pdf converts Metanorma XML into PDF.
@@ -21,6 +21,8 @@ extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - ".github/workflows/rake.yml"
24
+ - ".github/workflows/release-tag.yml"
25
+ - ".github/workflows/release.yml"
24
26
  - ".gitignore"
25
27
  - ".rspec"
26
28
  - CODE_OF_CONDUCT.md