fde-file_crawler 0.5.1 → 0.6.0

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: 33d2db03ce92e0e9d3fd21540b428a9113bb695bc65845d9af00b93dd890a392
4
- data.tar.gz: f2d29ce92b5af4d775f2f5feecd0f4c1af7f0f283748db15f65a68e6e62600ae
3
+ metadata.gz: cd0c7f7121d3d9217d9ac6bf485371763ffd97ae612986b51e22679fb25219d3
4
+ data.tar.gz: 5375f8c662f0973300a280bfc1f2ffb920962c869e7906aee0f3362987f068cf
5
5
  SHA512:
6
- metadata.gz: 54332024d5cdea99781e3f7466905d0aaf6a5bdd4d21f08a5ffabdd186a6eb9ef930b4545a7e4df39ae9d0b226e2f736b7fb4e679723d60d376266a88ca06500
7
- data.tar.gz: 403138776d16f4b67be131b737b518d60e40856fefa6279b0f805d36e78aff492915b0fb4b457077ba04f026732fd038614f3a7f70cd70920a9649fde4c39188
6
+ metadata.gz: 8d9a62636aa96e4d2c49696fde9f81486e628cd37998a776e81107a969a387b2d3ab4eb62586d4fe0f6b003cfb01a41e6ba52d4d2ed63460ad8a537f0ee40767
7
+ data.tar.gz: fc64e664313ad375cd29df62707332d5658a8bfdab3ab3bd64387fe84945fe287524a1473ddfeac4d31da6a203980d78e341e26f811c9932b3e47de3d217b6f8
@@ -18,12 +18,9 @@ module FDE
18
18
  yield self.config
19
19
  end
20
20
 
21
- # TODO: remove conditional
22
- def self.watch(query = nil, &block)
23
- unless query.nil?
24
- yield self.crawl(query)
25
- else
26
- yield self.crawl
21
+ def self.watch(query = /.*\.*/i, &block)
22
+ self.crawl(query).each do |file|
23
+ yield file
27
24
  end
28
25
  end
29
26
 
@@ -1,5 +1,5 @@
1
1
  module FDE
2
2
  module FileCrawler
3
- VERSION = "0.5.1"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fde-file_crawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Langenegger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,7 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.0.3
137
+ rubyforge_project:
138
+ rubygems_version: 2.7.6
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: A simple file crawler for the fashion data exchange