data_collector 0.21.0 → 0.22.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: 919f205875cd4bdd02d951b50fba36833743c96eb887d8b183bdb4fabcff62d2
4
- data.tar.gz: 6feefeb606971a467dbf1cd47d39a3e76b5e23563fbd81c7be37f07f9c2f4bc2
3
+ metadata.gz: e8333bf619cbafbac678351542ff0680abafd8d02fbe79ef286a1998eb85d3e4
4
+ data.tar.gz: bac65514f7f0314004feec335b20bc512e09ec1c62526321eefd61e7b98beece
5
5
  SHA512:
6
- metadata.gz: d51898627739f4047234e617ed10e8686cbcdc76782ea9cdf78ed5c566ed18801de0938d0abe6d57d734297a066904043a29027d33b3de6ef35fbe255cf19c2b
7
- data.tar.gz: cd05871afe0d9d9bcb698abb96292d7ed4780d41c3ddeb74db649abb7512f4c06f3991c11211cb2d574d7636de68a4fa1b23fa817943f894666fa64ff4aa31f8
6
+ metadata.gz: d4b60f51ba32d710f89b396379847785c36d522fbfa190eb3a27527dea53e87a277e7f7d814e01a0639f8c64705b40b4621a21f19b0aa3afb1d8ee4aa56edd86
7
+ data.tar.gz: 1566edaa8ca58544d5747cd86b73b9f1d66ed52f684aecba62c4ceb695a096cb7b1f5063e973b42eafda65732bd6f5664210bd53ec83489f9c3b5d5b9d233935
@@ -8,6 +8,11 @@ module DataCollector
8
8
  super
9
9
  end
10
10
 
11
+ def run(should_block = false, &block)
12
+ @listener.start
13
+ sleep if should_block
14
+ end
15
+
11
16
  def running?
12
17
  @listener.processing?
13
18
  end
@@ -15,7 +20,7 @@ module DataCollector
15
20
  private
16
21
 
17
22
  def create_listener
18
- @listener ||= Listen.to("#{@uri.host}/#{@uri.path}", @options) do |modified, added, _|
23
+ @listener ||= Listen.to("#{@uri.host}#{@uri.path}", @options) do |modified, added, _|
19
24
  files = added | modified
20
25
  files.each do |filename|
21
26
  handle_on_message(@input, @output, filename)
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module DataCollector
3
- VERSION = "0.21.0"
3
+ VERSION = "0.22.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Celik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-17 00:00:00.000000000 Z
11
+ date: 2023-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport