data_collector 0.47.0 → 0.49.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: be5ec60e8f8c635fc24fff0848c152967244d12b32b80e144145a77cb6e3a96a
4
- data.tar.gz: b22bf950e4c5ce61a57c4a8381ef4d30ff2bd897e726b1370cf828972641bf8b
3
+ metadata.gz: 011fa724e8bde117ae8aad07787bb02360ea1aedd74e5421542f6d0aed716aa3
4
+ data.tar.gz: 0f0a903e89342f0327268964eeb82c83ff73fb3d2f520a583e1b79b230e678b5
5
5
  SHA512:
6
- metadata.gz: 61582ef2aa020c76b4feed2fb804aba2948be3d37821a75e53d0fdb5c9d04e4b6152d0982601006d55697065bcc98687f2cab572356a59d7d12a71f8826f1d2c
7
- data.tar.gz: 1ea4192ce77dcde834e887043f892885c44181f5be39e188d59267e78e82159a68a0aa41dc3b520e81cd3af3bab8eebeaa026babc9498cbf9a224da2766c0338
6
+ metadata.gz: 850c951d0e6fbcf4c5ce01fe4c14b04d05b7ce54ff07afc3257dcdde69df99aa588009be3add9c3f7c360129087efb5c20c5f1674841bc1a3ce0c9a0f43893f9
7
+ data.tar.gz: d0dc81a5346decda9094d78aaf568b9f8a5606b7d056f43f28c3dffeb567a039644e4e20e64be365c19494b41ed1c47e51976be7488873dacb6814c005b41189
@@ -53,11 +53,12 @@ module DataCollector
53
53
  end
54
54
 
55
55
  def self.init
56
+ @config_file_name = 'config.yml' if @config_file_name.nil?
56
57
  discover_config_file_path
57
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}")
58
59
 
59
60
  ftime = File.exist?("#{@config_file_path}/#{@config_file_name}") ? File.mtime("#{@config_file_path}/#{@config_file_name}") : nil
60
- if @config.empty? || @mtime != ftime
61
+ if @config.nil? || @config.empty? || @mtime != ftime
61
62
  config = YAML::load_file("#{@config_file_path}/#{@config_file_name}", aliases: true, permitted_classes: [Time, Symbol])
62
63
  @config = process(config)
63
64
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module DataCollector
3
- VERSION = "0.47.0"
3
+ VERSION = "0.49.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Celik