cute_logger 0.1.9 → 0.1.10

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
- SHA1:
3
- metadata.gz: 8d3523a219c949dde0b71ad25bfa5d9829f301ad
4
- data.tar.gz: 069937c907681020fd52a82b09b3ff9556b15523
2
+ SHA256:
3
+ metadata.gz: 6f15d61ff57ab6849cf6e23106917a6df48773bae8959e21d1f0ad6be67bda0e
4
+ data.tar.gz: 2a68b414c37a5a854838a8036136023123fa7e40f2168d30686fb11c7e52e8ed
5
5
  SHA512:
6
- metadata.gz: ac824f1b4edc95bd93f350c26cd9318d0aa10160ea98e6522b4e641412ed80a701a758f2b3aebfbf5852d8c5086048977c851cebd0092a1a1bc4259f58e37705
7
- data.tar.gz: 7472207728297a4a79ccbddaf42e471f71ef4f94e9fe893eb2485e8d8cc31211b8006939ea83b96703f6e155f9616f1135795d942eccfa001d5df39b4f945a98
6
+ metadata.gz: c80a6e196bbc15507c52e182e3dfcd24e2173d7601824dca3516cf9108b324c759a7dd10fb48f12ee88c3231d40b648b33c3fcdc54119b3babcbc00582992cbc
7
+ data.tar.gz: 42187354e4684fb2a746f40eedd227671d9411a964bfc27a197ec1164d36816edb2d7e4bff4e81f381b06bc9feb6ccd569d44c37da4994a31450c2fdf6cb3bcd
@@ -26,6 +26,17 @@ module CuteLogger
26
26
  "#{datetime},#{severity},#{Process.pid.to_s(16)},#{Thread.current.object_id.to_s(16)}" \
27
27
  ",#{progname},#{msg}\n"
28
28
  end
29
+
30
+ @signals_read, @signals_write = IO.pipe
31
+
32
+ trap('HUP') { @signals_write.puts('HUP') }
33
+
34
+ Thread.new do
35
+ while readable_io = IO.select([@signals_read])
36
+ readable_io.first[0].gets
37
+ @logger.reopen
38
+ end
39
+ end
29
40
  end
30
41
 
31
42
  def self.severity=(text)
@@ -1,5 +1,5 @@
1
1
 
2
2
  # Partial module to define the version of the gem
3
3
  module CuteLogger
4
- VERSION = '0.1.9'
4
+ VERSION = '0.1.10'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cute_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Del Rio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2019-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.7.6
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: This gem provides accesible methods for doing the application logging in