stepmod-utils 0.1.5 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +51 -0
  3. data/.github/workflows/release.yml +20 -22
  4. data/Gemfile +2 -0
  5. data/Makefile +2 -0
  6. data/README.adoc +136 -2
  7. data/exe/stepmod-annotate +44 -0
  8. data/exe/stepmod-annotate-all +39 -0
  9. data/exe/stepmod-build-resource-docs-cache +19 -0
  10. data/exe/stepmod-convert-express-description +33 -0
  11. data/exe/stepmod-convert-express-resource +33 -0
  12. data/exe/stepmod-extract-terms +62 -13
  13. data/exe/stepmod-find-express-files +23 -0
  14. data/lib/stepmod/utils/cleaner.rb +11 -0
  15. data/lib/stepmod/utils/concept.rb +16 -3
  16. data/lib/stepmod/utils/converters/a.rb +47 -0
  17. data/lib/stepmod/utils/converters/blockquote.rb +22 -0
  18. data/lib/stepmod/utils/converters/br.rb +15 -0
  19. data/lib/stepmod/utils/converters/bypass.rb +81 -0
  20. data/lib/stepmod/utils/converters/clause_ref.rb +2 -2
  21. data/lib/stepmod/utils/converters/code.rb +19 -0
  22. data/lib/stepmod/utils/converters/comment.rb +16 -0
  23. data/lib/stepmod/utils/converters/dd.rb +15 -0
  24. data/lib/stepmod/utils/converters/def.rb +13 -6
  25. data/lib/stepmod/utils/converters/definition.rb +2 -2
  26. data/lib/stepmod/utils/converters/dl.rb +31 -0
  27. data/lib/stepmod/utils/converters/drop.rb +22 -0
  28. data/lib/stepmod/utils/converters/dt.rb +17 -0
  29. data/lib/stepmod/utils/converters/em.rb +3 -3
  30. data/lib/stepmod/utils/converters/em_express_description.rb +22 -0
  31. data/lib/stepmod/utils/converters/eqn.rb +96 -0
  32. data/lib/stepmod/utils/converters/example.rb +3 -8
  33. data/lib/stepmod/utils/converters/express_g.rb +46 -0
  34. data/lib/stepmod/utils/converters/express_ref.rb +2 -2
  35. data/lib/stepmod/utils/converters/express_ref_express_description.rb +13 -0
  36. data/lib/stepmod/utils/converters/ext_description.rb +16 -0
  37. data/lib/stepmod/utils/converters/ext_descriptions.rb +14 -0
  38. data/lib/stepmod/utils/converters/fund_cons.rb +15 -0
  39. data/lib/stepmod/utils/converters/head.rb +22 -0
  40. data/lib/stepmod/utils/converters/hr.rb +15 -0
  41. data/lib/stepmod/utils/converters/ignore.rb +16 -0
  42. data/lib/stepmod/utils/converters/introduction.rb +15 -0
  43. data/lib/stepmod/utils/converters/module_ref.rb +2 -2
  44. data/lib/stepmod/utils/converters/note.rb +3 -8
  45. data/lib/stepmod/utils/converters/ol.rb +7 -6
  46. data/lib/stepmod/utils/converters/p.rb +21 -0
  47. data/lib/stepmod/utils/converters/pass_through.rb +13 -0
  48. data/lib/stepmod/utils/converters/q.rb +16 -0
  49. data/lib/stepmod/utils/converters/resource.rb +14 -0
  50. data/lib/stepmod/utils/converters/schema.rb +18 -0
  51. data/lib/stepmod/utils/converters/schema_diag.rb +14 -0
  52. data/lib/stepmod/utils/converters/stem.rb +2 -2
  53. data/lib/stepmod/utils/converters/strong.rb +21 -0
  54. data/lib/stepmod/utils/converters/sub.rb +16 -0
  55. data/lib/stepmod/utils/converters/sup.rb +16 -0
  56. data/lib/stepmod/utils/converters/synonym.rb +2 -2
  57. data/lib/stepmod/utils/converters/term.rb +2 -2
  58. data/lib/stepmod/utils/converters/text.rb +68 -0
  59. data/lib/stepmod/utils/html_to_asciimath.rb +157 -0
  60. data/lib/stepmod/utils/smrl_description_converter.rb +49 -0
  61. data/lib/stepmod/utils/smrl_resource_converter.rb +67 -0
  62. data/lib/stepmod/utils/stepmod_definition_converter.rb +21 -21
  63. data/lib/stepmod/utils/stepmod_file_annotator.rb +54 -0
  64. data/lib/stepmod/utils/version.rb +1 -1
  65. data/migrating_from_cvs.adoc +190 -0
  66. data/stepmod-utils.gemspec +2 -1
  67. metadata +70 -8
  68. data/.github/workflows/macos.yml +0 -39
  69. data/.github/workflows/ubuntu.yml +0 -53
  70. data/.github/workflows/windows.yml +0 -41
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'reverse_adoc'
4
+ require 'stepmod/utils/converters/a'
5
+ require 'stepmod/utils/converters/blockquote'
6
+ require 'stepmod/utils/converters/br'
7
+ require 'stepmod/utils/converters/bypass'
8
+ require 'stepmod/utils/converters/code'
9
+ require 'stepmod/utils/converters/drop'
10
+ require 'stepmod/utils/converters/em_express_description'
11
+ require 'stepmod/utils/converters/example'
12
+ require 'stepmod/utils/converters/express_ref_express_description'
13
+ require 'stepmod/utils/converters/ext_description'
14
+ require 'stepmod/utils/converters/ext_descriptions'
15
+ require 'stepmod/utils/converters/head'
16
+ require 'stepmod/utils/converters/hr'
17
+ require 'stepmod/utils/converters/ignore'
18
+ require 'stepmod/utils/converters/note'
19
+ require 'stepmod/utils/converters/p'
20
+ require 'stepmod/utils/converters/pass_through'
21
+ require 'stepmod/utils/converters/q'
22
+ require 'stepmod/utils/converters/strong'
23
+ require 'stepmod/utils/converters/sub'
24
+ require 'stepmod/utils/converters/sup'
25
+ require 'stepmod/utils/converters/text'
26
+ require 'stepmod/utils/cleaner'
27
+
28
+ module Stepmod
29
+ module Utils
30
+ class SmrlDescriptionConverter
31
+ def self.convert(input, options = {})
32
+ root = if input.is_a?(String)
33
+ then Nokogiri::XML(input).root
34
+ elsif input.is_a?(Nokogiri::XML::Document)
35
+ then input.root
36
+ elsif input.is_a?(Nokogiri::XML::Node)
37
+ then input
38
+ end
39
+
40
+ root || (return '')
41
+
42
+ ReverseAdoc.config.with(options) do
43
+ result = ReverseAdoc::Converters.lookup(root.name).convert(root)
44
+ Stepmod::Utils::Cleaner.new.tidy(result)
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'reverse_adoc'
4
+ require 'reverse_adoc/converters/bypass'
5
+ require 'reverse_adoc/converters/pass_through'
6
+ require 'stepmod/utils/converters/a'
7
+ require 'stepmod/utils/converters/blockquote'
8
+ require 'stepmod/utils/converters/br'
9
+ require 'stepmod/utils/converters/bypass'
10
+ require 'stepmod/utils/converters/code'
11
+ require 'stepmod/utils/converters/comment'
12
+ require 'stepmod/utils/converters/dd'
13
+ require 'stepmod/utils/converters/dl'
14
+ require 'stepmod/utils/converters/dt'
15
+ require 'stepmod/utils/converters/drop'
16
+ require 'stepmod/utils/converters/example'
17
+ require 'stepmod/utils/converters/express_g'
18
+ require 'stepmod/utils/converters/fund_cons'
19
+ require 'stepmod/utils/converters/eqn'
20
+ require 'stepmod/utils/converters/head'
21
+ require 'stepmod/utils/converters/hr'
22
+ require 'stepmod/utils/converters/ignore'
23
+ require 'stepmod/utils/converters/introduction'
24
+ require 'stepmod/utils/converters/note'
25
+ require 'stepmod/utils/converters/ol'
26
+ require 'stepmod/utils/converters/p'
27
+ require 'stepmod/utils/converters/pass_through'
28
+ require 'stepmod/utils/converters/q'
29
+ require 'stepmod/utils/converters/resource'
30
+ require 'stepmod/utils/converters/schema_diag'
31
+ require 'stepmod/utils/converters/schema'
32
+ require 'stepmod/utils/converters/strong'
33
+ require 'stepmod/utils/converters/sub'
34
+ require 'stepmod/utils/converters/sup'
35
+ require 'stepmod/utils/converters/text'
36
+ require 'stepmod/utils/cleaner'
37
+
38
+ require 'reverse_adoc/converters/figure'
39
+ require 'reverse_adoc/converters/img'
40
+ require 'reverse_adoc/converters/li'
41
+ require 'reverse_adoc/converters/table'
42
+ require 'reverse_adoc/converters/tr'
43
+ require 'reverse_adoc/converters/td'
44
+ require 'reverse_adoc/converters/th'
45
+
46
+ module Stepmod
47
+ module Utils
48
+ class SmrlResourceConverter
49
+ def self.convert(input, options = {})
50
+ root = if input.is_a?(String)
51
+ then Nokogiri::XML(input).root
52
+ elsif input.is_a?(Nokogiri::XML::Document)
53
+ then input.root
54
+ elsif input.is_a?(Nokogiri::XML::Node)
55
+ then input
56
+ end
57
+
58
+ root || (return '')
59
+
60
+ ReverseAdoc.config.with(options) do
61
+ result = ReverseAdoc::Converters.lookup(root.name).convert(root)
62
+ Stepmod::Utils::Cleaner.new.tidy(result)
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'reverse_asciidoctor'
3
+ require 'reverse_adoc'
4
4
  require 'stepmod/utils/converters/clause_ref'
5
5
  require 'stepmod/utils/converters/express_ref'
6
6
  require 'stepmod/utils/converters/module_ref'
@@ -14,23 +14,23 @@ require 'stepmod/utils/converters/stem'
14
14
  require 'stepmod/utils/converters/term'
15
15
  require 'stepmod/utils/converters/synonym'
16
16
 
17
- require 'reverse_asciidoctor/converters/a'
18
- require 'reverse_asciidoctor/converters/blockquote'
19
- require 'reverse_asciidoctor/converters/bypass'
20
- require 'reverse_asciidoctor/converters/br'
21
- require 'reverse_asciidoctor/converters/code'
22
- require 'reverse_asciidoctor/converters/drop'
23
- require 'reverse_asciidoctor/converters/head'
24
- require 'reverse_asciidoctor/converters/hr'
25
- require 'reverse_asciidoctor/converters/ignore'
26
- require 'reverse_asciidoctor/converters/li'
27
- require 'reverse_asciidoctor/converters/p'
28
- require 'reverse_asciidoctor/converters/pass_through'
29
- require 'reverse_asciidoctor/converters/q'
30
- require 'reverse_asciidoctor/converters/strong'
31
- require 'reverse_asciidoctor/converters/sup'
32
- require 'reverse_asciidoctor/converters/sub'
33
- require 'reverse_asciidoctor/converters/text'
17
+ require 'reverse_adoc/converters/a'
18
+ require 'reverse_adoc/converters/blockquote'
19
+ require 'reverse_adoc/converters/bypass'
20
+ require 'reverse_adoc/converters/br'
21
+ require 'reverse_adoc/converters/code'
22
+ require 'reverse_adoc/converters/drop'
23
+ require 'reverse_adoc/converters/head'
24
+ require 'reverse_adoc/converters/hr'
25
+ require 'reverse_adoc/converters/ignore'
26
+ require 'reverse_adoc/converters/li'
27
+ require 'reverse_adoc/converters/p'
28
+ require 'reverse_adoc/converters/pass_through'
29
+ require 'reverse_adoc/converters/q'
30
+ require 'reverse_adoc/converters/strong'
31
+ require 'reverse_adoc/converters/sup'
32
+ require 'reverse_adoc/converters/sub'
33
+ require 'reverse_adoc/converters/text'
34
34
 
35
35
 
36
36
  module Stepmod
@@ -47,9 +47,9 @@ module Stepmod
47
47
 
48
48
  root || (return '')
49
49
 
50
- ReverseAsciidoctor.config.with(options) do
51
- result = ReverseAsciidoctor::Converters.lookup(root.name).convert(root)
52
- ReverseAsciidoctor.cleaner.tidy(result)
50
+ ReverseAdoc.config.with(options) do
51
+ result = ReverseAdoc::Converters.lookup(root.name).convert(root)
52
+ ReverseAdoc.cleaner.tidy(result)
53
53
  end
54
54
  end
55
55
  end
@@ -0,0 +1,54 @@
1
+ require 'json'
2
+ require 'stepmod/utils/smrl_description_converter'
3
+ require 'stepmod/utils/smrl_resource_converter'
4
+
5
+ module Stepmod
6
+ module Utils
7
+ class StepmodFileAnnotator
8
+ attr_reader :express_file, :resource_docs_cache_file, :stepmod_dir
9
+
10
+ # @param express_file [String] path to the exp file needed to annotate
11
+ # @param resource_docs_cache_file [String] output of ./stepmod-build-resource-docs-cache
12
+ def initialize(express_file:, resource_docs_cache_file:, stepmod_dir: nil)
13
+ @express_file = express_file
14
+ @resource_docs_cache_file = resource_docs_cache_file
15
+ @stepmod_dir = stepmod_dir || Dir.pwd
16
+ end
17
+
18
+ def call
19
+ match = File.basename(express_file).match('^(arm|mim|bom)\.exp$')
20
+ descriptions_base = match ? "#{match.captures[0]}_descriptions.xml" : 'descriptions.xml'
21
+ descriptions_file = File.join(File.dirname(express_file), descriptions_base)
22
+ output_express = File.read(express_file)
23
+ resource_docs_cache = JSON.parse(File.read(resource_docs_cache_file))
24
+
25
+ if File.exists?(descriptions_file)
26
+ descriptions = Nokogiri::XML(File.read(descriptions_file)).root
27
+ descriptions.xpath('ext_description').each do |description|
28
+ unless description.text.strip.empty? then
29
+ Dir.chdir(File.dirname(descriptions_file)) do
30
+ wrapper = "<ext_descriptions>#{description.to_s}</ext_descriptions>"
31
+ output_express << "\n" + Stepmod::Utils::SmrlDescriptionConverter.convert(wrapper)
32
+ end
33
+ else
34
+ # remark is empty, fallback to resource_docs_cache
35
+ resource_docs_dir = resource_docs_cache[description['linkend']]
36
+ if resource_docs_dir
37
+ resource_docs_file = File.join(stepmod_dir, 'data/resource_docs', resource_docs_dir, 'resource.xml')
38
+ resource_docs = Nokogiri::XML(File.read(resource_docs_file)).root
39
+ schema = resource_docs.xpath("schema[@name='#{description['linkend']}']")
40
+
41
+ Dir.chdir(File.dirname(descriptions_file)) do
42
+ wrapper = "<resource>#{schema.to_s}</resource>"
43
+ output_express << "\n" + Stepmod::Utils::SmrlResourceConverter.convert(wrapper)
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ output_express
51
+ end
52
+ end
53
+ end
54
+ end
@@ -1,5 +1,5 @@
1
1
  module Stepmod
2
2
  module Utils
3
- VERSION = "0.1.5"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -0,0 +1,190 @@
1
+ = STEPmod CVS to Git import
2
+
3
+ == Purpose
4
+
5
+ The `cvs/` submodule is a CSV import of STEPmod files from the CVS server hosted at Boost Conseil.
6
+
7
+ The goal is to import the CSV-managed files in a way useable via Git, with full history information.
8
+
9
+ This guide is used as reference for the usage of `cvs-fast-import`:
10
+ https://oitofelix.github.io/article-savannah-cvs-to-git-migration/
11
+
12
+
13
+ == Strategy to import
14
+
15
+ Cloning a remote CVS repository while importing is super slow,
16
+ especially for a large repository like STEPmod.
17
+
18
+ We have tested and settled on these steps:
19
+
20
+ . Maintain a local `rsync` copy of the CVS repository.
21
+ . Resolve all names from the CVS repository (CVS only stores UNIX usernames, in Git are names and emails) using `cvs-fast-import`.
22
+ . Run `cvs-fast-import` to import the CVS repository into the `iso-10303-stepmod-cvs` Git repo.
23
+
24
+
25
+ == Creating the `rsync` clone of the CVS repository
26
+
27
+ [source,sh]
28
+ ----
29
+ rsync -avrPz -e ssh ronald@cvs.boost-lab.net:/stepmod/ stepmod-rsync/
30
+ ----
31
+
32
+
33
+ == Install cvs-fast-export
34
+
35
+ `cvs-fast-export` only works on Linux.
36
+ Run it on Ubuntu with the `rsync`'ed CVS directory.
37
+
38
+ Install:
39
+ [source,sh]
40
+ ----
41
+ $ apt-get -y install cvs-fast-export
42
+ ----
43
+
44
+ == Getting all users for email mapping
45
+
46
+ Find all authors in the CVS repository using `cvs-fast-export -a`.
47
+ It is much faster than using the equivalent CVS command to list all authors.
48
+
49
+ [source,sh]
50
+ ----
51
+ $ find stepmod-rsync -type f | cvs-fast-export -a
52
+ ----
53
+
54
+
55
+ == Create fast-import file for Git
56
+
57
+ After all authors are mapped, run `cvs-fast-export` to create
58
+ the import file.
59
+
60
+ [source,sh]
61
+ ----
62
+ $ find stepmod-rsync -type f | cvs-fast-export -A author-map.txt > fast-import-file
63
+ ----
64
+
65
+ == Perform the Git fast-import
66
+
67
+ Once the fast-import file is created, we can perform the Git import.
68
+
69
+ [source,sh]
70
+ ----
71
+ $ cd iso-10303-stepmod-cvs
72
+ $ git fast-import < ../fast-import-file
73
+ ----
74
+
75
+
76
+ == Upload the new Git repo
77
+
78
+ [source,sh]
79
+ ----
80
+ git push --all && git push --tags
81
+ ----
82
+
83
+
84
+ == DEPRECATED steps using `git cvsimport` (do not use, it won't work)
85
+
86
+ === General
87
+
88
+ https://stackoverflow.com/questions/11362676/how-to-import-and-keep-updated-a-cvs-repository-in-git[This StackOverflow post]
89
+ describes steps for using `git cvsimport`.
90
+
91
+ Originally the `git cvsimport` tool was chosen since it is part of
92
+ `git`. However, it utilizes a deprecated/unmaintained tool called
93
+ `cvsps`. The latest `cvsps` is version 3, but only version 2 is
94
+ compatible with `git cvsimport`.
95
+
96
+ In addition, the `cvsps` tool is maintained by the maintainer
97
+ of `cvs-fast-import`, and is no longer updated.
98
+ Eventually `cvs-fast-import` is used instead.
99
+
100
+ WARNING: This command completely fails
101
+ on this repository because it is too large and complex.
102
+
103
+
104
+ === Setup
105
+
106
+ On macOS, run the following commands to setup for running the import. The `git` executable must be installed.
107
+
108
+ Install `cvsps` version 2.
109
+
110
+ NOTE: The steps from the StackOverflow of installing `cvsps` no longer work.
111
+
112
+ [source,sh]
113
+ ----
114
+ $ brew tap Frizlab/Perso
115
+ # ==> Tapping frizlab/perso
116
+ # Cloning into '/usr/local/Homebrew/Library/Taps/frizlab/homebrew-perso'...
117
+ # remote: Enumerating objects: 123, done.
118
+ # remote: Total 123 (delta 0), reused 0 (delta 0), pack-reused 123
119
+ # Receiving objects: 100% (123/123), 19.08 KiB | 91.00 KiB/s, done.
120
+ # Resolving deltas: 100% (43/43), done.
121
+ # Tapped 1 cask and 10 formulae (38 files, 60.5KB).
122
+
123
+ $ brew install cvsps@2
124
+ # ==> Installing cvsps@2 from frizlab/perso
125
+ # Warning: A newer Command Line Tools release is available.
126
+ # Update them from Software Update in System Preferences or
127
+ # https://developer.apple.com/download/more/.
128
+ # ==> Downloading https://deb.debian.org/debian/pool/main/c/cvsps/cvsps_2.1.orig.tar.gz
129
+ ######################################################################## 100.0%
130
+ # ==> make all
131
+ # ==> make install prefix=/usr/local/Cellar/cvsps@2/2.1
132
+ # 🍺 /usr/local/Cellar/cvsps@2/2.1: 7 files, 124.6KB, built in 6 seconds
133
+ ----
134
+
135
+ Verify it is installed:
136
+ [source,sh]
137
+ ----
138
+ $ cvsps -v
139
+ # Can't open CVS/Root
140
+ # cannot determine CVSROOT
141
+ ----
142
+
143
+ ////
144
+ == Checkout the CVS repository
145
+
146
+ First set the `CVSROOT` and `CVS_RSH` variables.
147
+
148
+ [source,sh]
149
+ ----
150
+ export CVSROOT=:ext:ronald@cvs.boost-lab.net:/stepmod
151
+ export CVS_RSH=ssh
152
+ cvs checkout stepmod
153
+ # => stepmod/ is created in $PWD
154
+ ----
155
+ ////
156
+
157
+
158
+ === Run the import
159
+
160
+ Run the import from CVS to Git.
161
+
162
+ Go to the directory that will carry the target Git repository.
163
+
164
+ Run `git cvsimport`.
165
+
166
+ [source,sh]
167
+ ----
168
+ # Importing from remote
169
+ $ export CVSROOT=:ext:ronald@cvs.boost-lab.net:/stepmod
170
+ $ export CVS_RSH=ssh
171
+ $ git cvsimport -C iso-10303-stepmod-cvs -r cvs -k -v -d $CVSROOT stepmod
172
+
173
+ # Importing from local rsync'ed copy
174
+ $ export CVSROOT=$(pwd)/stepmod-rsync
175
+ $ git cvsimport -C iso-10303-stepmod-cvs -r cvs -k -v -d $CVSROOT stepmod
176
+ ----
177
+
178
+ WARNING: TLDR. Technically this should work, but I ran into a `cvsps cannot allocate memory` error with 64GB of RAM, and not even completing the clone after 24 hours. So I gave up and switched to local. And local still takes a long time with tons of error messages. `cvs-fast-import` only takes 5-10 minutes to import.
179
+
180
+
181
+ === Updating the CVS import
182
+
183
+ Run `git cvsimport` to synchronize the Git repo using updated data from CVS.
184
+
185
+ [source,sh]
186
+ ----
187
+ $ git cvsimport
188
+ ----
189
+
190
+
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  spec.add_runtime_dependency "thor", ">= 0.20.3"
33
- spec.add_runtime_dependency "reverse_adoc", "~> 0.2"
33
+ spec.add_runtime_dependency "reverse_adoc", ">= 0.2.9"
34
+ spec.add_runtime_dependency "ptools", '~> 1.3'
34
35
  spec.add_development_dependency "byebug", "~> 11.1"
35
36
  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.1.5
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: 2020-07-05 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -26,18 +26,32 @@ dependencies:
26
26
  version: 0.20.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reverse_adoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.9
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.9
41
+ - !ruby/object:Gem::Dependency
42
+ name: ptools
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '0.2'
47
+ version: '1.3'
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '0.2'
54
+ version: '1.3'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: byebug
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -54,44 +68,92 @@ dependencies:
54
68
  version: '11.1'
55
69
  description: 'Stepmod-utils is a toolkit that works on STEPmod data.
56
70
 
57
- '
71
+ '
58
72
  email:
59
73
  - open.source@ribose.com
60
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
61
80
  - stepmod-extract-terms
81
+ - stepmod-find-express-files
62
82
  extensions: []
63
83
  extra_rdoc_files: []
64
84
  files:
65
- - ".github/workflows/macos.yml"
85
+ - ".github/workflows/rake.yml"
66
86
  - ".github/workflows/release.yml"
67
- - ".github/workflows/ubuntu.yml"
68
- - ".github/workflows/windows.yml"
69
87
  - ".gitignore"
70
88
  - ".rspec"
71
89
  - CODE_OF_CONDUCT.md
72
90
  - Gemfile
91
+ - Makefile
73
92
  - README.adoc
74
93
  - Rakefile
75
94
  - bin/console
76
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
77
101
  - exe/stepmod-extract-terms
102
+ - exe/stepmod-find-express-files
78
103
  - lib/stepmod/utils.rb
79
104
  - lib/stepmod/utils/bibdata.rb
105
+ - lib/stepmod/utils/cleaner.rb
80
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
81
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
82
115
  - lib/stepmod/utils/converters/def.rb
83
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
84
120
  - lib/stepmod/utils/converters/em.rb
121
+ - lib/stepmod/utils/converters/em_express_description.rb
122
+ - lib/stepmod/utils/converters/eqn.rb
85
123
  - lib/stepmod/utils/converters/example.rb
124
+ - lib/stepmod/utils/converters/express_g.rb
86
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
87
134
  - lib/stepmod/utils/converters/module_ref.rb
88
135
  - lib/stepmod/utils/converters/note.rb
89
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
90
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
91
147
  - lib/stepmod/utils/converters/synonym.rb
92
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
93
153
  - lib/stepmod/utils/stepmod_definition_converter.rb
154
+ - lib/stepmod/utils/stepmod_file_annotator.rb
94
155
  - lib/stepmod/utils/version.rb
156
+ - migrating_from_cvs.adoc
95
157
  - resource_example.xml
96
158
  - stepmod-utils.gemspec
97
159
  homepage: https://github.com/metanorma/stepmod-utils