relaton-cli 3.0.0.pre.alpha.10 → 3.0.0.pre.alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/relaton/cli/command.rb +2 -2
- data/lib/relaton/cli/xml_to_html_renderer.rb +0 -6
- data/relaton-cli.gemspec +1 -1
- data/templates/_index.liquid +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f688415f145b685b898e9c478316260f8a7cce363331017cdbd0bf84b848feee
|
|
4
|
+
data.tar.gz: 4c0c8e6008aaf7000c393d9d3cd180a3a4c275e37db40992318849aa5b893812
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '019a0b3c4b6945dce64ace6797f0f006f8a3a73e4a0790537ee95786479d492e9c617ec14b3bbab59bdd5f7b9bfa967ca94ef837c2baa5bba668fbf7701f0894'
|
|
7
|
+
data.tar.gz: 682ac34930c19c2fc7250084afd369e0242b48346301cf8b0d83450794e52fda8608e73e8461b52ca91dd68ba7965f00f774e6eb27ad82abcb48679cb87fc903
|
data/lib/relaton/cli/command.rb
CHANGED
|
@@ -58,8 +58,8 @@ module Relaton
|
|
|
58
58
|
io.puts(fetch_document(code, options) || supported_type_message)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
desc "
|
|
62
|
-
"
|
|
61
|
+
desc "Metanorma-XML-File / Directory Relaton-XML-Directory",
|
|
62
|
+
"Export Relaton XML from a Metanorma XML file / directory"
|
|
63
63
|
option :extension, aliases: :x, default: "rxl", desc: "File extension of Relaton XML files, " \
|
|
64
64
|
"defaults to 'rxl'"
|
|
65
65
|
|
|
@@ -46,17 +46,11 @@ module Relaton::Cli
|
|
|
46
46
|
# @param source [String] Relaton XML
|
|
47
47
|
def build_liquid_document(source)
|
|
48
48
|
bibcollection = build_bibcollection(source)
|
|
49
|
-
begin
|
|
50
|
-
mnv = `metanorma -v`
|
|
51
|
-
rescue Errno::ENOENT
|
|
52
|
-
mnv = ""
|
|
53
|
-
end
|
|
54
49
|
hash_to_liquid(
|
|
55
50
|
depth: 2,
|
|
56
51
|
css: stylesheet,
|
|
57
52
|
title: bibcollection.title,
|
|
58
53
|
date: DateTime.now.to_s,
|
|
59
|
-
metanorma_v: mnv.lines.first&.strip,
|
|
60
54
|
author: bibcollection.author,
|
|
61
55
|
documents: document_items(bibcollection)
|
|
62
56
|
)
|
data/relaton-cli.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
|
|
15
15
|
spec.summary = "Relaton Command-line Interface"
|
|
16
16
|
spec.description = "Relaton Command-line Interface"
|
|
17
|
-
spec.homepage = "https://github.com/
|
|
17
|
+
spec.homepage = "https://github.com/relaton/relaton"
|
|
18
18
|
spec.license = "BSD-2-Clause"
|
|
19
19
|
|
|
20
20
|
# Ship lib/, exe/, templates/ and the COMPILED frontend, but not the frontend
|
data/templates/_index.liquid
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<div id="topbar-inner">
|
|
20
20
|
<div id="title-bar">
|
|
21
21
|
<div class="doc-access">
|
|
22
|
-
Generated: {{ date }}
|
|
22
|
+
Generated: {{ date }}
|
|
23
23
|
</div>
|
|
24
24
|
<span>{{ author }}</span>
|
|
25
25
|
</div>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<footer>
|
|
41
41
|
<div class="copyright">
|
|
42
42
|
<div class="doc-access">
|
|
43
|
-
Generated: {{ date }}
|
|
43
|
+
Generated: {{ date }}
|
|
44
44
|
</div>
|
|
45
45
|
<p class="year">© {{ author }}</p>
|
|
46
46
|
<p class="message">All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission.</p>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.0.pre.alpha.
|
|
4
|
+
version: 3.0.0.pre.alpha.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 3.0.0.pre.alpha.
|
|
47
|
+
version: 3.0.0.pre.alpha.11
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - '='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 3.0.0.pre.alpha.
|
|
54
|
+
version: 3.0.0.pre.alpha.11
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: thor
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -132,7 +132,7 @@ files:
|
|
|
132
132
|
- templates/_index.liquid
|
|
133
133
|
- templates/index-style.css
|
|
134
134
|
- templates/index/page.liquid
|
|
135
|
-
homepage: https://github.com/
|
|
135
|
+
homepage: https://github.com/relaton/relaton
|
|
136
136
|
licenses:
|
|
137
137
|
- BSD-2-Clause
|
|
138
138
|
metadata: {}
|