stepmod-utils 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +6 -30
- data/exe/{term_extractor → stepmod-extract-terms} +0 -0
- data/lib/stepmod/utils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09e4d599185173c2dc2b664b26f9591511b0184ec1190e3a89ad9b5cde95b106'
|
4
|
+
data.tar.gz: 4bd7e2f8836a9286bd89aa2d41f3d4c79ec7886599cdfb0b11ac7921dea1da59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3afb45f12dcd6956168d73d904a1115a03defb34f1d24c902b6032c8d48760a71b6bdbd487ea77d38f2faba7eee5ebc55315359d17c608f65355fdb66c9ffb70
|
7
|
+
data.tar.gz: 67b772b81e21ef50811f04ec7da137b19fe4569fd77f84f149036fc84b03f3d43de68f1bfc7292fae9fce9c07ef020a75b9b0a685c0b0642fc33b03216ad1c54
|
data/README.adoc
CHANGED
@@ -10,11 +10,7 @@ image:https://img.shields.io/github/commits-since/metanorma/stepmod-utils/latest
|
|
10
10
|
|
11
11
|
== Purpose
|
12
12
|
|
13
|
-
The stepmod-utils Ruby gem
|
14
|
-
which converts NISO STS and ISOSTS into Metanorma XML and AsciiDoc files.
|
15
|
-
|
16
|
-
This gem is used to provide stepmod-utils.jar with mirrored version numbers, to allow
|
17
|
-
Ruby code to easily refer to the desired stepmod-utils version as dependencies.
|
13
|
+
The stepmod-utils Ruby gem provides a number of tools to work with the STEPmod repository/
|
18
14
|
|
19
15
|
== Installation
|
20
16
|
|
@@ -27,34 +23,14 @@ Or include it in your gemspec.
|
|
27
23
|
|
28
24
|
== Usage
|
29
25
|
|
30
|
-
[source,
|
26
|
+
[source,sh]
|
31
27
|
----
|
32
|
-
|
33
|
-
Sts2mn.convert(input: 'test/sts.xml')
|
34
|
-
# => generates 'test/sts.adoc', in Metanorma AsciiDoc
|
35
|
-
|
36
|
-
Sts2mn.convert(input: 'test/sts.xml', output: 'another/path/mn.xml', format: 'xml')
|
37
|
-
# => generates 'another/path/mn.xml' in Metanorma XML
|
38
|
-
|
39
|
-
Sts2mn.convert(input: 'test/sts.xml', output: 'another/path/mn.adoc', format: 'adoc')
|
40
|
-
# => generates 'another/path/mn.adoc' in Metanorma AsciiDoc
|
41
|
-
|
42
|
-
Sts2mn.split_bibdata('test/sts.xml')
|
43
|
-
# => generates 'test/sts.rxl' (Relaton XML) and 'test/mn.adoc' (Metanorma AsciiDoc)
|
28
|
+
stepmod-extract-terms {stepmod-data-directory}
|
44
29
|
----
|
45
30
|
|
46
|
-
|
47
|
-
|
48
|
-
Update `lib/stepmod-utils/version.rb` to the desired version of https://github.com/metanorma/stepmod-utils[stepmod-utils].
|
49
|
-
|
50
|
-
Run `rake` to download the `bin/stepmod-utils.jar` file:
|
51
|
-
|
52
|
-
[source,ruby]
|
53
|
-
----
|
54
|
-
rm -f bin/stepmod-utils.jar
|
55
|
-
rake bin/stepmod-utils.jar
|
56
|
-
----
|
31
|
+
Then these files will be created:
|
57
32
|
|
58
|
-
|
33
|
+
* `031-generated-terms.adoc` all terms extracted
|
34
|
+
* `991-generated-bibliography.adoc` all bibliographic sources where the terms come from
|
59
35
|
|
60
36
|
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stepmod-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -58,7 +58,7 @@ description: 'Stepmod-utils is a toolkit that works on STEPmod data.
|
|
58
58
|
email:
|
59
59
|
- open.source@ribose.com
|
60
60
|
executables:
|
61
|
-
-
|
61
|
+
- stepmod-extract-terms
|
62
62
|
extensions: []
|
63
63
|
extra_rdoc_files: []
|
64
64
|
files:
|
@@ -74,7 +74,7 @@ files:
|
|
74
74
|
- Rakefile
|
75
75
|
- bin/console
|
76
76
|
- bin/setup
|
77
|
-
- exe/
|
77
|
+
- exe/stepmod-extract-terms
|
78
78
|
- lib/stepmod/utils.rb
|
79
79
|
- lib/stepmod/utils/bibdata.rb
|
80
80
|
- lib/stepmod/utils/concept.rb
|