data_collector 0.46.0 → 0.48.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: 72db9fd94027f6a4a9d3112c070e4c52ed8e824676e10923d7bcf76fe5015d14
4
- data.tar.gz: 6e1e4b8827ae44abe027568682426d4a9cc610f06cb99e9afdfe63bd0b8e5295
3
+ metadata.gz: a2ff44511573c07feff72ad0f913872f4adb9ea0a2214211a0db0ddf662451e9
4
+ data.tar.gz: 64e6a02ba633e39501d82546a4713c09cffcab80f8a51055b19545e1441cc75f
5
5
  SHA512:
6
- metadata.gz: 867c15eddb233301ddd0090138989f8230424ae159f7ba2aba8669d0d985c29262eb9bb4029283dd2dd130c6534621c6db1e8f946d6563c60e2c2f3e719c48bd
7
- data.tar.gz: fc370007a9ec72e5d748c51e4cb191334dacc79639245cbc395d7bebe0b90fd77574466e889177e49e041580998b7749d4441d9e3ca815307f2fad8adf43204b
6
+ metadata.gz: 28c79641b5aed0ab4c19e45b983d9035fc8df8e599f0b623fbed0621608cfbe4cc7e5a65760543ed8cf1ea96bfd2cb2106d6fa64e34ce093b964bc214d794e44
7
+ data.tar.gz: cd5fae42b8843ca61adad6679b24ec1350740fe62eea258e188b85490c1db0da04e5080428e77e7427e938702878390fc11916af0d5581362c78bcfce7429544
@@ -53,12 +53,13 @@ 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
61
  if @config.empty? || @mtime != ftime
61
- config = YAML::load_file("#{@config_file_path}/#{@config_file_name}", permitted_classes: [Time, Symbol])
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
64
65
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module DataCollector
3
- VERSION = "0.46.0"
3
+ VERSION = "0.48.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.46.0
4
+ version: 0.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehmet Celik