relaton-cli 1.15.3 → 1.15.4

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: ee715fcdbc10e796d236363c05c45f3d0a50f1a64f542274a25e8abf8909b996
4
- data.tar.gz: 23e164c5e9907b0d1a2fe917e4a65b1e7f0d2740e9caaaf0acb5804692cecddc
3
+ metadata.gz: 244e033b7cdff373ffcc0a1532253f5449a923b5396dd56c69642c0d5d5b7576
4
+ data.tar.gz: 3283bfe1d9b4d41485ff1d920174ce7b7ffb7bc948084c600374320cd805b766
5
5
  SHA512:
6
- metadata.gz: 89f6d0068c10ef1983ce9ab07c53fb389396b2ea37a9c47953d336c07cf3feb3d193a553658055636e740b6b742af3e384fe97cec0dec72c77e88069a87aa6b8
7
- data.tar.gz: a4f5ba155868d820b9ee3608c0d2eb746972c33857a4a1c20955cd6bdcfcea2fc63687949a0c5735ce7998ff9ca1a6760e3add59ac62436c25fa70dbc99744e8
6
+ metadata.gz: 7e26d7cf55198f3337eb1805b74b57889da7378a932396cfe1fd98a1285c2a437973eda1abb20edeb4783fd55b3076ac4b546a2358e687c6aa4cefd4392b73fd
7
+ data.tar.gz: 89b3aa3f8469b98b96bd5e541e3aa123d65e6491e9a3df925dab4093b1d11c93ead3ef4f8f7d91452f17dfb0318314e25ec22e9d9cd45515ad9a72c2e8cc7b0c
data/docs/README.adoc CHANGED
@@ -258,7 +258,7 @@ Convert a Relaton XML document into YAML, AsciiBib, or BibTex format. Allowed -f
258
258
  === relaton version
259
259
  ----
260
260
  $ relaton version
261
- CLI => 1.15.2
261
+ CLI => 1.15.3
262
262
  relaton => 1.15.1
263
263
  relaton-bib => 1.14.11
264
264
  relaton-iso-bib => 1.14.0
@@ -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
- "/home/user/.relaon/cache/"
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.clear
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 from "\
35
- "cache DB"
36
- option :type, aliases: :t, desc: "Type of standard to "\
37
- "get bibliographic entry for"
38
- option :format, aliases: :f, desc: "Output format (xml, yaml, bibtex). "\
39
- "Default xml."
40
- option :year, aliases: :y, type: :numeric, desc: "Year the standard was "\
41
- "published"
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
- "certain string"
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
- "Default xml."
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")
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Cli
3
- VERSION = "1.15.3".freeze
3
+ VERSION = "1.15.4".freeze
4
4
  end
5
5
  end
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.1"
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.3
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-06 00:00:00.000000000 Z
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.1
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.1
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.3.26
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: []