scout_apm 2.4.22 → 2.4.23

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: 9fa219a419aefb2e17c508ea1c337a2aeb336a21
4
- data.tar.gz: bcedf91bcbac7ed3c111d0018af5f22123b54af3
3
+ metadata.gz: ca36cb923b4f091bfcec9d51f7258a09fd6359b3
4
+ data.tar.gz: f5e53408efdd0cedd50ad36e72c9cb6cba221fe3
5
5
  SHA512:
6
- metadata.gz: 1917e106d1ea9048bd9b68bfafbd3c24717db6827eee0510fc86d1e23da7f504df8dd2786b517420ac73e799ac38c83680635410de1100c901ecd3b8d895373a
7
- data.tar.gz: 42ebd73a8e0048387ab628e9ae3e80186a7a548b0f75051b5f560bd529f893add7828f4747cb1fd9bb741a6d544a1fe1c8bcf27b61960d7dc4d4fdd3bf9ff7af
6
+ metadata.gz: 033447f6ced47a6cb86a8487b09b5655d7136f375ebd63b41fd8443108c3bc8f71f90a3150f8236b16f637ee99d5fcfb20afa132318674c4f47d621aeb15899b
7
+ data.tar.gz: c7bbe7f1624a0a72aba52c5f768015cb54e95b3d1979c638743e6acce770203c3d41b001e1dafc7079ea561f14f798cbd5d1b52dc2f16809c0715e39662229d5
@@ -1,3 +1,7 @@
1
+ # 2.4.23
2
+
3
+ * Extend #251 to use prepend on all view instruments (#255)
4
+
1
5
  # 2.4.22
2
6
 
3
7
  * Support Rails 6.0 View Instruments (#251)
@@ -24,13 +24,18 @@ module ScoutApm
24
24
  @installed
25
25
  end
26
26
 
27
+ def prependable?
28
+ return true if context.environment.supports_module_prepend?
29
+ false
30
+ end
31
+
27
32
  def install
28
33
  return unless defined?(::ActionView) && defined?(::ActionView::PartialRenderer)
29
34
 
30
- if defined?(::Rails) && defined?(::Rails::VERSION) && defined?(::Rails::VERSION::MAJOR) && ::Rails::VERSION::MAJOR < 6
31
- install_using_tracer
32
- else
35
+ if prependable?
33
36
  install_using_prepend
37
+ else
38
+ install_using_tracer
34
39
  end
35
40
  @installed = true
36
41
  end
@@ -1,3 +1,3 @@
1
1
  module ScoutApm
2
- VERSION = "2.4.22"
2
+ VERSION = "2.4.23"
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.22
4
+ version: 2.4.23
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-11 00:00:00.000000000 Z
12
+ date: 2019-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest