relaton-cli 1.15.3 → 1.15.4
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/docs/README.adoc +1 -1
- data/lib/relaton/cli/subcommand_db.rb +16 -15
- data/lib/relaton/cli/version.rb +1 -1
- data/relaton-cli.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 244e033b7cdff373ffcc0a1532253f5449a923b5396dd56c69642c0d5d5b7576
|
4
|
+
data.tar.gz: 3283bfe1d9b4d41485ff1d920174ce7b7ffb7bc948084c600374320cd805b766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e26d7cf55198f3337eb1805b74b57889da7378a932396cfe1fd98a1285c2a437973eda1abb20edeb4783fd55b3076ac4b546a2358e687c6aa4cefd4392b73fd
|
7
|
+
data.tar.gz: 89b3aa3f8469b98b96bd5e541e3aa123d65e6491e9a3df925dab4093b1d11c93ead3ef4f8f7d91452f17dfb0318314e25ec22e9d9cd45515ad9a72c2e8cc7b0c
|
data/docs/README.adoc
CHANGED
@@ -4,8 +4,8 @@ module Relaton
|
|
4
4
|
include Relaton::Cli
|
5
5
|
class_option :verbose, aliases: :v, type: :boolean, desc: "Output warnings"
|
6
6
|
|
7
|
-
desc "create DIR", "Create new cache DB. Default DIR is "\
|
8
|
-
|
7
|
+
desc "create DIR", "Create new cache DB. Default DIR is " \
|
8
|
+
"/home/user/.relaon/cache/"
|
9
9
|
|
10
10
|
def create(dir = nil)
|
11
11
|
db = Relaton.db (dir && File.expand_path(dir))
|
@@ -27,18 +27,19 @@ module Relaton
|
|
27
27
|
desc "clear", "Clear cache DB"
|
28
28
|
|
29
29
|
def clear
|
30
|
-
Relaton.db
|
30
|
+
db = Relaton.db
|
31
|
+
db.clear
|
31
32
|
warn "Cache DB is cleared"
|
32
33
|
end
|
33
34
|
|
34
|
-
desc "fetch CODE", "Fetch Relaton XML for Standard identifier CODE
|
35
|
-
|
36
|
-
option :type, aliases: :t, desc: "Type of standard to "\
|
37
|
-
|
38
|
-
option :format, aliases: :f, desc: "Output format (xml, yaml, bibtex). "\
|
39
|
-
|
40
|
-
option :year, aliases: :y, type: :numeric, desc: "Year the standard
|
41
|
-
|
35
|
+
desc "fetch CODE", "Fetch Relaton XML for Standard identifier CODE " \
|
36
|
+
"from cache DB"
|
37
|
+
option :type, aliases: :t, desc: "Type of standard to " \
|
38
|
+
"get bibliographic entry for"
|
39
|
+
option :format, aliases: :f, desc: "Output format (xml, yaml, bibtex). " \
|
40
|
+
"Default xml."
|
41
|
+
option :year, aliases: :y, type: :numeric, desc: "Year the standard " \
|
42
|
+
"was published"
|
42
43
|
|
43
44
|
def fetch(code)
|
44
45
|
io = IO.new($stdout.fcntl(::Fcntl::F_DUPFD), mode: "w:UTF-8")
|
@@ -46,12 +47,12 @@ module Relaton
|
|
46
47
|
io.puts(fetch_document(code, opts) || supported_type_message)
|
47
48
|
end
|
48
49
|
|
49
|
-
desc "fetch_all TEXT", "Query for all documents in a cache DB for a "\
|
50
|
-
|
50
|
+
desc "fetch_all TEXT", "Query for all documents in a cache DB for a " \
|
51
|
+
"certain string"
|
51
52
|
option :edition, aliases: :e, desc: "Filter entries by edition"
|
52
53
|
option :year, aliases: :y, desc: "Filter entries by year"
|
53
|
-
option :format, aliases: :f, desc: "Output format (xml, yaml, bibtex). "\
|
54
|
-
|
54
|
+
option :format, aliases: :f, desc: "Output format (xml, yaml, bibtex). " \
|
55
|
+
"Default xml."
|
55
56
|
|
56
57
|
def fetch_all(text = nil) # rubocop:disable Metrics/AbcSize
|
57
58
|
io = IO.new($stdout.fcntl(::Fcntl::F_DUPFD), mode: "w:UTF-8")
|
data/lib/relaton/cli/version.rb
CHANGED
data/relaton-cli.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "rspec-core", "~> 3.4"
|
30
30
|
|
31
31
|
spec.add_runtime_dependency "liquid", "~> 5"
|
32
|
-
spec.add_runtime_dependency "relaton", "~> 1.15.
|
32
|
+
spec.add_runtime_dependency "relaton", "~> 1.15.2"
|
33
33
|
spec.add_runtime_dependency "thor"
|
34
34
|
spec.add_runtime_dependency "thor-hollaback"
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.4
|
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: 2023-05-
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.15.
|
103
|
+
version: 1.15.2
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.15.
|
110
|
+
version: 1.15.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: thor
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,7 +186,7 @@ homepage: https://github.com/metanorma/relaton-cli
|
|
186
186
|
licenses:
|
187
187
|
- BSD-2-Clause
|
188
188
|
metadata: {}
|
189
|
-
post_install_message:
|
189
|
+
post_install_message:
|
190
190
|
rdoc_options: []
|
191
191
|
require_paths:
|
192
192
|
- lib
|
@@ -201,8 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubygems_version: 3.
|
205
|
-
signing_key:
|
204
|
+
rubygems_version: 3.4.9
|
205
|
+
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: Relaton Command-line Interface
|
208
208
|
test_files: []
|