airbrake-ruby 4.15.0 → 5.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake-ruby.rb +21 -33
- data/lib/airbrake-ruby/async_sender.rb +1 -1
- data/lib/airbrake-ruby/config.rb +34 -6
- data/lib/airbrake-ruby/config/processor.rb +80 -0
- data/lib/airbrake-ruby/config/validator.rb +4 -0
- data/lib/airbrake-ruby/performance_notifier.rb +1 -1
- data/lib/airbrake-ruby/remote_settings.rb +128 -0
- data/lib/airbrake-ruby/remote_settings/settings_data.rb +116 -0
- data/lib/airbrake-ruby/sync_sender.rb +1 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/airbrake_spec.rb +45 -22
- data/spec/config/processor_spec.rb +223 -0
- data/spec/config/validator_spec.rb +18 -1
- data/spec/config_spec.rb +8 -4
- data/spec/remote_settings/settings_data_spec.rb +327 -0
- data/spec/remote_settings_spec.rb +212 -0
- data/spec/sync_sender_spec.rb +3 -1
- metadata +13 -4
data/spec/sync_sender_spec.rb
CHANGED
@@ -27,7 +27,9 @@ RSpec.describe Airbrake::SyncSender do
|
|
27
27
|
expect(
|
28
28
|
a_request(:post, endpoint).with(
|
29
29
|
headers: {
|
30
|
-
'User-Agent' => %r{
|
30
|
+
'User-Agent' => %r{
|
31
|
+
airbrake-ruby/\d+\.\d+\.\d+(\.rc\.\d+)?\sRuby/\d+\.\d+\.\d+
|
32
|
+
}x,
|
31
33
|
},
|
32
34
|
),
|
33
35
|
).to have_been_made.once
|
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
|
+
version: 5.0.0.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree3
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/airbrake-ruby/benchmark.rb
|
45
45
|
- lib/airbrake-ruby/code_hunk.rb
|
46
46
|
- lib/airbrake-ruby/config.rb
|
47
|
+
- lib/airbrake-ruby/config/processor.rb
|
47
48
|
- lib/airbrake-ruby/config/validator.rb
|
48
49
|
- lib/airbrake-ruby/deploy_notifier.rb
|
49
50
|
- lib/airbrake-ruby/file_cache.rb
|
@@ -77,6 +78,8 @@ files:
|
|
77
78
|
- lib/airbrake-ruby/promise.rb
|
78
79
|
- lib/airbrake-ruby/query.rb
|
79
80
|
- lib/airbrake-ruby/queue.rb
|
81
|
+
- lib/airbrake-ruby/remote_settings.rb
|
82
|
+
- lib/airbrake-ruby/remote_settings/settings_data.rb
|
80
83
|
- lib/airbrake-ruby/request.rb
|
81
84
|
- lib/airbrake-ruby/response.rb
|
82
85
|
- lib/airbrake-ruby/stashable.rb
|
@@ -93,6 +96,7 @@ files:
|
|
93
96
|
- spec/backtrace_spec.rb
|
94
97
|
- spec/benchmark_spec.rb
|
95
98
|
- spec/code_hunk_spec.rb
|
99
|
+
- spec/config/processor_spec.rb
|
96
100
|
- spec/config/validator_spec.rb
|
97
101
|
- spec/config_spec.rb
|
98
102
|
- spec/deploy_notifier_spec.rb
|
@@ -131,6 +135,8 @@ files:
|
|
131
135
|
- spec/promise_spec.rb
|
132
136
|
- spec/query_spec.rb
|
133
137
|
- spec/queue_spec.rb
|
138
|
+
- spec/remote_settings/settings_data_spec.rb
|
139
|
+
- spec/remote_settings_spec.rb
|
134
140
|
- spec/request_spec.rb
|
135
141
|
- spec/response_spec.rb
|
136
142
|
- spec/spec_helper.rb
|
@@ -157,9 +163,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
163
|
version: '2.1'
|
158
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
165
|
requirements:
|
160
|
-
- - "
|
166
|
+
- - ">"
|
161
167
|
- !ruby/object:Gem::Version
|
162
|
-
version:
|
168
|
+
version: 1.3.1
|
163
169
|
requirements: []
|
164
170
|
rubygems_version: 3.1.2
|
165
171
|
signing_key:
|
@@ -196,6 +202,7 @@ test_files:
|
|
196
202
|
- spec/promise_spec.rb
|
197
203
|
- spec/thread_pool_spec.rb
|
198
204
|
- spec/config/validator_spec.rb
|
205
|
+
- spec/config/processor_spec.rb
|
199
206
|
- spec/sync_sender_spec.rb
|
200
207
|
- spec/ignorable_spec.rb
|
201
208
|
- spec/deploy_notifier_spec.rb
|
@@ -207,6 +214,7 @@ test_files:
|
|
207
214
|
- spec/request_spec.rb
|
208
215
|
- spec/notice_notifier/options_spec.rb
|
209
216
|
- spec/filter_chain_spec.rb
|
217
|
+
- spec/remote_settings/settings_data_spec.rb
|
210
218
|
- spec/response_spec.rb
|
211
219
|
- spec/queue_spec.rb
|
212
220
|
- spec/code_hunk_spec.rb
|
@@ -220,3 +228,4 @@ test_files:
|
|
220
228
|
- spec/inspectable_spec.rb
|
221
229
|
- spec/stashable_spec.rb
|
222
230
|
- spec/query_spec.rb
|
231
|
+
- spec/remote_settings_spec.rb
|