mn2pdf 1.22.2 → 1.27

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: fdd3f34195cf93f977c0a14e81e81e5a5fb9449684028613a32e0e052e9dc4b0
4
- data.tar.gz: 87b1ba95a946136dcbe32ee3221c51721e477351e06ad84cf31fd59d0f704285
3
+ metadata.gz: 489286beb3f27992aa6f8b504d3fd9eea6d94893b49c4093a281f42d1c72958c
4
+ data.tar.gz: 24fe407bf83c7ddc35c9adda5cd1be3f920c3d32048fcf08e2e596330c466a3e
5
5
  SHA512:
6
- metadata.gz: 45f50f13fcf5a1b17e6c3b580d7137aae431b6b3a916eef0a3dcdc0eec180527ae0f6cd16cf6dcc4bfc6fc77bfe6228f029a5efc973eaf27cb930abdb5d33c5e
7
- data.tar.gz: b968be6cd583de40526eecc57f13b5108fd0eded6815238578d1c0f23a801c938a06b7652b4d2229683d4484aa94e64d89f0c860c617d30be1f139e3ce9c9122
6
+ metadata.gz: 44a2f9d16d692cd44ddba84dba5c37dc7877929fe524cdecab0aa581457bde4ec428fee237c86ef6dda4d5488285d21d5de4326d7c64d46d6e0af8b78bdf48a0
7
+ data.tar.gz: bc352eec981e68cdd680759c88aa9b01d0f3a52886c6918081a863f5e3eae64e74b1b465349b44d1d6237726fc56f3dcced8be80b8349b282c4cca9bfe25d8be
@@ -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 MN2PDF_VERSION=${MN2PDF_TAG#*/v} >> ${GITHUB_ENV}
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,40 @@
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
+ cat > ~/.gem/credentials << EOF
35
+ ---
36
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
37
+ EOF
38
+ chmod 0600 ~/.gem/credentials
39
+ gem release
40
+
@@ -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.27'
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.27'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-01 00:00:00.000000000 Z
11
+ date: 2021-01-24 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
@@ -37,7 +39,7 @@ homepage: https://github.com/metanorma/mn2pdf-ruby
37
39
  licenses:
38
40
  - BSD-2-Clause
39
41
  metadata: {}
40
- post_install_message:
42
+ post_install_message:
41
43
  rdoc_options: []
42
44
  require_paths:
43
45
  - lib
@@ -53,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
55
  version: '0'
54
56
  requirements: []
55
57
  rubygems_version: 3.0.3
56
- signing_key:
58
+ signing_key:
57
59
  specification_version: 4
58
60
  summary: mn2pdf converts Metanorma XML into PDF.
59
61
  test_files: []