rt-logman 1.0.0 → 1.1.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
  SHA1:
3
- metadata.gz: 15be3c449a0a876ee2386230fcdb4fd90ba33f6c
4
- data.tar.gz: 65c355865f197a0446896ebe0ff4150f49169ffd
3
+ metadata.gz: 394f206c5580b238f08fdada399581b8b049d5a3
4
+ data.tar.gz: 435080f3efc32a2070d47e0bb1355f45e3e6ce56
5
5
  SHA512:
6
- metadata.gz: bddcf0c092468aa3fa249e35c31931a915ca385a2bcfad23f2f74e0ae89878fae744c1f712b0d7793bb7c0cac1ea20d0cf28eba06d244ec4e95b1ad74e4943e7
7
- data.tar.gz: b4fcc9e9efd41039f699326c24ff2410630b6ba37cea218783872255f7825751acd6069a7ea0f9ead3810894bafce98693efe44644eab6ef082b3d87c2e06d57
6
+ metadata.gz: 5dcf78191f48fdd410b7bfb11be9d6eaa898dd9163876aa0c5672637bfa4cd59aa285f40a17ea02d13e76cb4d29976671a6940d182151c29c9a270002406f288
7
+ data.tar.gz: 52c8a85c339ff56d36142d95088b31ff4fde975b6c22a596d11ca36e72c3b29fd34fbca8cc68de8361569eba3696e60c2cca3f5b57e4d05687eb2194ccbbdf5c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rt-logman (1.0.0)
4
+ rt-logman (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/logman.rb CHANGED
@@ -83,7 +83,13 @@ class Logman
83
83
  :level => severity.upcase,
84
84
  :time => datetime,
85
85
  :pid => Process.pid
86
- }.merge(msg)
86
+ }
87
+
88
+ if msg.is_a?(Hash)
89
+ event.merge!(msg)
90
+ else
91
+ event[:msg] = msg.to_s
92
+ end
87
93
 
88
94
  "#{format(event)}\n"
89
95
  end
@@ -1,3 +1,3 @@
1
1
  class Logman
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.1.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rt-logman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rendered Text
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-09 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler