anystyle-cli 1.4.1 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anystyle/cli/commands/base.rb +5 -1
- data/lib/anystyle/cli/commands/parse.rb +1 -1
- data/lib/anystyle/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab3bfdd549d2eff1671cd2ed4ae9178dd95b1c333990ed5f157174f56b2ae099
|
4
|
+
data.tar.gz: 679bcd43cea4ab135ef1395e85bd58d78e7948d347e3383cf96354da366340cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 125699e2b446f80742d9be9f05cee1357eac3a39504123ef575195761645e742962c5a20284d7801dc37da352c098eb88e3b5b5e646b012e020566e6bfaf6811
|
7
|
+
data.tar.gz: 5fd805fe31f0b053625633d0f7fd08d15777d83df674ea3873750ff19548a1a17f673024b235fccfe1a9ed2bfe2d7ead9417c165fbf09caf2d2e22356bfa6f0d
|
@@ -35,8 +35,12 @@ module AnyStyle
|
|
35
35
|
crop: opts[:crop].nil? ? nil : opts[:crop].map(&:to_i))
|
36
36
|
end
|
37
37
|
|
38
|
+
def parse_file(file)
|
39
|
+
parse(Wapiti::Dataset.open(file))
|
40
|
+
end
|
41
|
+
|
38
42
|
def parse(input)
|
39
|
-
AnyStyle.parse(
|
43
|
+
AnyStyle.parse(input, format: :wapiti)
|
40
44
|
end
|
41
45
|
|
42
46
|
def format(dataset, fmt)
|
@@ -6,7 +6,7 @@ module AnyStyle
|
|
6
6
|
set_output_folder args[1]
|
7
7
|
walk args[0] do |path, base_path|
|
8
8
|
say "Parsing #{path.relative_path_from(base_path)} ..."
|
9
|
-
dataset =
|
9
|
+
dataset = parse_file(path.to_s)
|
10
10
|
say "#{dataset.length} references found."
|
11
11
|
each_format do |fmt|
|
12
12
|
res = format(dataset, fmt)
|
data/lib/anystyle/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anystyle-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anystyle
|