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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c81f31cea98bcd57302e874b0efdbeee694af968f40f71a8f527f081c4b456db
4
- data.tar.gz: 5bddaf96e0dec2e801b8625fbc8400f285a7e1d9cbd4a984429ce06e6abfa417
3
+ metadata.gz: e1e83c44e949efe75ec1ee2c429b0596816c2b9f8e7c5416e7f3dd7243ef69c4
4
+ data.tar.gz: 9b8a870504f4b32729ddb85f999cf7af30f6aac4215d356caefda6db2349dfb8
5
5
  SHA512:
6
- metadata.gz: '02537899ea45c1a3e12178f2d208231670ac3b5e79b993fe19b99b004ce21f0c5017d4ca57673ff6e9d69eb739e00ab147c2a31d33ca46ac058faf5728c818be'
7
- data.tar.gz: 56cb31af74654f8cf1579cd208907cb3ea769d5e99959e6e4df5ead8a257926cd67b9901215010115bd31c5b9184177d7bd6e63e9b9d4735cecc3b53924ef6c5
6
+ metadata.gz: ac045625ade6b059933ce82b1eaa014be50ce2eea7db34fb1e8a1f94145810c814bb95ba4cb8b70858547a3aaddebc812c8b3986e753f2f2304a7ae477a70974
7
+ data.tar.gz: 19c81bacc7df78bbae4b6c9a03007a4ce84ce6c2de230e0e0e6b937e7b8ef4885788f70b36bebcd9cc192ae3aba3b0a7899830cf5ce20182fb95d19a4d2d1843
data/CHANGELOG.markdown CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # 5.3.3
4
+
5
+ * Fix double firing of Puma `on_worker_boot` when preloading. (#463)
6
+
3
7
  # 5.3.2
4
8
 
5
9
  * Update redis instruments to support redis v5.0+ (#458)
data/gems/sidekiq.gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  eval_gemfile("../Gemfile")
2
2
 
3
3
  # https://github.com/scoutapp/scout_apm_ruby/issues/449
4
- gem 'sidekiq', '>= 6.5.0'
4
+ gem 'sidekiq', '~> 6.5.0'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ScoutApm
2
- VERSION = "5.3.2"
2
+ VERSION = "5.3.3"
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: 5.3.2
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-10-12 00:00:00.000000000 Z
12
+ date: 2022-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest