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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33db7851ea26cd9a9358f3dcec31e8b91826804ca248f4d20867b57c54ce57d1
4
- data.tar.gz: bbaeb4319bb6491c25d2b4859622d6c7d02a01a7706947185cabee99e05296c6
3
+ metadata.gz: ab3bfdd549d2eff1671cd2ed4ae9178dd95b1c333990ed5f157174f56b2ae099
4
+ data.tar.gz: 679bcd43cea4ab135ef1395e85bd58d78e7948d347e3383cf96354da366340cd
5
5
  SHA512:
6
- metadata.gz: 3f29d5773ba7fc300caf2d2b00c1d1e89e16198bac1a48e0eb24ba30571c3f43870d30624dac2ccb066f10e9200a4261ba116c74b516aa59a9b6f3f7f23e7237
7
- data.tar.gz: 0a402a3e49ddd8e74af5f5e8b8f7a903d9640db34cbb443c04fbff91f16b86a8f7b8f560590b6b936508b8526fcd10614be9de60a84ab15f491802e4aed2c6e2
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(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.3'.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.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-16 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anystyle