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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4554876f9ec9c7b93aa379cde4a00dd0adbdf1e7
4
- data.tar.gz: 96a00005dd846304676a25568be464382dcb16eb
3
+ metadata.gz: f59f8432283334855f3ff0a27ab5d05b382197d7
4
+ data.tar.gz: 30e3f1a76d734bc9b4db8a6a411d546822a3f04f
5
5
  SHA512:
6
- metadata.gz: 4f30c493a882edd86d1df9e0ecbb3afff859a92476a829466010cfdfaf154ae407bb64e1a29d5223b3f2ac4bfc9f1550e1f13363b08d451f293fefe7b70dd20a
7
- data.tar.gz: 9a848973e69b1995ef393a1d16f2cb94bba5fc71d2e48fdd3ce6aa929283fd6a3c51e53728da9eb0409971bec2fd4444e3a7a33cfa5ce21ba55900340dbc843a
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
- if data.respond_to?(:as_json)
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
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.3.0.pre2"
2
+ VERSION = "2.3.0.pre3"
3
3
  end
4
4
 
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.pre2
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-09-29 00:00:00.000000000 Z
12
+ date: 2017-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest