anystyle-cli 1.4.1 → 1.4.2
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: 907050eee317aa04fbae0c0629cf11178d1343aef01ad00f8905c58363876e58
|
4
|
+
data.tar.gz: 179aaf536f82fecdb34136497c4a8130a45c8b067a001662b4a5a656f0985db3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db0ece4fb23aac7d20236732f150ec494f3279c61e0458b6e04607b2ef6a91e4a04fc9373f846cbfababf30429c43d0178bce31fc21ef95e92b8607e22448578
|
7
|
+
data.tar.gz: 9c76c7409946e0839fa74b47793f3912131708e4d2650b0c096c0ff96560dafaa838811319993d815895547d277315a40aff5c19291d1434d49c9b91ab75b765
|
@@ -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(input))
|
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.2
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anystyle
|