stepmod-utils 0.2.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +51 -0
- data/.github/workflows/release.yml +20 -22
- data/Gemfile +2 -1
- data/Makefile +2 -0
- data/README.adoc +82 -1
- data/exe/stepmod-annotate +44 -0
- data/exe/stepmod-annotate-all +39 -0
- data/exe/stepmod-build-resource-docs-cache +19 -0
- data/exe/stepmod-convert-express-description +33 -0
- data/exe/stepmod-convert-express-resource +33 -0
- data/exe/stepmod-find-express-files +23 -0
- data/lib/stepmod/utils/cleaner.rb +11 -0
- data/lib/stepmod/utils/converters/a.rb +47 -0
- data/lib/stepmod/utils/converters/blockquote.rb +22 -0
- data/lib/stepmod/utils/converters/br.rb +15 -0
- data/lib/stepmod/utils/converters/bypass.rb +81 -0
- data/lib/stepmod/utils/converters/code.rb +19 -0
- data/lib/stepmod/utils/converters/comment.rb +16 -0
- data/lib/stepmod/utils/converters/dd.rb +15 -0
- data/lib/stepmod/utils/converters/def.rb +11 -4
- data/lib/stepmod/utils/converters/dl.rb +31 -0
- data/lib/stepmod/utils/converters/drop.rb +22 -0
- data/lib/stepmod/utils/converters/dt.rb +17 -0
- data/lib/stepmod/utils/converters/em_express_description.rb +22 -0
- data/lib/stepmod/utils/converters/eqn.rb +96 -0
- data/lib/stepmod/utils/converters/example.rb +1 -6
- data/lib/stepmod/utils/converters/express_g.rb +46 -0
- data/lib/stepmod/utils/converters/express_ref_express_description.rb +13 -0
- data/lib/stepmod/utils/converters/ext_description.rb +16 -0
- data/lib/stepmod/utils/converters/ext_descriptions.rb +14 -0
- data/lib/stepmod/utils/converters/fund_cons.rb +15 -0
- data/lib/stepmod/utils/converters/head.rb +22 -0
- data/lib/stepmod/utils/converters/hr.rb +15 -0
- data/lib/stepmod/utils/converters/ignore.rb +16 -0
- data/lib/stepmod/utils/converters/introduction.rb +15 -0
- data/lib/stepmod/utils/converters/note.rb +1 -6
- data/lib/stepmod/utils/converters/ol.rb +3 -2
- data/lib/stepmod/utils/converters/p.rb +21 -0
- data/lib/stepmod/utils/converters/pass_through.rb +13 -0
- data/lib/stepmod/utils/converters/q.rb +16 -0
- data/lib/stepmod/utils/converters/resource.rb +14 -0
- data/lib/stepmod/utils/converters/schema.rb +18 -0
- data/lib/stepmod/utils/converters/schema_diag.rb +14 -0
- data/lib/stepmod/utils/converters/strong.rb +21 -0
- data/lib/stepmod/utils/converters/sub.rb +16 -0
- data/lib/stepmod/utils/converters/sup.rb +16 -0
- data/lib/stepmod/utils/converters/text.rb +68 -0
- data/lib/stepmod/utils/html_to_asciimath.rb +157 -0
- data/lib/stepmod/utils/smrl_description_converter.rb +49 -0
- data/lib/stepmod/utils/smrl_resource_converter.rb +67 -0
- data/lib/stepmod/utils/stepmod_file_annotator.rb +54 -0
- data/lib/stepmod/utils/version.rb +1 -1
- data/migrating_from_cvs.adoc +190 -0
- metadata +54 -6
- data/.github/workflows/macos.yml +0 -39
- data/.github/workflows/ubuntu.yml +0 -53
- data/.github/workflows/windows.yml +0 -41
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stepmod-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -68,44 +68,92 @@ dependencies:
|
|
68
68
|
version: '11.1'
|
69
69
|
description: 'Stepmod-utils is a toolkit that works on STEPmod data.
|
70
70
|
|
71
|
-
|
71
|
+
'
|
72
72
|
email:
|
73
73
|
- open.source@ribose.com
|
74
74
|
executables:
|
75
|
+
- stepmod-annotate
|
76
|
+
- stepmod-annotate-all
|
77
|
+
- stepmod-build-resource-docs-cache
|
78
|
+
- stepmod-convert-express-description
|
79
|
+
- stepmod-convert-express-resource
|
75
80
|
- stepmod-extract-terms
|
81
|
+
- stepmod-find-express-files
|
76
82
|
extensions: []
|
77
83
|
extra_rdoc_files: []
|
78
84
|
files:
|
79
|
-
- ".github/workflows/
|
85
|
+
- ".github/workflows/rake.yml"
|
80
86
|
- ".github/workflows/release.yml"
|
81
|
-
- ".github/workflows/ubuntu.yml"
|
82
|
-
- ".github/workflows/windows.yml"
|
83
87
|
- ".gitignore"
|
84
88
|
- ".rspec"
|
85
89
|
- CODE_OF_CONDUCT.md
|
86
90
|
- Gemfile
|
91
|
+
- Makefile
|
87
92
|
- README.adoc
|
88
93
|
- Rakefile
|
89
94
|
- bin/console
|
90
95
|
- bin/setup
|
96
|
+
- exe/stepmod-annotate
|
97
|
+
- exe/stepmod-annotate-all
|
98
|
+
- exe/stepmod-build-resource-docs-cache
|
99
|
+
- exe/stepmod-convert-express-description
|
100
|
+
- exe/stepmod-convert-express-resource
|
91
101
|
- exe/stepmod-extract-terms
|
102
|
+
- exe/stepmod-find-express-files
|
92
103
|
- lib/stepmod/utils.rb
|
93
104
|
- lib/stepmod/utils/bibdata.rb
|
105
|
+
- lib/stepmod/utils/cleaner.rb
|
94
106
|
- lib/stepmod/utils/concept.rb
|
107
|
+
- lib/stepmod/utils/converters/a.rb
|
108
|
+
- lib/stepmod/utils/converters/blockquote.rb
|
109
|
+
- lib/stepmod/utils/converters/br.rb
|
110
|
+
- lib/stepmod/utils/converters/bypass.rb
|
95
111
|
- lib/stepmod/utils/converters/clause_ref.rb
|
112
|
+
- lib/stepmod/utils/converters/code.rb
|
113
|
+
- lib/stepmod/utils/converters/comment.rb
|
114
|
+
- lib/stepmod/utils/converters/dd.rb
|
96
115
|
- lib/stepmod/utils/converters/def.rb
|
97
116
|
- lib/stepmod/utils/converters/definition.rb
|
117
|
+
- lib/stepmod/utils/converters/dl.rb
|
118
|
+
- lib/stepmod/utils/converters/drop.rb
|
119
|
+
- lib/stepmod/utils/converters/dt.rb
|
98
120
|
- lib/stepmod/utils/converters/em.rb
|
121
|
+
- lib/stepmod/utils/converters/em_express_description.rb
|
122
|
+
- lib/stepmod/utils/converters/eqn.rb
|
99
123
|
- lib/stepmod/utils/converters/example.rb
|
124
|
+
- lib/stepmod/utils/converters/express_g.rb
|
100
125
|
- lib/stepmod/utils/converters/express_ref.rb
|
126
|
+
- lib/stepmod/utils/converters/express_ref_express_description.rb
|
127
|
+
- lib/stepmod/utils/converters/ext_description.rb
|
128
|
+
- lib/stepmod/utils/converters/ext_descriptions.rb
|
129
|
+
- lib/stepmod/utils/converters/fund_cons.rb
|
130
|
+
- lib/stepmod/utils/converters/head.rb
|
131
|
+
- lib/stepmod/utils/converters/hr.rb
|
132
|
+
- lib/stepmod/utils/converters/ignore.rb
|
133
|
+
- lib/stepmod/utils/converters/introduction.rb
|
101
134
|
- lib/stepmod/utils/converters/module_ref.rb
|
102
135
|
- lib/stepmod/utils/converters/note.rb
|
103
136
|
- lib/stepmod/utils/converters/ol.rb
|
137
|
+
- lib/stepmod/utils/converters/p.rb
|
138
|
+
- lib/stepmod/utils/converters/pass_through.rb
|
139
|
+
- lib/stepmod/utils/converters/q.rb
|
140
|
+
- lib/stepmod/utils/converters/resource.rb
|
141
|
+
- lib/stepmod/utils/converters/schema.rb
|
142
|
+
- lib/stepmod/utils/converters/schema_diag.rb
|
104
143
|
- lib/stepmod/utils/converters/stem.rb
|
144
|
+
- lib/stepmod/utils/converters/strong.rb
|
145
|
+
- lib/stepmod/utils/converters/sub.rb
|
146
|
+
- lib/stepmod/utils/converters/sup.rb
|
105
147
|
- lib/stepmod/utils/converters/synonym.rb
|
106
148
|
- lib/stepmod/utils/converters/term.rb
|
149
|
+
- lib/stepmod/utils/converters/text.rb
|
150
|
+
- lib/stepmod/utils/html_to_asciimath.rb
|
151
|
+
- lib/stepmod/utils/smrl_description_converter.rb
|
152
|
+
- lib/stepmod/utils/smrl_resource_converter.rb
|
107
153
|
- lib/stepmod/utils/stepmod_definition_converter.rb
|
154
|
+
- lib/stepmod/utils/stepmod_file_annotator.rb
|
108
155
|
- lib/stepmod/utils/version.rb
|
156
|
+
- migrating_from_cvs.adoc
|
109
157
|
- resource_example.xml
|
110
158
|
- stepmod-utils.gemspec
|
111
159
|
homepage: https://github.com/metanorma/stepmod-utils
|
data/.github/workflows/macos.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: macos
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
pull_request:
|
9
|
-
paths-ignore:
|
10
|
-
- .github/workflows/ubuntu.yml
|
11
|
-
- .github/workflows/windows.yml
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
test-macos:
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} macOS
|
16
|
-
runs-on: macos-latest
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
18
|
-
strategy:
|
19
|
-
fail-fast: false
|
20
|
-
matrix:
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
22
|
-
experimental: [false]
|
23
|
-
include:
|
24
|
-
- ruby: '2.7'
|
25
|
-
experimental: true
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@master
|
28
|
-
- name: Use Ruby
|
29
|
-
uses: actions/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
architecture: 'x64'
|
33
|
-
- name: Update gems
|
34
|
-
run: |
|
35
|
-
sudo gem install bundler --force
|
36
|
-
bundle install --jobs 4 --retry 3
|
37
|
-
- name: Run specs
|
38
|
-
run: |
|
39
|
-
bundle exec rake
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: ubuntu
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
tags:
|
9
|
-
- '*'
|
10
|
-
pull_request:
|
11
|
-
paths-ignore:
|
12
|
-
- .github/workflows/macos.yml
|
13
|
-
- .github/workflows/windows.yml
|
14
|
-
|
15
|
-
jobs:
|
16
|
-
test-linux:
|
17
|
-
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
18
|
-
runs-on: ubuntu-latest
|
19
|
-
continue-on-error: ${{ matrix.experimental }}
|
20
|
-
strategy:
|
21
|
-
fail-fast: false
|
22
|
-
matrix:
|
23
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
24
|
-
experimental: [false]
|
25
|
-
include:
|
26
|
-
- ruby: '2.7'
|
27
|
-
experimental: true
|
28
|
-
steps:
|
29
|
-
- uses: actions/checkout@master
|
30
|
-
- name: Use Ruby
|
31
|
-
uses: actions/setup-ruby@v1
|
32
|
-
with:
|
33
|
-
ruby-version: ${{ matrix.ruby }}
|
34
|
-
architecture: 'x64'
|
35
|
-
- name: Update gems
|
36
|
-
run: |
|
37
|
-
gem install bundler
|
38
|
-
bundle install --jobs 4 --retry 3
|
39
|
-
- name: Run specs
|
40
|
-
run: |
|
41
|
-
bundle exec rake
|
42
|
-
- name: Trigger dependent repositories
|
43
|
-
if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6'
|
44
|
-
env:
|
45
|
-
GH_USERNAME: ${{ secrets.PAT_USERNAME }}
|
46
|
-
GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
|
47
|
-
run: |
|
48
|
-
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
49
|
-
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
50
|
-
for repo in $DEPENDENT_REPOS
|
51
|
-
do
|
52
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "{ \"ref\": \"${GITHUB_REF}\" }"
|
53
|
-
done
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: windows
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
pull_request:
|
9
|
-
paths-ignore:
|
10
|
-
- .github/workflows/macos.yml
|
11
|
-
- .github/workflows/ubuntu.yml
|
12
|
-
|
13
|
-
jobs:
|
14
|
-
test-windows:
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} Windows
|
16
|
-
runs-on: windows-latest
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
18
|
-
strategy:
|
19
|
-
fail-fast: false
|
20
|
-
matrix:
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
22
|
-
experimental: [false]
|
23
|
-
include:
|
24
|
-
- ruby: '2.7'
|
25
|
-
experimental: true
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@master
|
28
|
-
- name: Use Ruby
|
29
|
-
uses: actions/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
architecture: 'x64'
|
33
|
-
- name: Update gems
|
34
|
-
shell: pwsh
|
35
|
-
run: |
|
36
|
-
gem install bundler
|
37
|
-
bundle config --local path vendor/bundle
|
38
|
-
bundle install --jobs 4 --retry 3
|
39
|
-
- name: Run specs
|
40
|
-
run: |
|
41
|
-
bundle exec rake
|