mn2sts 1.2.0 → 1.5.0

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: fda5bec5cc90aeea99c4d5169fca93291add45bebd703abc8d94473f72ca3335
4
- data.tar.gz: bc69ab1b9b6f265f6d0288b282137bde9aae0f0ca437503a680bba3f7e32f376
3
+ metadata.gz: a731737162d2cd2a0f62e7d37f63109242a6d006d0b45cd338884bcb76ada723
4
+ data.tar.gz: 740e73cca5578e9fa070bee1c552bac45a023b35b8edfbbbec02196b6a49082f
5
5
  SHA512:
6
- metadata.gz: baf1fc414a34895a7b255b0469b3bd1135485e5f865bf6bb5c5db275065e54345ef3418f92caaa04e0cb53de9aa450ac6ac7116b7644577a9752ebe764e570df
7
- data.tar.gz: 633c5a4a135faa648463ebbcecb1c2b754b9700a8d546f0c13dcfb0693e136658ee4b4e750eb3a302fa5eabc911275362a10dd26952eb9dcd7f3f1e74cbd021e
6
+ metadata.gz: fe2c9acc24bc9f19aac580dfc4ebdb7ae48c48de8ac100005121aa88545d38363a558d7955107954bea300cb550db15bcca8d7bf7c7ec206354e8852fa219f8a
7
+ data.tar.gz: 9f0835c4724f382cb04fddd730ee813ceda29fc9981fb8d944c02211e00a59ce4d0fa0e3bf55d1993914143eb2e61922af1d749045ab800399027e874beee48f
Binary file
@@ -16,7 +16,7 @@ module Mn2sts
16
16
  message.strip
17
17
  end
18
18
 
19
- def self.convert(xml_path_in, xml_path_out)
19
+ def self.convert(xml_path_in, xml_path_out, opts = {})
20
20
  return if xml_path_in.nil? || xml_path_out.nil?
21
21
 
22
22
  puts MN2STS_JAR_PATH
@@ -25,6 +25,8 @@ module Mn2sts
25
25
  '--xml-file-out', xml_path_out
26
26
  ].join(' ')
27
27
 
28
+ cmd += " --output-format iso" if opts[:iso]
29
+
28
30
  puts cmd
29
31
  _, error_str, status = Open3.capture3(cmd)
30
32
 
@@ -1,4 +1,4 @@
1
1
  module Mn2sts
2
- MN2STS_JAR_VERSION = '1.2'
2
+ MN2STS_JAR_VERSION = '1.5'
3
3
  VERSION = "#{MN2STS_JAR_VERSION}.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mn2sts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.5.0
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-06-08 00:00:00.000000000 Z
11
+ date: 2020-08-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  mn2sts converts Metanorma XML into NISO STS XML.
@@ -41,7 +41,7 @@ homepage: https://github.com/metanorma/mn2sts-ruby
41
41
  licenses:
42
42
  - BSD-2-Clause
43
43
  metadata: {}
44
- post_install_message:
44
+ post_install_message:
45
45
  rdoc_options: []
46
46
  require_paths:
47
47
  - lib
@@ -56,9 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubyforge_project:
60
- rubygems_version: 2.7.6
61
- signing_key:
59
+ rubygems_version: 3.0.3
60
+ signing_key:
62
61
  specification_version: 4
63
62
  summary: mn2sts converts Metanorma XML into NISO STS XML.
64
63
  test_files: []