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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33db7851ea26cd9a9358f3dcec31e8b91826804ca248f4d20867b57c54ce57d1
4
- data.tar.gz: bbaeb4319bb6491c25d2b4859622d6c7d02a01a7706947185cabee99e05296c6
3
+ metadata.gz: 907050eee317aa04fbae0c0629cf11178d1343aef01ad00f8905c58363876e58
4
+ data.tar.gz: 179aaf536f82fecdb34136497c4a8130a45c8b067a001662b4a5a656f0985db3
5
5
  SHA512:
6
- metadata.gz: 3f29d5773ba7fc300caf2d2b00c1d1e89e16198bac1a48e0eb24ba30571c3f43870d30624dac2ccb066f10e9200a4261ba116c74b516aa59a9b6f3f7f23e7237
7
- data.tar.gz: 0a402a3e49ddd8e74af5f5e8b8f7a903d9640db34cbb443c04fbff91f16b86a8f7b8f560590b6b936508b8526fcd10614be9de60a84ab15f491802e4aed2c6e2
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(Wapiti::Dataset.open(input), format: :wapiti)
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 = parse(path.to_s)
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)
@@ -1,5 +1,5 @@
1
1
  module AnyStyle
2
2
  module CLI
3
- VERSION = '1.4.1'.freeze
3
+ VERSION = '1.4.2'.freeze
4
4
  end
5
5
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anystyle