appsignal 2.9.9 → 2.9.10

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
  SHA256:
3
- metadata.gz: e1d7fa0a46c7ba3c90ccbaca56b462644da1c3fc66efe545f86f0802351b2ee0
4
- data.tar.gz: f0e5d4b31d892183aa162e0b1295e9422eed5a4d8d6f2a480b2ca376d194cd45
3
+ metadata.gz: d04cb355cc01a8a6bac57d80e60a60f477facc26c89bf2dfe1dc9b19064ece9d
4
+ data.tar.gz: 2884eb415ce21ba319ef600810adc5b6a6d714ac8468b4d45df2773453932b9a
5
5
  SHA512:
6
- metadata.gz: d9baa71a5a0576d8244a3857232e6e25132297b52114e882f8ee01b86dbe18be2dc9232812cfd8720070b5f39fc57bd67350e53c3290ef349bd39bfa8e1d9531
7
- data.tar.gz: cc6bf8d75938f2571ee8dbd5aec10ada0f87d8f7f8163e6bd200b5eb55401e3e9d79c3f3eff1cb35c8d9cfddd7716bd0041d1d73f492af5fea118ffd729b34e0
6
+ metadata.gz: 65d42043a073fd994e5a5a139388fae3874e235a5f6e346a7877f0d5a9e17bd6ed5aa124661df31ba374cdedf1cc2ce864460dd3db4593cf0182b21bd8962622
7
+ data.tar.gz: 675bd7ca267324f1efb17194d4dda0ac75e03b4497c7c42b52c292efb84197fcd87a1ea2c65ebe605c14a2c063d7956dcd7cce39e48f2a6af0105f2bbef40ed4
@@ -1,9 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.9.10
4
+ - Fix Puma minutely probe start where `daemonize` is set to `true`. PR #548
5
+
3
6
  ## 2.9.9
4
7
  - Fix error in the ActiveSupport::Notifications integration when a transaction
5
8
  gets completed during event instrumentation. PR #532
6
9
  - Fix Redis constant load error. PR #543
10
+ - Add more logging for errors in debug mode. PR #544
7
11
  - Deprecate notify_of_deploy command. PR #545
8
12
  - Always call the block given to `Appsignal.monitor_transaction` and log errors
9
13
  from the helper even when AppSignal is not active. PR #547
@@ -16,6 +16,11 @@ module Appsignal
16
16
  end
17
17
 
18
18
  if ::Puma.respond_to?(:cli_config) && ::Puma.cli_config
19
+ ::Puma.cli_config.options[:before_fork] ||= []
20
+ ::Puma.cli_config.options[:before_fork] << proc do |_id|
21
+ Appsignal::Minutely.start
22
+ end
23
+
19
24
  ::Puma.cli_config.options[:before_worker_boot] ||= []
20
25
  ::Puma.cli_config.options[:before_worker_boot] << proc do |_id|
21
26
  Appsignal.forked
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "2.9.9".freeze
4
+ VERSION = "2.9.10".freeze
5
5
  end
@@ -71,12 +71,14 @@ describe Appsignal::Hooks::PumaHook do
71
71
 
72
72
  context "with nil hooks" do
73
73
  before do
74
+ Puma.cli_config.options.delete(:before_fork)
74
75
  Puma.cli_config.options.delete(:before_worker_boot)
75
76
  Puma.cli_config.options.delete(:before_worker_shutdown)
76
77
  Appsignal::Hooks::PumaHook.new.install
77
78
  end
78
79
 
79
80
  it "should add a before shutdown worker callback" do
81
+ expect(Puma.cli_config.options[:before_fork].first).to be_a(Proc)
80
82
  expect(Puma.cli_config.options[:before_worker_boot].first).to be_a(Proc)
81
83
  expect(Puma.cli_config.options[:before_worker_shutdown].first).to be_a(Proc)
82
84
  end
@@ -84,12 +86,14 @@ describe Appsignal::Hooks::PumaHook do
84
86
 
85
87
  context "with existing hooks" do
86
88
  before do
89
+ Puma.cli_config.options[:before_fork] = []
87
90
  Puma.cli_config.options[:before_worker_boot] = []
88
91
  Puma.cli_config.options[:before_worker_shutdown] = []
89
92
  Appsignal::Hooks::PumaHook.new.install
90
93
  end
91
94
 
92
95
  it "should add a before shutdown worker callback" do
96
+ expect(Puma.cli_config.options[:before_fork].first).to be_a(Proc)
93
97
  expect(Puma.cli_config.options[:before_worker_boot].first).to be_a(Proc)
94
98
  expect(Puma.cli_config.options[:before_worker_shutdown].first).to be_a(Proc)
95
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.9
4
+ version: 2.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-19 00:00:00.000000000 Z
12
+ date: 2019-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack