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 +4 -4
- data/lib/data_collector/input/dir.rb +6 -1
- data/lib/data_collector/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8333bf619cbafbac678351542ff0680abafd8d02fbe79ef286a1998eb85d3e4
|
4
|
+
data.tar.gz: bac65514f7f0314004feec335b20bc512e09ec1c62526321eefd61e7b98beece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
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)
|
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.
|
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-
|
11
|
+
date: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|