scout_apm 2.4.23 → 2.4.24

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: ca36cb923b4f091bfcec9d51f7258a09fd6359b3
4
- data.tar.gz: f5e53408efdd0cedd50ad36e72c9cb6cba221fe3
3
+ metadata.gz: 3876e11520a259f36044e5363edcb5aeeb4b21fa
4
+ data.tar.gz: cc1b0079ab39e11f40a864c49ef2fbe47047b186
5
5
  SHA512:
6
- metadata.gz: 033447f6ced47a6cb86a8487b09b5655d7136f375ebd63b41fd8443108c3bc8f71f90a3150f8236b16f637ee99d5fcfb20afa132318674c4f47d621aeb15899b
7
- data.tar.gz: c7bbe7f1624a0a72aba52c5f768015cb54e95b3d1979c638743e6acce770203c3d41b001e1dafc7079ea561f14f798cbd5d1b52dc2f16809c0715e39662229d5
6
+ metadata.gz: d027fd21baa97648867063ec267c53f1dab7cf1060c5f13a9c69f1ce70b89a78465fe0fdda20ddc4d44ea6b281c5673f3661fb0cb7f3b34982e4081e45041942
7
+ data.tar.gz: aee3351685dc70a95857ffc63bc8dfad81e6414ddb53146eaca3483fc0bd94ef29024da47079f62bc1d568cbc979afc20d6f960fa53e25b123136202fd10badd
@@ -1,3 +1,7 @@
1
+ # 2.4.24
2
+
3
+ * Fix for prepending view instruments in the case of templates that lack a `virtual_path` (#257).
4
+
1
5
  # 2.4.23
2
6
 
3
7
  * Extend #251 to use prepend on all view instruments (#255)
@@ -3,11 +3,12 @@
3
3
  #
4
4
  # The prepend version was added for Rails 6 support - ActiveRecord prepends on
5
5
  # top of PartialRenderer#collection_with_template, which can (and does) cause
6
- # infinite loops with our alias_method approach
6
+ # infinite loops with our alias_method approach.
7
+ #
8
+ # Even though Rails 6 forced us to use a prepend version, it is now used for
9
+ # all Rubies that support it.
7
10
  module ScoutApm
8
11
  module Instruments
9
- # Instrumentation for Rails 3, 4, 5 is the same, using tracer.
10
- # Rails 6 switches to using Module#prepend
11
12
  class ActionView
12
13
  attr_reader :context
13
14
 
@@ -25,8 +26,7 @@ module ScoutApm
25
26
  end
26
27
 
27
28
  def prependable?
28
- return true if context.environment.supports_module_prepend?
29
- false
29
+ context.environment.supports_module_prepend?
30
30
  end
31
31
 
32
32
  def install
@@ -79,6 +79,7 @@ module ScoutApm
79
79
  req = ScoutApm::RequestManager.lookup
80
80
 
81
81
  template_name = @template.virtual_path rescue "Unknown Partial"
82
+ template_name ||= "Unknown Partial"
82
83
  layer_name = template_name + "/Rendering"
83
84
 
84
85
  layer = ScoutApm::Layer.new("View", layer_name)
@@ -96,6 +97,7 @@ module ScoutApm
96
97
  req = ScoutApm::RequestManager.lookup
97
98
 
98
99
  template_name = @template.virtual_path rescue "Unknown Collection"
100
+ template_name ||= "Unknown Collection"
99
101
  layer_name = template_name + "/Rendering"
100
102
 
101
103
  layer = ScoutApm::Layer.new("View", layer_name)
@@ -115,6 +117,7 @@ module ScoutApm
115
117
  req = ScoutApm::RequestManager.lookup
116
118
 
117
119
  template_name = args[0].virtual_path rescue "Unknown"
120
+ template_name ||= "Unknown"
118
121
  layer_name = template_name + "/Rendering"
119
122
 
120
123
  layer = ScoutApm::Layer.new("View", layer_name)
@@ -1,3 +1,3 @@
1
1
  module ScoutApm
2
- VERSION = "2.4.23"
2
+ VERSION = "2.4.24"
3
3
  end
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.4.23
4
+ version: 2.4.24
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: 2019-03-14 00:00:00.000000000 Z
12
+ date: 2019-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest