mnconvert 1.24.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/prepare.yml +46 -0
- data/.github/workflows/rake.yml +36 -4
- data/.github/workflows/release-tag.yml +12 -1
- data/.github/workflows/release.yml +23 -16
- data/.gitignore +2 -0
- data/bin/mnconvert.jar +0 -0
- data/lib/mnconvert/version.rb +1 -1
- data/lib/mnconvert.rb +2 -1
- data/mnconvert.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e3294bb3a1b1cb4e2f639f1e3c6b58b748855f0718072bbf6822141baec2448
|
4
|
+
data.tar.gz: 87adb5d68c151e7fdac5bf50c3662119af611e8e09051af44d8eac6dd411e647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c15543a52f7a2822c687e5638962948026db1a862da8e07cee0d564daa0203295f3f382696cd8d26b6cdd104dfda60ff2c7011a3f780f6dc000be6dc0c2d6fc5
|
7
|
+
data.tar.gz: bbcb76bcb3616d407e6238821e4460967683269c823f366d0bde261cb636089cd43ae7c739b72be6d5f1e8c60c08b137af2ebeeceea79f5fc87396a706933d44
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: prepare
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_call:
|
5
|
+
secrets:
|
6
|
+
pat_token:
|
7
|
+
required: false
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
prepare-ieee:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
concurrency:
|
13
|
+
group: '${{ github.workflow }}-${{ github.head_ref || github.ref_name }}'
|
14
|
+
cancel-in-progress: true
|
15
|
+
steps:
|
16
|
+
- run: mkdir ieee
|
17
|
+
|
18
|
+
- uses: actions/checkout@v3
|
19
|
+
with:
|
20
|
+
repository: metanorma/ieee-stl
|
21
|
+
token: ${{ secrets.pat_token || github.token }}
|
22
|
+
path: ieee/stl
|
23
|
+
|
24
|
+
- uses: actions/checkout@v3
|
25
|
+
with:
|
26
|
+
repository: metanorma/mn-samples-ieee
|
27
|
+
path: ieee/samples
|
28
|
+
|
29
|
+
- uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: '3.0'
|
32
|
+
bundler-cache: true
|
33
|
+
working-directory: ieee/samples
|
34
|
+
|
35
|
+
- uses: actions-mn/cli/site-gen@main
|
36
|
+
with:
|
37
|
+
source-path: ieee/samples
|
38
|
+
use-bundler: true
|
39
|
+
agree-to-terms: true
|
40
|
+
|
41
|
+
- uses: actions/upload-artifact@v3
|
42
|
+
with:
|
43
|
+
name: ieee-test-input
|
44
|
+
path: |
|
45
|
+
ieee/stl/standards-1-7-DTD/standards-1-7-dtd/
|
46
|
+
ieee/samples/site/documents/p987.6/document.xml
|
data/.github/workflows/rake.yml
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
1
|
name: rake
|
4
2
|
|
5
3
|
on:
|
@@ -9,7 +7,41 @@ on:
|
|
9
7
|
pull_request:
|
10
8
|
|
11
9
|
jobs:
|
12
|
-
|
13
|
-
uses:
|
10
|
+
prepare-ieee:
|
11
|
+
uses: ./.github/workflows/prepare.yml
|
14
12
|
secrets:
|
15
13
|
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
14
|
+
|
15
|
+
rake:
|
16
|
+
name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
|
17
|
+
concurrency:
|
18
|
+
group: '${{ github.workflow }}-${{ matrix.os }}-${{ matrix.ruby }}-${{ github.head_ref || github.ref_name }}'
|
19
|
+
cancel-in-progress: true
|
20
|
+
needs: [ prepare-ieee ]
|
21
|
+
runs-on: ${{ matrix.os }}
|
22
|
+
continue-on-error: ${{ matrix.experimental }}
|
23
|
+
strategy:
|
24
|
+
fail-fast: false
|
25
|
+
max-parallel: 5
|
26
|
+
matrix:
|
27
|
+
ruby: [ '3.1', '3.0', '2.7' ]
|
28
|
+
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
29
|
+
experimental: [ false ]
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v3
|
32
|
+
with:
|
33
|
+
submodules: true
|
34
|
+
|
35
|
+
- uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
38
|
+
bundler-cache: true
|
39
|
+
|
40
|
+
- uses: actions/download-artifact@v3
|
41
|
+
with:
|
42
|
+
name: ieee-test-input
|
43
|
+
path: ieee
|
44
|
+
|
45
|
+
- run: ls -R ieee
|
46
|
+
|
47
|
+
- run: bundle exec rake
|
@@ -5,9 +5,15 @@ on:
|
|
5
5
|
types: [ metanorma/mnconvert ]
|
6
6
|
|
7
7
|
jobs:
|
8
|
+
prepare-ieee:
|
9
|
+
uses: ./.github/workflows/prepare.yml
|
10
|
+
secrets:
|
11
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
12
|
+
|
8
13
|
tag_repo:
|
9
14
|
runs-on: ubuntu-18.04
|
10
15
|
if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
|
16
|
+
needs: [ prepare-ieee ]
|
11
17
|
steps:
|
12
18
|
- uses: actions/checkout@v2
|
13
19
|
with:
|
@@ -23,7 +29,7 @@ jobs:
|
|
23
29
|
|
24
30
|
- uses: ruby/setup-ruby@v1
|
25
31
|
with:
|
26
|
-
ruby-version: '2.
|
32
|
+
ruby-version: '2.7'
|
27
33
|
bundler-cache: true
|
28
34
|
|
29
35
|
- run: gem install gem-release
|
@@ -34,6 +40,11 @@ jobs:
|
|
34
40
|
rm -f bin/mnconvert.jar
|
35
41
|
bundle exec rake bin/mnconvert.jar
|
36
42
|
|
43
|
+
- uses: actions/download-artifact@v3
|
44
|
+
with:
|
45
|
+
name: ieee-test-input
|
46
|
+
path: ieee
|
47
|
+
|
37
48
|
- run: bundle exec rake
|
38
49
|
|
39
50
|
- name: Push commit and tag
|
@@ -7,27 +7,34 @@ on:
|
|
7
7
|
workflow_dispatch: # just for manual release if previous was failed
|
8
8
|
|
9
9
|
jobs:
|
10
|
+
prepare-ieee:
|
11
|
+
uses: ./.github/workflows/prepare.yml
|
12
|
+
secrets:
|
13
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
14
|
+
|
10
15
|
release:
|
11
16
|
runs-on: ubuntu-18.04
|
17
|
+
needs: [ prepare-ieee ]
|
12
18
|
steps:
|
13
|
-
- uses: actions/checkout@
|
14
|
-
|
15
|
-
|
19
|
+
- uses: actions/checkout@v3
|
20
|
+
|
21
|
+
- uses: ruby/setup-ruby@v1
|
16
22
|
with:
|
17
|
-
ruby-version: '2.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
gem install bundler
|
22
|
-
bundle install --jobs 4 --retry 3
|
23
|
-
- name: Update mnconvert.jar
|
24
|
-
run: |
|
23
|
+
ruby-version: '2.7'
|
24
|
+
bundler-cache: true
|
25
|
+
|
26
|
+
- run: |
|
25
27
|
rm -f bin/mnconvert.jar
|
26
|
-
rake bin/mnconvert.jar
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
bundle exec rake bin/mnconvert.jar
|
29
|
+
|
30
|
+
- uses: actions/download-artifact@v3
|
31
|
+
with:
|
32
|
+
name: ieee-test-input
|
33
|
+
path: ieee
|
34
|
+
|
35
|
+
- run: bundle exec rake
|
36
|
+
|
37
|
+
- name: publish to rubygems.org
|
31
38
|
env:
|
32
39
|
RUBYGEMS_API_KEY: ${{secrets.METANORMA_CI_RUBYGEMS_API_KEY}}
|
33
40
|
run: |
|
data/.gitignore
CHANGED
data/bin/mnconvert.jar
CHANGED
Binary file
|
data/lib/mnconvert/version.rb
CHANGED
data/lib/mnconvert.rb
CHANGED
@@ -58,6 +58,7 @@ module MnConvert
|
|
58
58
|
output_format: "--output-format",
|
59
59
|
output_file: "--output",
|
60
60
|
xsl_file: "--xsl-file",
|
61
|
+
validation_against: "--validation-against",
|
61
62
|
}.freeze
|
62
63
|
|
63
64
|
def java_cmd
|
@@ -79,7 +80,7 @@ module MnConvert
|
|
79
80
|
end
|
80
81
|
|
81
82
|
def validate_mn(opts, output_format)
|
82
|
-
unless output_format.nil? || %w(iso niso).include?(output_format.to_s)
|
83
|
+
unless output_format.nil? || %w(iso niso ieee).include?(output_format.to_s)
|
83
84
|
raise StandardError.new("Invalid output format: #{output_format}")
|
84
85
|
end
|
85
86
|
|
data/mnconvert.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
spec.files = `git ls-files`.split("\n")
|
22
22
|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
23
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
23
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
24
24
|
|
25
25
|
# Specify which files should be added to the gem when it is released.
|
26
26
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mnconvert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
mnconvert converts Metanorma XML into NISO STS XML.
|
@@ -20,6 +20,7 @@ executables: []
|
|
20
20
|
extensions: []
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
+
- ".github/workflows/prepare.yml"
|
23
24
|
- ".github/workflows/rake.yml"
|
24
25
|
- ".github/workflows/release-tag.yml"
|
25
26
|
- ".github/workflows/release.yml"
|
@@ -49,14 +50,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
49
50
|
requirements:
|
50
51
|
- - ">="
|
51
52
|
- !ruby/object:Gem::Version
|
52
|
-
version: 2.
|
53
|
+
version: 2.7.0
|
53
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
55
|
requirements:
|
55
56
|
- - ">="
|
56
57
|
- !ruby/object:Gem::Version
|
57
58
|
version: '0'
|
58
59
|
requirements: []
|
59
|
-
rubygems_version: 3.
|
60
|
+
rubygems_version: 3.1.6
|
60
61
|
signing_key:
|
61
62
|
specification_version: 4
|
62
63
|
summary: mnconvert converts Metanorma XML into NISO STS XML.
|