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 +4 -4
- data/.github/workflows/rake.yml +27 -8
- data/.github/workflows/release-tag.yml +49 -0
- data/.github/workflows/release.yml +42 -0
- data/README.adoc +1 -3
- data/bin/mn2pdf.jar +0 -0
- data/lib/mn2pdf/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ca19db80d8efe03100f5ec676e5261938cdea9481099d0d15a4462eb60f29f
|
4
|
+
data.tar.gz: eb08e5eeb02c1466726eb04783f03280998600bafcd75345c4016b3a7b1af96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '095b2c141920d8415378ad6b38974f2addbad14c56dddc52edd0c891ade38908720a07952dcad2dc58b492127c937829f67829382e70280a6cb24e9871637a3b'
|
7
|
+
data.tar.gz: 2a4a25fc19f95f06c031a5a097c11c7544c34cbe42548c787cb18bc7497671a89b7063caa935167409d05fbe3743239b5070503bd37c0f394d053bed8e7d5e10
|
data/.github/workflows/rake.yml
CHANGED
@@ -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
|
-
-
|
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
|
-
-
|
41
|
-
|
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
|
-
-
|
44
|
-
|
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
|
+
|
data/README.adoc
CHANGED
@@ -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/
|
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"]
|
data/bin/mn2pdf.jar
CHANGED
Binary file
|
data/lib/mn2pdf/version.rb
CHANGED
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.
|
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-
|
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
|