scout_apm 2.3.0.pre2 → 2.3.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scout_apm/attribute_arranger.rb +9 -1
- data/lib/scout_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f59f8432283334855f3ff0a27ab5d05b382197d7
|
4
|
+
data.tar.gz: 30e3f1a76d734bc9b4db8a6a411d546822a3f04f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5428834f6a809a36662efa0cdff228401b61a96208c1b4c78de520b8817efee25c870668961f505055c6ca9b37d72852ff7be51276baccbb91ac097455803fdc
|
7
|
+
data.tar.gz: 31e85d518d859015d53e6ec8e5cd63c9842aa1e1ce66313414fce35794b838f26eb022564a5de5036ec75656a817def0ab086880a698bd1709de539e33056239
|
@@ -13,7 +13,15 @@ module ScoutApm
|
|
13
13
|
attribute_hash[attribute] = subject.bucket_name
|
14
14
|
when Symbol
|
15
15
|
data = subject.send(attribute)
|
16
|
-
|
16
|
+
|
17
|
+
# Never try to `as_json` a time object, since it'll break if the
|
18
|
+
# app has the Oj gem set to mimic_JSON, and there's never
|
19
|
+
# anything interesting nested inside of a Time obj. We just want
|
20
|
+
# the ISO8601 string (which happens later in the payload
|
21
|
+
# serializing process)
|
22
|
+
if data.is_a?(Time)
|
23
|
+
attribute_hash[attribute] = data
|
24
|
+
elsif data.respond_to?(:as_json)
|
17
25
|
attribute_hash[attribute] = data.as_json
|
18
26
|
else
|
19
27
|
attribute_hash[attribute] = data
|
data/lib/scout_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|