anystyle-cli 1.3.0 → 1.3.1

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: f536a780203764ecfc9b7a629cc6360ec97a078666a152022c403c54fe3d3fbb
4
- data.tar.gz: 9f1d1ce4e02fad52587e83bc96335348c2b89c44a862738022c7ddb45b11c81a
3
+ metadata.gz: 25fa9822dfe3ab9862a84f5c31ae70df159643a3ecc40c4958ef0ed77b17da54
4
+ data.tar.gz: cf7587eec67a7372df802f4a7ee63e4ef1bc915070137c56d424cb2fcb1e813d
5
5
  SHA512:
6
- metadata.gz: d581d85bd0c9e0a40b5c1a9b70b5839695579b2acf4258d2c7f6d4e1edb1935df52e576430427e5b179b7a46dd8d8ea79041795dbd8d6f475556a84d70e50337
7
- data.tar.gz: b8f384e6dd68cff20620736501b76e0bbd600236dc7b9e8f0d8a9347b0c119823975a2553a7172f59d0afd5ab2ddb4ae291003dca40de741e1c03043774e06a7
6
+ metadata.gz: f1a0b7ec3479c88d429fc1b58855473fefc0cdfac9171a72c2124e3fb2e75b3503caf9963d072c74da5a55673af69ca1db9cc751dcf1ece6ae58d997a5837700
7
+ data.tar.gz: c8c410d03fe9dc43a1667d77f0931fd96d4f004ab9a1d45b21bf4eacad68054f3a301ea0241a42a42affd77dda7fbef24f042e1d3a4e4dc702da4b261a306dd5
@@ -21,7 +21,7 @@ module AnyStyle
21
21
  AnyStyle.parser.train path.to_s.untaint
22
22
  AnyStyle.parser.model
23
23
  when File.directory?(path)
24
- AnyStyle.finder.train path.to_s.untaint
24
+ AnyStyle.finder.train Dir[File.join(path, '*.ttx')].map(&:untaint)
25
25
  AnyStyle.finder.model
26
26
  else
27
27
  raise ArgumentError, "cannot train input: #{path}"
@@ -1,5 +1,5 @@
1
1
  module AnyStyle
2
2
  module CLI
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '1.3.1'.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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-24 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anystyle