outland-tag_runes 1.1.3 → 1.1.4

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
  SHA1:
3
- metadata.gz: 4db0b3df4e6492c651345a1042a3585da16a44b8
4
- data.tar.gz: 0432d144b908ae4dff106cdd3725db6b11705009
3
+ metadata.gz: 45b2a2498c0fb639d5d3e3b8b758947348ac770c
4
+ data.tar.gz: c3d925b31d427788beedd34e126578a38ec48c58
5
5
  SHA512:
6
- metadata.gz: a1ed8f18b2c1f9138b00359526a2dc10ed4667b125e309ce322e9dff4265f7f89dda85a89828777d9121dd9afedc902b36d2b1dc2190ac8d6a5029bace4c14f1
7
- data.tar.gz: 7510c7066b7a87804c9001540340efb9fa676acb129428fa58230e56b6bab432c64f5353788caeb065c6ca06c12e71a9f94438ad56f3116a6f1aa381ba009b5c
6
+ metadata.gz: '048c811df20065869c1a3dd8f8d17481a6dc11404207e67b5cbba07fa6c44706f5758b05a82a60d60fd6be203dbdfce6811bedfe16983c5ea42b828c5a428ef3'
7
+ data.tar.gz: 22764d0cb50c7e4feee36a1c01d523621dbab9b76cbe0e0d404ae49caf4328b92cb830d531318ff7321d765bbf4abb53f84bed416dbf1676e6bc04935ae88ac7
@@ -1,3 +1,7 @@
1
+ **1.1.4** (May 10, 2017)
2
+
3
+ * Handle non-string log messages that can be converted to a string.
4
+
1
5
  **1.1.3** (March 5, 2017)
2
6
 
3
7
  * More robust method of space-separating requests in non-development environments.
@@ -56,12 +56,13 @@ module TagRunes
56
56
  COMPLETED_RE = /\ACompleted \d\d\d \w/
57
57
 
58
58
  def call(severity, timestamp, progname, msg)
59
- if msg && COMPLETED_RE.match(msg) && !Rails.env.development?
59
+ msg_s = msg&.to_s
60
+ if msg_s && COMPLETED_RE.match(msg_s) && !Rails.env.development?
60
61
  # keep requests separated when deployed for sanity's sake
61
62
  [super, super(severity, timestamp, progname, '')].join
62
- elsif msg && msg.index("\n")
63
+ elsif msg_s && msg_s.index("\n")
63
64
  # apply the tags to each line via the underlying log tagger
64
- msg.lines.map{|l| super(severity, timestamp, progname, l.chomp)}.join
65
+ msg_s.lines.map{|l| super(severity, timestamp, progname, l.chomp)}.join
65
66
  else
66
67
  super
67
68
  end
@@ -1,7 +1,7 @@
1
1
  module Outland
2
2
  module TagRunes
3
3
 
4
- VERSION = "1.1.3"
4
+ VERSION = "1.1.4"
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outland-tag_runes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Lipa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-05 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.6.10
94
+ rubygems_version: 2.6.12
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Encode Rails session and request id into the log using only 7 columns, via