lilipad 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c416602924d80b9935d271f09cac669c4c388471824a775264723763b586bf7
4
- data.tar.gz: 3d4f7e7596ddd8912afbf4f8e1c810a1de96eb1a0d7bd9485f326bc42448ecd5
3
+ metadata.gz: a67f86c889bf977a2e35b788812d65f2fb62d8b2b2043272262b0d6a722bc721
4
+ data.tar.gz: 44e9f0fea0a60b699c41e45328210e5e12d51043741ad387aa2f73cfb258ebc5
5
5
  SHA512:
6
- metadata.gz: a20ec7a5390451d9755281e6dd762e2a11ea61d59941863b71b333cd5a1a12722355dd0798d657d7e6dcf7c3788febce7c4e624b0ff900c7293b13071628e265
7
- data.tar.gz: 2f3a285da2063221b1e94649f543e0d8921d3beac8b0862b0d22ccc6cd308f0166d3365efccfd36e1fa561da6ad4b0b41b804709d4c5d10314af3ef3eb442eb3
6
+ metadata.gz: 48a840452ad81b32d5bb9bdd719bf62e532d97977dfc97bee6ad938d5118532004371ce72f337f5ca9c3bff5eecf1d92d005ae0b749bc282d9b439a8693974df
7
+ data.tar.gz: 9658100152fdfec6e2a6a867fd0a49bc96a3edef1e878f2d677a4322dcaa3d426af86ec9c8853a0ecc767ce68878f8a4f82f2978edc05d7509f824df18eb3265
@@ -4,24 +4,30 @@ require "filewatcher"
4
4
 
5
5
  module Lilipad
6
6
  module Logger
7
- LOGG = {}.freeze
7
+ LOGG = {}
8
8
 
9
9
  filewatcher = Filewatcher.new(["./lilipad_config.json"])
10
10
 
11
11
  Thread.new(filewatcher) do |fw|
12
12
  fw.watch do |_changes|
13
- json = JSON.parse(File.read("./lilipad_config.json"))
13
+ puts "[Lilipad DEBUG] Reloading config file..."
14
+
15
+ begin
16
+ json = JSON.parse(File.read("./lilipad_config.json"))
14
17
 
15
- if json["enable"]
16
- enable_trace
17
- else
18
- disable_trace
19
- end
18
+ if json["enable"]
19
+ enable_trace
20
+ else
21
+ disable_trace
22
+ end
20
23
 
21
- reset
24
+ reset
22
25
 
23
- json["log"].each do |log|
24
- append_logg(log["file"], log["lineno"], log["msg"])
26
+ json["log"].each do |log|
27
+ append_logg(log["file"], log["lineno"], log["msg"])
28
+ end
29
+ rescue => e
30
+ puts "[Lilipad DEBUG] Error reloading config file: #{e}"
25
31
  end
26
32
  end
27
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lilipad
4
- VERSION = "0.3.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lilipad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst