airbrake-ruby 4.14.0-java → 4.14.1-java
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/lib/airbrake-ruby/thread_pool.rb +1 -0
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/thread_pool_spec.rb +25 -5
- 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: ca9756d562f734886cca17fb7e03d66ffd98dab8241b34ff5fb4b4dc80c1ee31
|
4
|
+
data.tar.gz: 6e19717eef99f7446b8f2e50e79e2eea6787d2b283c0a291821f09ab5e227a8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f2b98f5d2d1427782a8ff84038589ed93765880c13b672b9e14d6ed159013d78436f0b3026649054cfee8098a84768d6cf6039be4598000960a64747c9da057
|
7
|
+
data.tar.gz: 28b983d5c3b2b3e7d2a31c5429ffb72b06103569444411c5e7231c76ce308ef143140f40d215401b178aa2022f912914ef7c3f7b14ec4f01c75398342dda97c0
|
data/spec/thread_pool_spec.rb
CHANGED
@@ -85,11 +85,31 @@ RSpec.describe Airbrake::ThreadPool do
|
|
85
85
|
expect(subject).not_to have_workers
|
86
86
|
end
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
describe "forking behavior" do
|
89
|
+
before do
|
90
|
+
skip('fork() is unsupported on JRuby') if %w[jruby].include?(RUBY_ENGINE)
|
91
|
+
unless Process.respond_to?(:last_status)
|
92
|
+
skip('Process.last_status is unsupported on this Ruby')
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
it "respawns workers on fork()" do
|
97
|
+
pid = fork { expect(subject).to have_workers }
|
98
|
+
Process.wait(pid)
|
99
|
+
subject.close
|
100
|
+
|
101
|
+
expect(Process.last_status).to be_success
|
102
|
+
expect(subject).not_to have_workers
|
103
|
+
end
|
104
|
+
|
105
|
+
it "ensures that a new thread group is created per process" do
|
106
|
+
subject << 1
|
107
|
+
pid = fork { subject.has_workers? }
|
108
|
+
Process.wait(pid)
|
109
|
+
subject.close
|
110
|
+
|
111
|
+
expect(Process.last_status).to be_success
|
112
|
+
end
|
93
113
|
end
|
94
114
|
end
|
95
115
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.14.
|
4
|
+
version: 4.14.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree-jruby
|