stepmod-utils 0.2.0 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +42 -0
  3. data/.github/workflows/release.yml +23 -20
  4. data/Gemfile +2 -1
  5. data/Makefile +5 -0
  6. data/README.adoc +82 -1
  7. data/exe/stepmod-annotate-all +39 -0
  8. data/exe/stepmod-build-resource-docs-cache +19 -0
  9. data/exe/stepmod-convert-express-description +33 -0
  10. data/exe/stepmod-convert-express-resource +33 -0
  11. data/exe/stepmod-extract-terms +3 -3
  12. data/exe/stepmod-find-express-files +23 -0
  13. data/lib/stepmod/utils/cleaner.rb +11 -0
  14. data/lib/stepmod/utils/converters/a.rb +47 -0
  15. data/lib/stepmod/utils/converters/blockquote.rb +22 -0
  16. data/lib/stepmod/utils/converters/br.rb +15 -0
  17. data/lib/stepmod/utils/converters/bypass.rb +81 -0
  18. data/lib/stepmod/utils/converters/code.rb +19 -0
  19. data/lib/stepmod/utils/converters/comment.rb +16 -0
  20. data/lib/stepmod/utils/converters/dd.rb +15 -0
  21. data/lib/stepmod/utils/converters/def.rb +11 -4
  22. data/lib/stepmod/utils/converters/dl.rb +31 -0
  23. data/lib/stepmod/utils/converters/drop.rb +22 -0
  24. data/lib/stepmod/utils/converters/dt.rb +17 -0
  25. data/lib/stepmod/utils/converters/em_express_description.rb +22 -0
  26. data/lib/stepmod/utils/converters/eqn.rb +97 -0
  27. data/lib/stepmod/utils/converters/example.rb +1 -6
  28. data/lib/stepmod/utils/converters/express_g.rb +49 -0
  29. data/lib/stepmod/utils/converters/express_ref_express_description.rb +13 -0
  30. data/lib/stepmod/utils/converters/ext_description.rb +17 -0
  31. data/lib/stepmod/utils/converters/ext_descriptions.rb +14 -0
  32. data/lib/stepmod/utils/converters/fund_cons.rb +21 -0
  33. data/lib/stepmod/utils/converters/head.rb +22 -0
  34. data/lib/stepmod/utils/converters/hr.rb +15 -0
  35. data/lib/stepmod/utils/converters/ignore.rb +16 -0
  36. data/lib/stepmod/utils/converters/introduction.rb +15 -0
  37. data/lib/stepmod/utils/converters/note.rb +1 -6
  38. data/lib/stepmod/utils/converters/ol.rb +3 -2
  39. data/lib/stepmod/utils/converters/p.rb +21 -0
  40. data/lib/stepmod/utils/converters/pass_through.rb +13 -0
  41. data/lib/stepmod/utils/converters/q.rb +16 -0
  42. data/lib/stepmod/utils/converters/resource.rb +14 -0
  43. data/lib/stepmod/utils/converters/schema.rb +19 -0
  44. data/lib/stepmod/utils/converters/schema_diag.rb +14 -0
  45. data/lib/stepmod/utils/converters/strong.rb +41 -0
  46. data/lib/stepmod/utils/converters/sub.rb +24 -0
  47. data/lib/stepmod/utils/converters/sup.rb +22 -0
  48. data/lib/stepmod/utils/converters/table.rb +62 -0
  49. data/lib/stepmod/utils/converters/text.rb +68 -0
  50. data/lib/stepmod/utils/html_to_asciimath.rb +157 -0
  51. data/lib/stepmod/utils/smrl_description_converter.rb +49 -0
  52. data/lib/stepmod/utils/smrl_resource_converter.rb +67 -0
  53. data/lib/stepmod/utils/stepmod_file_annotator.rb +78 -0
  54. data/lib/stepmod/utils/version.rb +1 -1
  55. data/migrating_from_cvs.adoc +190 -0
  56. data/stepmod-utils.gemspec +1 -0
  57. metadata +69 -8
  58. data/.github/workflows/macos.yml +0 -39
  59. data/.github/workflows/ubuntu.yml +0 -53
  60. data/.github/workflows/windows.yml +0 -41
@@ -32,5 +32,6 @@ Gem::Specification.new do |spec|
32
32
  spec.add_runtime_dependency "thor", ">= 0.20.3"
33
33
  spec.add_runtime_dependency "reverse_adoc", ">= 0.2.9"
34
34
  spec.add_runtime_dependency "ptools", '~> 1.3'
35
+ spec.add_runtime_dependency "concurrent-ruby"
35
36
  spec.add_development_dependency "byebug", "~> 11.1"
36
37
  end
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.0
4
+ version: 0.2.7
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-07-08 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: concurrent-ruby
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: byebug
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -72,47 +86,94 @@ description: 'Stepmod-utils is a toolkit that works on STEPmod data.
72
86
  email:
73
87
  - open.source@ribose.com
74
88
  executables:
89
+ - stepmod-annotate-all
90
+ - stepmod-build-resource-docs-cache
91
+ - stepmod-convert-express-description
92
+ - stepmod-convert-express-resource
75
93
  - stepmod-extract-terms
94
+ - stepmod-find-express-files
76
95
  extensions: []
77
96
  extra_rdoc_files: []
78
97
  files:
79
- - ".github/workflows/macos.yml"
98
+ - ".github/workflows/rake.yml"
80
99
  - ".github/workflows/release.yml"
81
- - ".github/workflows/ubuntu.yml"
82
- - ".github/workflows/windows.yml"
83
100
  - ".gitignore"
84
101
  - ".rspec"
85
102
  - CODE_OF_CONDUCT.md
86
103
  - Gemfile
104
+ - Makefile
87
105
  - README.adoc
88
106
  - Rakefile
89
107
  - bin/console
90
108
  - bin/setup
109
+ - exe/stepmod-annotate-all
110
+ - exe/stepmod-build-resource-docs-cache
111
+ - exe/stepmod-convert-express-description
112
+ - exe/stepmod-convert-express-resource
91
113
  - exe/stepmod-extract-terms
114
+ - exe/stepmod-find-express-files
92
115
  - lib/stepmod/utils.rb
93
116
  - lib/stepmod/utils/bibdata.rb
117
+ - lib/stepmod/utils/cleaner.rb
94
118
  - lib/stepmod/utils/concept.rb
119
+ - lib/stepmod/utils/converters/a.rb
120
+ - lib/stepmod/utils/converters/blockquote.rb
121
+ - lib/stepmod/utils/converters/br.rb
122
+ - lib/stepmod/utils/converters/bypass.rb
95
123
  - lib/stepmod/utils/converters/clause_ref.rb
124
+ - lib/stepmod/utils/converters/code.rb
125
+ - lib/stepmod/utils/converters/comment.rb
126
+ - lib/stepmod/utils/converters/dd.rb
96
127
  - lib/stepmod/utils/converters/def.rb
97
128
  - lib/stepmod/utils/converters/definition.rb
129
+ - lib/stepmod/utils/converters/dl.rb
130
+ - lib/stepmod/utils/converters/drop.rb
131
+ - lib/stepmod/utils/converters/dt.rb
98
132
  - lib/stepmod/utils/converters/em.rb
133
+ - lib/stepmod/utils/converters/em_express_description.rb
134
+ - lib/stepmod/utils/converters/eqn.rb
99
135
  - lib/stepmod/utils/converters/example.rb
136
+ - lib/stepmod/utils/converters/express_g.rb
100
137
  - lib/stepmod/utils/converters/express_ref.rb
138
+ - lib/stepmod/utils/converters/express_ref_express_description.rb
139
+ - lib/stepmod/utils/converters/ext_description.rb
140
+ - lib/stepmod/utils/converters/ext_descriptions.rb
141
+ - lib/stepmod/utils/converters/fund_cons.rb
142
+ - lib/stepmod/utils/converters/head.rb
143
+ - lib/stepmod/utils/converters/hr.rb
144
+ - lib/stepmod/utils/converters/ignore.rb
145
+ - lib/stepmod/utils/converters/introduction.rb
101
146
  - lib/stepmod/utils/converters/module_ref.rb
102
147
  - lib/stepmod/utils/converters/note.rb
103
148
  - lib/stepmod/utils/converters/ol.rb
149
+ - lib/stepmod/utils/converters/p.rb
150
+ - lib/stepmod/utils/converters/pass_through.rb
151
+ - lib/stepmod/utils/converters/q.rb
152
+ - lib/stepmod/utils/converters/resource.rb
153
+ - lib/stepmod/utils/converters/schema.rb
154
+ - lib/stepmod/utils/converters/schema_diag.rb
104
155
  - lib/stepmod/utils/converters/stem.rb
156
+ - lib/stepmod/utils/converters/strong.rb
157
+ - lib/stepmod/utils/converters/sub.rb
158
+ - lib/stepmod/utils/converters/sup.rb
105
159
  - lib/stepmod/utils/converters/synonym.rb
160
+ - lib/stepmod/utils/converters/table.rb
106
161
  - lib/stepmod/utils/converters/term.rb
162
+ - lib/stepmod/utils/converters/text.rb
163
+ - lib/stepmod/utils/html_to_asciimath.rb
164
+ - lib/stepmod/utils/smrl_description_converter.rb
165
+ - lib/stepmod/utils/smrl_resource_converter.rb
107
166
  - lib/stepmod/utils/stepmod_definition_converter.rb
167
+ - lib/stepmod/utils/stepmod_file_annotator.rb
108
168
  - lib/stepmod/utils/version.rb
169
+ - migrating_from_cvs.adoc
109
170
  - resource_example.xml
110
171
  - stepmod-utils.gemspec
111
172
  homepage: https://github.com/metanorma/stepmod-utils
112
173
  licenses:
113
174
  - BSD-2-Clause
114
175
  metadata: {}
115
- post_install_message:
176
+ post_install_message:
116
177
  rdoc_options: []
117
178
  require_paths:
118
179
  - lib
@@ -128,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
189
  version: '0'
129
190
  requirements: []
130
191
  rubygems_version: 3.0.3
131
- signing_key:
192
+ signing_key:
132
193
  specification_version: 4
133
194
  summary: Stepmod-utils is a toolkit that works on STEPmod data.
134
195
  test_files: []
@@ -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