scout_apm 5.3.2 → 5.3.3
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 +4 -4
- data/CHANGELOG.markdown +4 -0
- data/gems/sidekiq.gemfile +1 -1
- data/lib/scout_apm/server_integrations/puma.rb +29 -1
- data/lib/scout_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1e83c44e949efe75ec1ee2c429b0596816c2b9f8e7c5416e7f3dd7243ef69c4
|
|
4
|
+
data.tar.gz: 9b8a870504f4b32729ddb85f999cf7af30f6aac4215d356caefda6db2349dfb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac045625ade6b059933ce82b1eaa014be50ce2eea7db34fb1e8a1f94145810c814bb95ba4cb8b70858547a3aaddebc812c8b3986e753f2f2304a7ae477a70974
|
|
7
|
+
data.tar.gz: 19c81bacc7df78bbae4b6c9a03007a4ce84ce6c2de230e0e0e6b937e7b8ef4885788f70b36bebcd9cc192ae3aba3b0a7899830cf5ce20182fb95d19a4d2d1843
|
data/CHANGELOG.markdown
CHANGED
data/gems/sidekiq.gemfile
CHANGED
|
@@ -23,8 +23,36 @@ module ScoutApm
|
|
|
23
23
|
defined?(::Puma) && (File.basename($0) =~ /\Apuma/)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
# Puma::UserFileDefaultOptions exposes `options` based on three underlying
|
|
27
|
+
# hashes: user_options, file_options, and default_options. While getting an `options`
|
|
28
|
+
# key consults all three underlying hashes, setting an `options` key only sets the
|
|
29
|
+
# user_options hash:
|
|
30
|
+
#
|
|
31
|
+
# def [](key)
|
|
32
|
+
# fetch(key)
|
|
33
|
+
# end
|
|
34
|
+
#
|
|
35
|
+
# def []=(key, value)
|
|
36
|
+
# user_options[key] = value
|
|
37
|
+
# end
|
|
38
|
+
#
|
|
39
|
+
# def fetch(key, default_value = nil)
|
|
40
|
+
# return user_options[key] if user_options.key?(key)
|
|
41
|
+
# return file_options[key] if file_options.key?(key)
|
|
42
|
+
# return default_options[key] if default_options.key?(key)
|
|
43
|
+
#
|
|
44
|
+
# default_value
|
|
45
|
+
# end
|
|
46
|
+
#
|
|
47
|
+
# Because of this, we can't read options[:before_worker_boot], modify, and then re-set
|
|
48
|
+
# options[:before_worker_boot], since doing so could cause duplication if `before_worker_boot`
|
|
49
|
+
# exists on the other two underlying hashes (file_options, default_options).
|
|
50
|
+
#
|
|
51
|
+
# To get around this, we explicitly read from `user_options` only, and still set using `options[]=`,
|
|
52
|
+
# which Puma allows for setting `user_options`.
|
|
53
|
+
#
|
|
26
54
|
def install
|
|
27
|
-
old = ::Puma.cli_config.options[:before_worker_boot] || []
|
|
55
|
+
old = ::Puma.cli_config.options.user_options[:before_worker_boot] || []
|
|
28
56
|
new = Array(old) + [Proc.new do
|
|
29
57
|
logger.info "Installing Puma worker loop."
|
|
30
58
|
ScoutApm::Agent.instance.start_background_worker
|
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: 5.3.
|
|
4
|
+
version: 5.3.3
|
|
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: 2022-
|
|
12
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: minitest
|