anystyle-cli 1.4.5 → 1.5.0
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/README.md +2 -0
- data/bin/anystyle +2 -1
- data/lib/anystyle/cli/commands/base.rb +2 -0
- data/lib/anystyle/cli/version.rb +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f4863a80a82696fb2b5486f8817c7c3023f4e6ca8990cf2bc9003474e1d0b9
|
4
|
+
data.tar.gz: e3d9e8aea5840be7925cda8a9a136c403ca4c93434dac46ac3a39fe35c1b8a79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 650edf8885e683fd1f47424ba9879676a96fd738332b13220a215a8edee75e72760aad9e529f35a57599931df6356fcd7df930bd2dae430f52143d78576274b9
|
7
|
+
data.tar.gz: 282a4604ab2f11d3e7738641ec9523863a3328c3ce008b91b9a70d0983641ef12258ccc97f9e9b172a06d8e2f3fa7b24fd89305d111234efd3d857c9bd50c4ea
|
data/README.md
CHANGED
@@ -53,6 +53,7 @@ anystyle help find
|
|
53
53
|
AnyStyle `find' supports the following formats:
|
54
54
|
bib BibTeX (references only);
|
55
55
|
csl CSL/JSON (references only);
|
56
|
+
ris RIS (references only);
|
56
57
|
json AnyStyle JSON (references only);
|
57
58
|
ref One reference per line, suitable for parser input;
|
58
59
|
txt Plain text document;
|
@@ -117,6 +118,7 @@ anystyle help parse
|
|
117
118
|
AnyStyle `parse' supports the following formats:
|
118
119
|
bib BibTeX (normalized);
|
119
120
|
csl CSL/JSON (normalized);
|
121
|
+
ris ris (normalized);
|
120
122
|
json AnyStyle JSON (normalized);
|
121
123
|
ref One reference per line, suitable for parser input;
|
122
124
|
txt Same as `ref';
|
data/bin/anystyle
CHANGED
@@ -57,7 +57,7 @@ flag ['f', 'format'],
|
|
57
57
|
default_value: ['json'],
|
58
58
|
arg_name: 'name',
|
59
59
|
type: Array,
|
60
|
-
must_match: /(bib|csl|json|ref|ttx|txt|xml)(,(bib|csl|json|ref|ttx|txt|xml))*/,
|
60
|
+
must_match: /(bib|csl|ris|json|ref|ttx|txt|xml)(,(bib|csl|ris|json|ref|ttx|txt|xml))*/,
|
61
61
|
desc: 'Set the output format'
|
62
62
|
|
63
63
|
|
@@ -101,6 +101,7 @@ long_desc %{
|
|
101
101
|
AnyStyle `find' supports the following formats:
|
102
102
|
bib BibTeX (references only);
|
103
103
|
csl CSL/JSON (references only);
|
104
|
+
ris RIS (references only);
|
104
105
|
json AnyStyle JSON (references only);
|
105
106
|
ref One reference per line, suitable for parser input;
|
106
107
|
txt Plain text document;
|
@@ -49,6 +49,8 @@ module AnyStyle
|
|
49
49
|
AnyStyle.parser.format_bibtex(dataset).to_s
|
50
50
|
when 'csl'
|
51
51
|
JSON.pretty_generate AnyStyle.parser.format_csl(dataset)
|
52
|
+
when 'ris'
|
53
|
+
AnyStyle.parser.format_ris(dataset).to_s
|
52
54
|
when 'json'
|
53
55
|
JSON.pretty_generate AnyStyle.parser.format_hash(dataset)
|
54
56
|
when 'ref', 'txt'
|
data/lib/anystyle/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anystyle-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-05-11 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: anystyle
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
18
|
+
version: '1.6'
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
25
|
+
version: '1.6'
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: gli
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,7 +59,6 @@ homepage: http://anystyle.io
|
|
60
59
|
licenses:
|
61
60
|
- BSD-2-Clause
|
62
61
|
metadata: {}
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.6
|
80
77
|
specification_version: 4
|
81
78
|
summary: AnyStyle CLI
|
82
79
|
test_files: []
|