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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd7dda08cc3511c8d5a25d912e1fc81872d2e8879c4065768e3032b1b7068296
4
- data.tar.gz: f394c802254fd8443431452cd3eec62730d9def7e7628d8812f227daa7b689df
3
+ metadata.gz: '09e4d599185173c2dc2b664b26f9591511b0184ec1190e3a89ad9b5cde95b106'
4
+ data.tar.gz: 4bd7e2f8836a9286bd89aa2d41f3d4c79ec7886599cdfb0b11ac7921dea1da59
5
5
  SHA512:
6
- metadata.gz: ece9c20e6fa654abc670182b432cb8dcdceddb58e1ccf9856d47beb77bc732af90c3395e2d704ea45c8c85dc15f967c68a5232b66ea3f04129d39fb9f6489cf7
7
- data.tar.gz: 0bbb3bee01bef5443ffb39f5e1cc383228ad0d44c6745a7ec207a866abeb303f82e2638b9c04a1a3b5c073d8c903ef0da3f62f28ec0238c8b5b8b9e5fb195867
6
+ metadata.gz: 3afb45f12dcd6956168d73d904a1115a03defb34f1d24c902b6032c8d48760a71b6bdbd487ea77d38f2faba7eee5ebc55315359d17c608f65355fdb66c9ffb70
7
+ data.tar.gz: 67b772b81e21ef50811f04ec7da137b19fe4569fd77f84f149036fc84b03f3d43de68f1bfc7292fae9fce9c07ef020a75b9b0a685c0b0642fc33b03216ad1c54
@@ -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 is a wrapper around the Java https://github.com/metanorma/stepmod-utils[stepmod-utils]
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,ruby]
26
+ [source,sh]
31
27
  ----
32
- require 'stepmod-utils'
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
- == Updating the gem
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
- Then release the gem with `rake release`.
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
 
@@ -1,5 +1,5 @@
1
1
  module Stepmod
2
2
  module Utils
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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
- - term_extractor
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/term_extractor
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