data_collector 0.48.0 → 0.50.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: a2ff44511573c07feff72ad0f913872f4adb9ea0a2214211a0db0ddf662451e9
4
- data.tar.gz: 64e6a02ba633e39501d82546a4713c09cffcab80f8a51055b19545e1441cc75f
3
+ metadata.gz: 311bb0029b50f2f2f665f2d77aa8cda7816ab329def4987d50485f200cdfacb3
4
+ data.tar.gz: a994e0b8e81f5af0b7e9401552133157f3a8366ad673f0955823fb6dd03de69f
5
5
  SHA512:
6
- metadata.gz: 28c79641b5aed0ab4c19e45b983d9035fc8df8e599f0b623fbed0621608cfbe4cc7e5a65760543ed8cf1ea96bfd2cb2106d6fa64e34ce093b964bc214d794e44
7
- data.tar.gz: cd5fae42b8843ca61adad6679b24ec1350740fe62eea258e188b85490c1db0da04e5080428e77e7427e938702878390fc11916af0d5581362c78bcfce7429544
6
+ metadata.gz: 7ecb0ebcb9e61a55075b288979a6a73625621b5e900ddc76711659f0248d82c6e1792d545483f770b31cc76569c79b703e180b2484bdc58f1e873e07364bb237
7
+ data.tar.gz: f771d412cfdbfd37982b00078f37a544142a98142d7695c4b7985b690206cf3a5d93f7beaa4e38b5a92b667667f9b4275adb4d3bc6faf2892973fad52dbdced4
@@ -58,7 +58,7 @@ module DataCollector
58
58
  raise Errno::ENOENT, "#{@config_file_path}/#{@config_file_name} Not Found. Set path to #{@config_file_name}" unless File.exist?("#{@config_file_path}/#{@config_file_name}")
59
59
 
60
60
  ftime = File.exist?("#{@config_file_path}/#{@config_file_name}") ? File.mtime("#{@config_file_path}/#{@config_file_name}") : nil
61
- if @config.empty? || @mtime != ftime
61
+ if @config.nil? || @config.empty? || @mtime != ftime
62
62
  config = YAML::load_file("#{@config_file_path}/#{@config_file_name}", aliases: true, permitted_classes: [Time, Symbol])
63
63
  @config = process(config)
64
64
  end
@@ -29,8 +29,8 @@ module DataCollector
29
29
  absolute_path = File.absolute_path("#{@uri.host}#{@uri.path}")
30
30
  raise DataCollector::Error, "#{@uri.to_s} not found" unless File.exist?(absolute_path)
31
31
 
32
- @listener ||= Listen.to(absolute_path, @options) do |modified, added, _|
33
- files = added | modified
32
+ @listener ||= Listen.to(absolute_path, @options) do |modified, added, removed|
33
+ files = added | modified | removed
34
34
  files.each do |filename|
35
35
  handle_on_message(@input, @output, filename)
36
36
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module DataCollector
3
- VERSION = "0.48.0"
3
+ VERSION = "0.50.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.48.0
4
+ version: 0.50.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport