internet_box_logger 0.1.4 → 0.1.6

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
  SHA1:
3
- metadata.gz: 392bfee54def08775eba49ee699e8ca6be2c1c15
4
- data.tar.gz: b8f847eff5ec8a64b41513847a1c9b2cced20937
3
+ metadata.gz: bcce0fe4d530f00f1a861448587bac61b724bd0e
4
+ data.tar.gz: c058b9499d2d2ecefd4cd5f49c8c1df1d451aa04
5
5
  SHA512:
6
- metadata.gz: 30beb6ae14b11d89cabff73936e33d293f4d62a9358b6b3d1094f34a959904f55815ff5eb1a2d6647334dd084d5a6fe158382cab8b5b94a0e1985510eaad7774
7
- data.tar.gz: df1da0de0bc8cf0e426e2f0681d611031b848c58862122fec4e7b24d990db14870bae2f326eebec30623044934ea3f52f3d7802acbc6eb8c2e2a772a830701da
6
+ metadata.gz: ace022f9af88d21933191619a6effd283999db51ca89eb866956ce5ac5efcf7d39cf53adee7bae8e8537707ecd0d86453de301567c11ad7f39ce2f6f50e3a2b7
7
+ data.tar.gz: 249f15f6c8fc2ed9dc16a561c6f5c63a710640f187931a76722c2aae32eee22c78cac8719999b1f132fdf03ed5a5cb7e12514cc6f67153febdc3154b3f668df3
@@ -8,14 +8,19 @@ require 'tasks/internet_box_logger_tasks'
8
8
  module InternetBoxLogger
9
9
  class Script
10
10
  include EasyAppHelper
11
- include InternetBoxLogger::Tasks
12
11
  APP_NAME = 'The Internet Box Logger'
13
12
  DESCRIPTION = 'This application will log your Internet box metrics into ElasticSearch.'
14
13
 
15
14
  def initialize
16
15
  # Providing this data is optional but brings better logging and online help
17
16
  config.describes_application(app_name: APP_NAME, app_version: InternetBoxLogger::VERSION, app_description: DESCRIPTION)
18
- config.script_filename = "#{ibl_gem_path}/config/internet_box_logger.conf"
17
+ # Ugly hack to fix issue with easy_app_helper way of managing gem config files
18
+ gem_conf_file = File.join EasyAppHelper::Core::Config::Places.gem_root_path(__FILE__), 'config', 'internet_box_logger.conf'
19
+ config.internal_configs[:gem] = {
20
+ content: Hash[YAML::load(File.open(gem_conf_file)).map { |k, v| [k.to_sym, v] }],
21
+ source: gem_conf_file,
22
+ origin: :internet_box_logger
23
+ }
19
24
  end
20
25
 
21
26
  def run
@@ -1,3 +1,3 @@
1
1
  module InternetBoxLogger
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: internet_box_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent B