appsignal 2.10.4-java → 2.10.5-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/.semaphore/semaphore.yml +148 -2
- data/CHANGELOG.md +6 -0
- data/Rakefile +7 -1
- data/appsignal.gemspec +5 -2
- data/build_matrix.yml +12 -2
- data/lib/appsignal/cli/diagnose.rb +1 -1
- data/lib/appsignal/hooks/net_http.rb +13 -8
- data/lib/appsignal/integrations/grape.rb +2 -1
- data/lib/appsignal/integrations/net_http.rb +16 -0
- data/lib/appsignal/system.rb +6 -0
- data/lib/appsignal/transaction.rb +6 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/auth_check_spec.rb +1 -1
- data/spec/lib/appsignal/cli/diagnose_spec.rb +1 -1
- data/spec/lib/appsignal/integrations/grape_spec.rb +10 -0
- data/spec/lib/appsignal/system_spec.rb +36 -0
- data/spec/lib/appsignal/transaction_spec.rb +14 -1
- data/spec/lib/appsignal/transmitter_spec.rb +3 -1
- data/spec/spec_helper.rb +15 -1
- data/support/install_deps +4 -1
- metadata +18 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19641083f8c1891a4a882d2caf91c96062473f5e82d533d373b1b3aa73c3522b
|
|
4
|
+
data.tar.gz: 80397f1d4de60177e02fb171a3cc8db21b902a6e9f47e5fc2c5e8ec33bb24db5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ffda30941dc47a8d85b5f1a5fbce69930002aba927862776dea413e588f7a6a88683875edb9d9de3736f33eb7b169fc545066cc1d0d1baa62acd735df4c417a
|
|
7
|
+
data.tar.gz: e14a05c638b9d3ed4a9adbe6d4bb0715bd4f1e2123c0872bbc782826e3234c69c8a6643da1ec82642530a31139994d6ae99624694ae49bc66375004bebe00f60
|
data/.semaphore/semaphore.yml
CHANGED
|
@@ -33,14 +33,14 @@ global_job_config:
|
|
|
33
33
|
- checkout
|
|
34
34
|
- sem-version ruby $RUBY_VERSION
|
|
35
35
|
- "./support/check_versions"
|
|
36
|
-
- cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE),$_BUNDLER_CACHE-bundler-$RUBY_VERSION
|
|
36
|
+
- cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE),$_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET,$_BUNDLER_CACHE-bundler-$RUBY_VERSION
|
|
37
37
|
- cache restore $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE),$_GEMS_CACHE-gems-$RUBY_VERSION
|
|
38
38
|
- "./support/install_deps"
|
|
39
39
|
- "./support/bundler_wrapper install --jobs=3 --retry=3"
|
|
40
40
|
epilogue:
|
|
41
41
|
on_pass:
|
|
42
42
|
commands:
|
|
43
|
-
- cache store $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE)
|
|
43
|
+
- cache store $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE)
|
|
44
44
|
.bundle
|
|
45
45
|
- cache store $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE) $HOME/.gem
|
|
46
46
|
blocks:
|
|
@@ -52,6 +52,8 @@ blocks:
|
|
|
52
52
|
env_vars:
|
|
53
53
|
- name: RUBY_VERSION
|
|
54
54
|
value: 2.6.5
|
|
55
|
+
- name: GEMSET
|
|
56
|
+
value: no_dependencies
|
|
55
57
|
- name: BUNDLE_GEMFILE
|
|
56
58
|
value: gemfiles/no_dependencies.gemfile
|
|
57
59
|
commands:
|
|
@@ -64,10 +66,34 @@ blocks:
|
|
|
64
66
|
env_vars:
|
|
65
67
|
- name: RUBY_VERSION
|
|
66
68
|
value: 2.6.5
|
|
69
|
+
- name: GEMSET
|
|
70
|
+
value: no_dependencies
|
|
67
71
|
- name: BUNDLE_GEMFILE
|
|
68
72
|
value: gemfiles/no_dependencies.gemfile
|
|
69
73
|
commands:
|
|
70
74
|
- "./support/bundler_wrapper exec rubocop"
|
|
75
|
+
- name: Ruby 1.9.3-p551
|
|
76
|
+
dependencies:
|
|
77
|
+
- Validation
|
|
78
|
+
task:
|
|
79
|
+
prologue:
|
|
80
|
+
commands:
|
|
81
|
+
- "./support/bundler_wrapper exec rake extension:install"
|
|
82
|
+
jobs:
|
|
83
|
+
- name: Ruby 1.9.3-p551 for no_dependencies
|
|
84
|
+
env_vars:
|
|
85
|
+
- name: RUBY_VERSION
|
|
86
|
+
value: 1.9.3-p551
|
|
87
|
+
- name: GEMSET
|
|
88
|
+
value: no_dependencies
|
|
89
|
+
- name: BUNDLE_GEMFILE
|
|
90
|
+
value: gemfiles/no_dependencies.gemfile
|
|
91
|
+
- name: _RUBYGEMS_VERSION
|
|
92
|
+
value: 2.7.8
|
|
93
|
+
- name: _BUNDLER_VERSION
|
|
94
|
+
value: 1.17.3
|
|
95
|
+
commands:
|
|
96
|
+
- "./support/bundler_wrapper exec rake test"
|
|
71
97
|
- name: Ruby 2.0.0-p648
|
|
72
98
|
dependencies:
|
|
73
99
|
- Validation
|
|
@@ -80,6 +106,8 @@ blocks:
|
|
|
80
106
|
env_vars:
|
|
81
107
|
- name: RUBY_VERSION
|
|
82
108
|
value: 2.0.0-p648
|
|
109
|
+
- name: GEMSET
|
|
110
|
+
value: no_dependencies
|
|
83
111
|
- name: BUNDLE_GEMFILE
|
|
84
112
|
value: gemfiles/no_dependencies.gemfile
|
|
85
113
|
- name: _RUBYGEMS_VERSION
|
|
@@ -100,6 +128,8 @@ blocks:
|
|
|
100
128
|
env_vars:
|
|
101
129
|
- name: RUBY_VERSION
|
|
102
130
|
value: 2.0.0-p648
|
|
131
|
+
- name: GEMSET
|
|
132
|
+
value: capistrano2
|
|
103
133
|
- name: BUNDLE_GEMFILE
|
|
104
134
|
value: gemfiles/capistrano2.gemfile
|
|
105
135
|
- name: _RUBYGEMS_VERSION
|
|
@@ -112,6 +142,8 @@ blocks:
|
|
|
112
142
|
env_vars:
|
|
113
143
|
- name: RUBY_VERSION
|
|
114
144
|
value: 2.0.0-p648
|
|
145
|
+
- name: GEMSET
|
|
146
|
+
value: capistrano3
|
|
115
147
|
- name: BUNDLE_GEMFILE
|
|
116
148
|
value: gemfiles/capistrano3.gemfile
|
|
117
149
|
- name: _RUBYGEMS_VERSION
|
|
@@ -124,6 +156,8 @@ blocks:
|
|
|
124
156
|
env_vars:
|
|
125
157
|
- name: RUBY_VERSION
|
|
126
158
|
value: 2.0.0-p648
|
|
159
|
+
- name: GEMSET
|
|
160
|
+
value: grape
|
|
127
161
|
- name: BUNDLE_GEMFILE
|
|
128
162
|
value: gemfiles/grape.gemfile
|
|
129
163
|
- name: _RUBYGEMS_VERSION
|
|
@@ -136,6 +170,8 @@ blocks:
|
|
|
136
170
|
env_vars:
|
|
137
171
|
- name: RUBY_VERSION
|
|
138
172
|
value: 2.0.0-p648
|
|
173
|
+
- name: GEMSET
|
|
174
|
+
value: padrino
|
|
139
175
|
- name: BUNDLE_GEMFILE
|
|
140
176
|
value: gemfiles/padrino.gemfile
|
|
141
177
|
- name: _RUBYGEMS_VERSION
|
|
@@ -148,6 +184,8 @@ blocks:
|
|
|
148
184
|
env_vars:
|
|
149
185
|
- name: RUBY_VERSION
|
|
150
186
|
value: 2.0.0-p648
|
|
187
|
+
- name: GEMSET
|
|
188
|
+
value: que
|
|
151
189
|
- name: BUNDLE_GEMFILE
|
|
152
190
|
value: gemfiles/que.gemfile
|
|
153
191
|
- name: _RUBYGEMS_VERSION
|
|
@@ -160,6 +198,8 @@ blocks:
|
|
|
160
198
|
env_vars:
|
|
161
199
|
- name: RUBY_VERSION
|
|
162
200
|
value: 2.0.0-p648
|
|
201
|
+
- name: GEMSET
|
|
202
|
+
value: rails-3.2
|
|
163
203
|
- name: BUNDLE_GEMFILE
|
|
164
204
|
value: gemfiles/rails-3.2.gemfile
|
|
165
205
|
- name: _RUBYGEMS_VERSION
|
|
@@ -172,6 +212,8 @@ blocks:
|
|
|
172
212
|
env_vars:
|
|
173
213
|
- name: RUBY_VERSION
|
|
174
214
|
value: 2.0.0-p648
|
|
215
|
+
- name: GEMSET
|
|
216
|
+
value: rails-4.2
|
|
175
217
|
- name: BUNDLE_GEMFILE
|
|
176
218
|
value: gemfiles/rails-4.2.gemfile
|
|
177
219
|
- name: _RUBYGEMS_VERSION
|
|
@@ -184,6 +226,8 @@ blocks:
|
|
|
184
226
|
env_vars:
|
|
185
227
|
- name: RUBY_VERSION
|
|
186
228
|
value: 2.0.0-p648
|
|
229
|
+
- name: GEMSET
|
|
230
|
+
value: resque
|
|
187
231
|
- name: BUNDLE_GEMFILE
|
|
188
232
|
value: gemfiles/resque.gemfile
|
|
189
233
|
- name: _RUBYGEMS_VERSION
|
|
@@ -196,6 +240,8 @@ blocks:
|
|
|
196
240
|
env_vars:
|
|
197
241
|
- name: RUBY_VERSION
|
|
198
242
|
value: 2.0.0-p648
|
|
243
|
+
- name: GEMSET
|
|
244
|
+
value: sequel
|
|
199
245
|
- name: BUNDLE_GEMFILE
|
|
200
246
|
value: gemfiles/sequel.gemfile
|
|
201
247
|
- name: _RUBYGEMS_VERSION
|
|
@@ -208,6 +254,8 @@ blocks:
|
|
|
208
254
|
env_vars:
|
|
209
255
|
- name: RUBY_VERSION
|
|
210
256
|
value: 2.0.0-p648
|
|
257
|
+
- name: GEMSET
|
|
258
|
+
value: sequel-435
|
|
211
259
|
- name: BUNDLE_GEMFILE
|
|
212
260
|
value: gemfiles/sequel-435.gemfile
|
|
213
261
|
- name: _RUBYGEMS_VERSION
|
|
@@ -220,6 +268,8 @@ blocks:
|
|
|
220
268
|
env_vars:
|
|
221
269
|
- name: RUBY_VERSION
|
|
222
270
|
value: 2.0.0-p648
|
|
271
|
+
- name: GEMSET
|
|
272
|
+
value: sinatra
|
|
223
273
|
- name: BUNDLE_GEMFILE
|
|
224
274
|
value: gemfiles/sinatra.gemfile
|
|
225
275
|
- name: _RUBYGEMS_VERSION
|
|
@@ -232,6 +282,8 @@ blocks:
|
|
|
232
282
|
env_vars:
|
|
233
283
|
- name: RUBY_VERSION
|
|
234
284
|
value: 2.0.0-p648
|
|
285
|
+
- name: GEMSET
|
|
286
|
+
value: webmachine
|
|
235
287
|
- name: BUNDLE_GEMFILE
|
|
236
288
|
value: gemfiles/webmachine.gemfile
|
|
237
289
|
- name: _RUBYGEMS_VERSION
|
|
@@ -252,6 +304,8 @@ blocks:
|
|
|
252
304
|
env_vars:
|
|
253
305
|
- name: RUBY_VERSION
|
|
254
306
|
value: 2.1.10
|
|
307
|
+
- name: GEMSET
|
|
308
|
+
value: no_dependencies
|
|
255
309
|
- name: BUNDLE_GEMFILE
|
|
256
310
|
value: gemfiles/no_dependencies.gemfile
|
|
257
311
|
- name: _RUBYGEMS_VERSION
|
|
@@ -272,6 +326,8 @@ blocks:
|
|
|
272
326
|
env_vars:
|
|
273
327
|
- name: RUBY_VERSION
|
|
274
328
|
value: 2.2.10
|
|
329
|
+
- name: GEMSET
|
|
330
|
+
value: no_dependencies
|
|
275
331
|
- name: BUNDLE_GEMFILE
|
|
276
332
|
value: gemfiles/no_dependencies.gemfile
|
|
277
333
|
- name: _RUBYGEMS_VERSION
|
|
@@ -292,6 +348,8 @@ blocks:
|
|
|
292
348
|
env_vars:
|
|
293
349
|
- name: RUBY_VERSION
|
|
294
350
|
value: 2.3.8
|
|
351
|
+
- name: GEMSET
|
|
352
|
+
value: no_dependencies
|
|
295
353
|
- name: BUNDLE_GEMFILE
|
|
296
354
|
value: gemfiles/no_dependencies.gemfile
|
|
297
355
|
- name: _RUBYGEMS_VERSION
|
|
@@ -312,6 +370,8 @@ blocks:
|
|
|
312
370
|
env_vars:
|
|
313
371
|
- name: RUBY_VERSION
|
|
314
372
|
value: 2.4.9
|
|
373
|
+
- name: GEMSET
|
|
374
|
+
value: no_dependencies
|
|
315
375
|
- name: BUNDLE_GEMFILE
|
|
316
376
|
value: gemfiles/no_dependencies.gemfile
|
|
317
377
|
- name: _RUBYGEMS_VERSION
|
|
@@ -332,6 +392,8 @@ blocks:
|
|
|
332
392
|
env_vars:
|
|
333
393
|
- name: RUBY_VERSION
|
|
334
394
|
value: 2.5.7
|
|
395
|
+
- name: GEMSET
|
|
396
|
+
value: no_dependencies
|
|
335
397
|
- name: BUNDLE_GEMFILE
|
|
336
398
|
value: gemfiles/no_dependencies.gemfile
|
|
337
399
|
- name: _RUBYGEMS_VERSION
|
|
@@ -352,6 +414,8 @@ blocks:
|
|
|
352
414
|
env_vars:
|
|
353
415
|
- name: RUBY_VERSION
|
|
354
416
|
value: 2.5.7
|
|
417
|
+
- name: GEMSET
|
|
418
|
+
value: rails-5.2
|
|
355
419
|
- name: BUNDLE_GEMFILE
|
|
356
420
|
value: gemfiles/rails-5.2.gemfile
|
|
357
421
|
- name: _RUBYGEMS_VERSION
|
|
@@ -360,6 +424,20 @@ blocks:
|
|
|
360
424
|
value: latest
|
|
361
425
|
commands:
|
|
362
426
|
- "./support/bundler_wrapper exec rake test"
|
|
427
|
+
- name: Ruby 2.5.7 for rails-6.0
|
|
428
|
+
env_vars:
|
|
429
|
+
- name: RUBY_VERSION
|
|
430
|
+
value: 2.5.7
|
|
431
|
+
- name: GEMSET
|
|
432
|
+
value: rails-6.0
|
|
433
|
+
- name: BUNDLE_GEMFILE
|
|
434
|
+
value: gemfiles/rails-6.0.gemfile
|
|
435
|
+
- name: _RUBYGEMS_VERSION
|
|
436
|
+
value: latest
|
|
437
|
+
- name: _BUNDLER_VERSION
|
|
438
|
+
value: latest
|
|
439
|
+
commands:
|
|
440
|
+
- "./support/bundler_wrapper exec rake test"
|
|
363
441
|
- name: Ruby 2.6.5
|
|
364
442
|
dependencies:
|
|
365
443
|
- Validation
|
|
@@ -372,6 +450,8 @@ blocks:
|
|
|
372
450
|
env_vars:
|
|
373
451
|
- name: RUBY_VERSION
|
|
374
452
|
value: 2.6.5
|
|
453
|
+
- name: GEMSET
|
|
454
|
+
value: no_dependencies
|
|
375
455
|
- name: BUNDLE_GEMFILE
|
|
376
456
|
value: gemfiles/no_dependencies.gemfile
|
|
377
457
|
- name: _RUBYGEMS_VERSION
|
|
@@ -392,6 +472,8 @@ blocks:
|
|
|
392
472
|
env_vars:
|
|
393
473
|
- name: RUBY_VERSION
|
|
394
474
|
value: 2.6.5
|
|
475
|
+
- name: GEMSET
|
|
476
|
+
value: capistrano2
|
|
395
477
|
- name: BUNDLE_GEMFILE
|
|
396
478
|
value: gemfiles/capistrano2.gemfile
|
|
397
479
|
- name: _RUBYGEMS_VERSION
|
|
@@ -404,6 +486,8 @@ blocks:
|
|
|
404
486
|
env_vars:
|
|
405
487
|
- name: RUBY_VERSION
|
|
406
488
|
value: 2.6.5
|
|
489
|
+
- name: GEMSET
|
|
490
|
+
value: capistrano3
|
|
407
491
|
- name: BUNDLE_GEMFILE
|
|
408
492
|
value: gemfiles/capistrano3.gemfile
|
|
409
493
|
- name: _RUBYGEMS_VERSION
|
|
@@ -416,6 +500,8 @@ blocks:
|
|
|
416
500
|
env_vars:
|
|
417
501
|
- name: RUBY_VERSION
|
|
418
502
|
value: 2.6.5
|
|
503
|
+
- name: GEMSET
|
|
504
|
+
value: grape
|
|
419
505
|
- name: BUNDLE_GEMFILE
|
|
420
506
|
value: gemfiles/grape.gemfile
|
|
421
507
|
- name: _RUBYGEMS_VERSION
|
|
@@ -428,6 +514,8 @@ blocks:
|
|
|
428
514
|
env_vars:
|
|
429
515
|
- name: RUBY_VERSION
|
|
430
516
|
value: 2.6.5
|
|
517
|
+
- name: GEMSET
|
|
518
|
+
value: padrino
|
|
431
519
|
- name: BUNDLE_GEMFILE
|
|
432
520
|
value: gemfiles/padrino.gemfile
|
|
433
521
|
- name: _RUBYGEMS_VERSION
|
|
@@ -440,6 +528,8 @@ blocks:
|
|
|
440
528
|
env_vars:
|
|
441
529
|
- name: RUBY_VERSION
|
|
442
530
|
value: 2.6.5
|
|
531
|
+
- name: GEMSET
|
|
532
|
+
value: que
|
|
443
533
|
- name: BUNDLE_GEMFILE
|
|
444
534
|
value: gemfiles/que.gemfile
|
|
445
535
|
- name: _RUBYGEMS_VERSION
|
|
@@ -452,6 +542,8 @@ blocks:
|
|
|
452
542
|
env_vars:
|
|
453
543
|
- name: RUBY_VERSION
|
|
454
544
|
value: 2.6.5
|
|
545
|
+
- name: GEMSET
|
|
546
|
+
value: que_beta
|
|
455
547
|
- name: BUNDLE_GEMFILE
|
|
456
548
|
value: gemfiles/que_beta.gemfile
|
|
457
549
|
- name: _RUBYGEMS_VERSION
|
|
@@ -464,6 +556,8 @@ blocks:
|
|
|
464
556
|
env_vars:
|
|
465
557
|
- name: RUBY_VERSION
|
|
466
558
|
value: 2.6.5
|
|
559
|
+
- name: GEMSET
|
|
560
|
+
value: rails-5.0
|
|
467
561
|
- name: BUNDLE_GEMFILE
|
|
468
562
|
value: gemfiles/rails-5.0.gemfile
|
|
469
563
|
- name: _RUBYGEMS_VERSION
|
|
@@ -476,6 +570,8 @@ blocks:
|
|
|
476
570
|
env_vars:
|
|
477
571
|
- name: RUBY_VERSION
|
|
478
572
|
value: 2.6.5
|
|
573
|
+
- name: GEMSET
|
|
574
|
+
value: rails-5.1
|
|
479
575
|
- name: BUNDLE_GEMFILE
|
|
480
576
|
value: gemfiles/rails-5.1.gemfile
|
|
481
577
|
- name: _RUBYGEMS_VERSION
|
|
@@ -488,6 +584,8 @@ blocks:
|
|
|
488
584
|
env_vars:
|
|
489
585
|
- name: RUBY_VERSION
|
|
490
586
|
value: 2.6.5
|
|
587
|
+
- name: GEMSET
|
|
588
|
+
value: rails-5.2
|
|
491
589
|
- name: BUNDLE_GEMFILE
|
|
492
590
|
value: gemfiles/rails-5.2.gemfile
|
|
493
591
|
- name: _RUBYGEMS_VERSION
|
|
@@ -500,6 +598,8 @@ blocks:
|
|
|
500
598
|
env_vars:
|
|
501
599
|
- name: RUBY_VERSION
|
|
502
600
|
value: 2.6.5
|
|
601
|
+
- name: GEMSET
|
|
602
|
+
value: rails-6.0
|
|
503
603
|
- name: BUNDLE_GEMFILE
|
|
504
604
|
value: gemfiles/rails-6.0.gemfile
|
|
505
605
|
- name: _RUBYGEMS_VERSION
|
|
@@ -512,6 +612,8 @@ blocks:
|
|
|
512
612
|
env_vars:
|
|
513
613
|
- name: RUBY_VERSION
|
|
514
614
|
value: 2.6.5
|
|
615
|
+
- name: GEMSET
|
|
616
|
+
value: resque
|
|
515
617
|
- name: BUNDLE_GEMFILE
|
|
516
618
|
value: gemfiles/resque.gemfile
|
|
517
619
|
- name: _RUBYGEMS_VERSION
|
|
@@ -524,6 +626,8 @@ blocks:
|
|
|
524
626
|
env_vars:
|
|
525
627
|
- name: RUBY_VERSION
|
|
526
628
|
value: 2.6.5
|
|
629
|
+
- name: GEMSET
|
|
630
|
+
value: sequel
|
|
527
631
|
- name: BUNDLE_GEMFILE
|
|
528
632
|
value: gemfiles/sequel.gemfile
|
|
529
633
|
- name: _RUBYGEMS_VERSION
|
|
@@ -536,6 +640,8 @@ blocks:
|
|
|
536
640
|
env_vars:
|
|
537
641
|
- name: RUBY_VERSION
|
|
538
642
|
value: 2.6.5
|
|
643
|
+
- name: GEMSET
|
|
644
|
+
value: sequel-435
|
|
539
645
|
- name: BUNDLE_GEMFILE
|
|
540
646
|
value: gemfiles/sequel-435.gemfile
|
|
541
647
|
- name: _RUBYGEMS_VERSION
|
|
@@ -548,6 +654,8 @@ blocks:
|
|
|
548
654
|
env_vars:
|
|
549
655
|
- name: RUBY_VERSION
|
|
550
656
|
value: 2.6.5
|
|
657
|
+
- name: GEMSET
|
|
658
|
+
value: sinatra
|
|
551
659
|
- name: BUNDLE_GEMFILE
|
|
552
660
|
value: gemfiles/sinatra.gemfile
|
|
553
661
|
- name: _RUBYGEMS_VERSION
|
|
@@ -560,6 +668,8 @@ blocks:
|
|
|
560
668
|
env_vars:
|
|
561
669
|
- name: RUBY_VERSION
|
|
562
670
|
value: 2.6.5
|
|
671
|
+
- name: GEMSET
|
|
672
|
+
value: webmachine
|
|
563
673
|
- name: BUNDLE_GEMFILE
|
|
564
674
|
value: gemfiles/webmachine.gemfile
|
|
565
675
|
- name: _RUBYGEMS_VERSION
|
|
@@ -580,6 +690,8 @@ blocks:
|
|
|
580
690
|
env_vars:
|
|
581
691
|
- name: RUBY_VERSION
|
|
582
692
|
value: 2.7.0
|
|
693
|
+
- name: GEMSET
|
|
694
|
+
value: no_dependencies
|
|
583
695
|
- name: BUNDLE_GEMFILE
|
|
584
696
|
value: gemfiles/no_dependencies.gemfile
|
|
585
697
|
- name: _RUBYGEMS_VERSION
|
|
@@ -600,6 +712,8 @@ blocks:
|
|
|
600
712
|
env_vars:
|
|
601
713
|
- name: RUBY_VERSION
|
|
602
714
|
value: 2.7.0
|
|
715
|
+
- name: GEMSET
|
|
716
|
+
value: capistrano2
|
|
603
717
|
- name: BUNDLE_GEMFILE
|
|
604
718
|
value: gemfiles/capistrano2.gemfile
|
|
605
719
|
- name: _RUBYGEMS_VERSION
|
|
@@ -612,6 +726,8 @@ blocks:
|
|
|
612
726
|
env_vars:
|
|
613
727
|
- name: RUBY_VERSION
|
|
614
728
|
value: 2.7.0
|
|
729
|
+
- name: GEMSET
|
|
730
|
+
value: capistrano3
|
|
615
731
|
- name: BUNDLE_GEMFILE
|
|
616
732
|
value: gemfiles/capistrano3.gemfile
|
|
617
733
|
- name: _RUBYGEMS_VERSION
|
|
@@ -624,6 +740,8 @@ blocks:
|
|
|
624
740
|
env_vars:
|
|
625
741
|
- name: RUBY_VERSION
|
|
626
742
|
value: 2.7.0
|
|
743
|
+
- name: GEMSET
|
|
744
|
+
value: grape
|
|
627
745
|
- name: BUNDLE_GEMFILE
|
|
628
746
|
value: gemfiles/grape.gemfile
|
|
629
747
|
- name: _RUBYGEMS_VERSION
|
|
@@ -636,6 +754,8 @@ blocks:
|
|
|
636
754
|
env_vars:
|
|
637
755
|
- name: RUBY_VERSION
|
|
638
756
|
value: 2.7.0
|
|
757
|
+
- name: GEMSET
|
|
758
|
+
value: padrino
|
|
639
759
|
- name: BUNDLE_GEMFILE
|
|
640
760
|
value: gemfiles/padrino.gemfile
|
|
641
761
|
- name: _RUBYGEMS_VERSION
|
|
@@ -648,6 +768,8 @@ blocks:
|
|
|
648
768
|
env_vars:
|
|
649
769
|
- name: RUBY_VERSION
|
|
650
770
|
value: 2.7.0
|
|
771
|
+
- name: GEMSET
|
|
772
|
+
value: que
|
|
651
773
|
- name: BUNDLE_GEMFILE
|
|
652
774
|
value: gemfiles/que.gemfile
|
|
653
775
|
- name: _RUBYGEMS_VERSION
|
|
@@ -660,6 +782,8 @@ blocks:
|
|
|
660
782
|
env_vars:
|
|
661
783
|
- name: RUBY_VERSION
|
|
662
784
|
value: 2.7.0
|
|
785
|
+
- name: GEMSET
|
|
786
|
+
value: que_beta
|
|
663
787
|
- name: BUNDLE_GEMFILE
|
|
664
788
|
value: gemfiles/que_beta.gemfile
|
|
665
789
|
- name: _RUBYGEMS_VERSION
|
|
@@ -672,6 +796,8 @@ blocks:
|
|
|
672
796
|
env_vars:
|
|
673
797
|
- name: RUBY_VERSION
|
|
674
798
|
value: 2.7.0
|
|
799
|
+
- name: GEMSET
|
|
800
|
+
value: rails-5.0
|
|
675
801
|
- name: BUNDLE_GEMFILE
|
|
676
802
|
value: gemfiles/rails-5.0.gemfile
|
|
677
803
|
- name: _RUBYGEMS_VERSION
|
|
@@ -684,6 +810,8 @@ blocks:
|
|
|
684
810
|
env_vars:
|
|
685
811
|
- name: RUBY_VERSION
|
|
686
812
|
value: 2.7.0
|
|
813
|
+
- name: GEMSET
|
|
814
|
+
value: rails-5.1
|
|
687
815
|
- name: BUNDLE_GEMFILE
|
|
688
816
|
value: gemfiles/rails-5.1.gemfile
|
|
689
817
|
- name: _RUBYGEMS_VERSION
|
|
@@ -696,6 +824,8 @@ blocks:
|
|
|
696
824
|
env_vars:
|
|
697
825
|
- name: RUBY_VERSION
|
|
698
826
|
value: 2.7.0
|
|
827
|
+
- name: GEMSET
|
|
828
|
+
value: rails-5.2
|
|
699
829
|
- name: BUNDLE_GEMFILE
|
|
700
830
|
value: gemfiles/rails-5.2.gemfile
|
|
701
831
|
- name: _RUBYGEMS_VERSION
|
|
@@ -708,6 +838,8 @@ blocks:
|
|
|
708
838
|
env_vars:
|
|
709
839
|
- name: RUBY_VERSION
|
|
710
840
|
value: 2.7.0
|
|
841
|
+
- name: GEMSET
|
|
842
|
+
value: rails-6.0
|
|
711
843
|
- name: BUNDLE_GEMFILE
|
|
712
844
|
value: gemfiles/rails-6.0.gemfile
|
|
713
845
|
- name: _RUBYGEMS_VERSION
|
|
@@ -720,6 +852,8 @@ blocks:
|
|
|
720
852
|
env_vars:
|
|
721
853
|
- name: RUBY_VERSION
|
|
722
854
|
value: 2.7.0
|
|
855
|
+
- name: GEMSET
|
|
856
|
+
value: resque
|
|
723
857
|
- name: BUNDLE_GEMFILE
|
|
724
858
|
value: gemfiles/resque.gemfile
|
|
725
859
|
- name: _RUBYGEMS_VERSION
|
|
@@ -732,6 +866,8 @@ blocks:
|
|
|
732
866
|
env_vars:
|
|
733
867
|
- name: RUBY_VERSION
|
|
734
868
|
value: 2.7.0
|
|
869
|
+
- name: GEMSET
|
|
870
|
+
value: sequel
|
|
735
871
|
- name: BUNDLE_GEMFILE
|
|
736
872
|
value: gemfiles/sequel.gemfile
|
|
737
873
|
- name: _RUBYGEMS_VERSION
|
|
@@ -744,6 +880,8 @@ blocks:
|
|
|
744
880
|
env_vars:
|
|
745
881
|
- name: RUBY_VERSION
|
|
746
882
|
value: 2.7.0
|
|
883
|
+
- name: GEMSET
|
|
884
|
+
value: sequel-435
|
|
747
885
|
- name: BUNDLE_GEMFILE
|
|
748
886
|
value: gemfiles/sequel-435.gemfile
|
|
749
887
|
- name: _RUBYGEMS_VERSION
|
|
@@ -756,6 +894,8 @@ blocks:
|
|
|
756
894
|
env_vars:
|
|
757
895
|
- name: RUBY_VERSION
|
|
758
896
|
value: 2.7.0
|
|
897
|
+
- name: GEMSET
|
|
898
|
+
value: sinatra
|
|
759
899
|
- name: BUNDLE_GEMFILE
|
|
760
900
|
value: gemfiles/sinatra.gemfile
|
|
761
901
|
- name: _RUBYGEMS_VERSION
|
|
@@ -768,6 +908,8 @@ blocks:
|
|
|
768
908
|
env_vars:
|
|
769
909
|
- name: RUBY_VERSION
|
|
770
910
|
value: 2.7.0
|
|
911
|
+
- name: GEMSET
|
|
912
|
+
value: webmachine
|
|
771
913
|
- name: BUNDLE_GEMFILE
|
|
772
914
|
value: gemfiles/webmachine.gemfile
|
|
773
915
|
- name: _RUBYGEMS_VERSION
|
|
@@ -788,6 +930,8 @@ blocks:
|
|
|
788
930
|
env_vars:
|
|
789
931
|
- name: RUBY_VERSION
|
|
790
932
|
value: jruby-9.1.17.0
|
|
933
|
+
- name: GEMSET
|
|
934
|
+
value: no_dependencies
|
|
791
935
|
- name: BUNDLE_GEMFILE
|
|
792
936
|
value: gemfiles/no_dependencies.gemfile
|
|
793
937
|
- name: _RUBYGEMS_VERSION
|
|
@@ -808,6 +952,8 @@ blocks:
|
|
|
808
952
|
env_vars:
|
|
809
953
|
- name: RUBY_VERSION
|
|
810
954
|
value: jruby-9.1.17.0
|
|
955
|
+
- name: GEMSET
|
|
956
|
+
value: rails-5.2
|
|
811
957
|
- name: BUNDLE_GEMFILE
|
|
812
958
|
value: gemfiles/rails-5.2.gemfile
|
|
813
959
|
- name: _RUBYGEMS_VERSION
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.10.5
|
|
4
|
+
- Improve Ruby 1.9 compatibility. PR #591
|
|
5
|
+
- Add grape.skip_appsignal_error request env. PR #588
|
|
6
|
+
More information: https://docs.appsignal.com/ruby/integrations/grape.html
|
|
7
|
+
- Fix compatibility with the `http_logger` gem. Fix `SystemStackError`. PR #597
|
|
8
|
+
|
|
3
9
|
## 2.10.4
|
|
4
10
|
- Fix `Appsignal::Transaction#set_http_or_background_action` helper (used by
|
|
5
11
|
`Appsignal.monitor_transaction`), to allow overwriting the action name of a
|
data/Rakefile
CHANGED
|
@@ -59,6 +59,7 @@ namespace :build_matrix do
|
|
|
59
59
|
|
|
60
60
|
env = [
|
|
61
61
|
env_map("RUBY_VERSION", ruby_version),
|
|
62
|
+
env_map("GEMSET", gem["gem"]),
|
|
62
63
|
env_map("BUNDLE_GEMFILE", "gemfiles/#{gem["gem"]}.gemfile")
|
|
63
64
|
]
|
|
64
65
|
rubygems = gem["rubygems"] || ruby["rubygems"] || defaults["rubygems"]
|
|
@@ -364,7 +365,12 @@ end
|
|
|
364
365
|
begin
|
|
365
366
|
require "rspec/core/rake_task"
|
|
366
367
|
desc "Run the AppSignal gem test suite."
|
|
367
|
-
RSpec::Core::RakeTask.new :test
|
|
368
|
+
RSpec::Core::RakeTask.new :test do |t|
|
|
369
|
+
is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
|
|
370
|
+
unless is_jruby
|
|
371
|
+
t.rspec_opts = "--exclude-pattern=spec/lib/appsignal/extension/jruby_spec.rb"
|
|
372
|
+
end
|
|
373
|
+
end
|
|
368
374
|
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
|
369
375
|
# When running rake install, there is no RSpec yet.
|
|
370
376
|
end
|
data/appsignal.gemspec
CHANGED
|
@@ -39,9 +39,12 @@ Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength
|
|
|
39
39
|
|
|
40
40
|
gem.add_development_dependency "rake", "~> 11"
|
|
41
41
|
gem.add_development_dependency "rspec", "~> 3.8"
|
|
42
|
-
gem.add_development_dependency "pry"
|
|
43
42
|
gem.add_development_dependency "timecop"
|
|
44
43
|
gem.add_development_dependency "webmock"
|
|
45
|
-
gem.add_development_dependency "rubocop", "0.50.0"
|
|
46
44
|
gem.add_development_dependency "yard", ">= 0.9.20"
|
|
45
|
+
is_modern_ruby = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.0.0")
|
|
46
|
+
if is_modern_ruby
|
|
47
|
+
gem.add_development_dependency "pry"
|
|
48
|
+
gem.add_development_dependency "rubocop", "0.50.0"
|
|
49
|
+
end
|
|
47
50
|
end
|
data/build_matrix.yml
CHANGED
|
@@ -34,14 +34,14 @@ semaphore: # Default `.semaphore/semaphore.yml` contents
|
|
|
34
34
|
- checkout
|
|
35
35
|
- sem-version ruby $RUBY_VERSION
|
|
36
36
|
- ./support/check_versions
|
|
37
|
-
- cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE),$_BUNDLER_CACHE-bundler-$RUBY_VERSION
|
|
37
|
+
- cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE),$_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET,$_BUNDLER_CACHE-bundler-$RUBY_VERSION
|
|
38
38
|
- cache restore $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE),$_GEMS_CACHE-gems-$RUBY_VERSION
|
|
39
39
|
- ./support/install_deps
|
|
40
40
|
- ./support/bundler_wrapper install --jobs=3 --retry=3
|
|
41
41
|
epilogue:
|
|
42
42
|
on_pass:
|
|
43
43
|
commands:
|
|
44
|
-
- cache store $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE) .bundle
|
|
44
|
+
- cache store $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE) .bundle
|
|
45
45
|
- cache store $_GEMS_CACHE-gems-$RUBY_VERSION-$(checksum $BUNDLE_GEMFILE) $HOME/.gem
|
|
46
46
|
|
|
47
47
|
blocks:
|
|
@@ -53,6 +53,8 @@ semaphore: # Default `.semaphore/semaphore.yml` contents
|
|
|
53
53
|
env_vars:
|
|
54
54
|
- name: RUBY_VERSION
|
|
55
55
|
value: 2.6.5
|
|
56
|
+
- name: GEMSET
|
|
57
|
+
value: no_dependencies
|
|
56
58
|
- name: BUNDLE_GEMFILE
|
|
57
59
|
value: gemfiles/no_dependencies.gemfile
|
|
58
60
|
commands:
|
|
@@ -65,6 +67,8 @@ semaphore: # Default `.semaphore/semaphore.yml` contents
|
|
|
65
67
|
env_vars:
|
|
66
68
|
- name: RUBY_VERSION
|
|
67
69
|
value: 2.6.5
|
|
70
|
+
- name: GEMSET
|
|
71
|
+
value: no_dependencies
|
|
68
72
|
- name: BUNDLE_GEMFILE
|
|
69
73
|
value: gemfiles/no_dependencies.gemfile
|
|
70
74
|
commands:
|
|
@@ -81,8 +85,13 @@ matrix:
|
|
|
81
85
|
minimal:
|
|
82
86
|
- "no_dependencies"
|
|
83
87
|
- "rails-5.2"
|
|
88
|
+
- "rails-6.0"
|
|
84
89
|
|
|
85
90
|
ruby:
|
|
91
|
+
- ruby: "1.9.3-p551"
|
|
92
|
+
rubygems: "2.7.8"
|
|
93
|
+
bundler: "1.17.3"
|
|
94
|
+
gems: "none"
|
|
86
95
|
- ruby: "2.0.0-p648"
|
|
87
96
|
rubygems: "2.7.8"
|
|
88
97
|
bundler: "1.17.3"
|
|
@@ -148,6 +157,7 @@ matrix:
|
|
|
148
157
|
- "2.2.10"
|
|
149
158
|
- "2.3.8"
|
|
150
159
|
- "2.4.9"
|
|
160
|
+
- "jruby-9.1.17.0"
|
|
151
161
|
- gem: "resque"
|
|
152
162
|
bundler: "1.17.3"
|
|
153
163
|
- gem: "sequel"
|
|
@@ -337,7 +337,7 @@ module Appsignal
|
|
|
337
337
|
path = File.expand_path("../../../../ext/install.report", __FILE__)
|
|
338
338
|
raw_report = File.read(path)
|
|
339
339
|
Utils.parse_yaml(raw_report)
|
|
340
|
-
rescue => e
|
|
340
|
+
rescue StandardError, Psych::SyntaxError => e # rubocop:disable Lint/ShadowedException
|
|
341
341
|
{
|
|
342
342
|
"parsing_error" => {
|
|
343
343
|
"error" => "#{e.class}: #{e}",
|
|
@@ -13,15 +13,20 @@ module Appsignal
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def install
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
if Appsignal::System.ruby_2_or_up?
|
|
17
|
+
require "appsignal/integrations/net_http"
|
|
18
|
+
Net::HTTP.send(:prepend, Appsignal::Integrations::NetHttpIntegration)
|
|
19
|
+
else
|
|
20
|
+
Net::HTTP.class_eval do
|
|
21
|
+
alias request_without_appsignal request
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
def request(request, body = nil, &block)
|
|
24
|
+
Appsignal.instrument(
|
|
25
|
+
"request.net_http",
|
|
26
|
+
"#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
|
|
27
|
+
) do
|
|
28
|
+
request_without_appsignal(request, body, &block)
|
|
29
|
+
end
|
|
25
30
|
end
|
|
26
31
|
end
|
|
27
32
|
end
|
|
@@ -23,7 +23,8 @@ module Appsignal
|
|
|
23
23
|
begin
|
|
24
24
|
app.call(env)
|
|
25
25
|
rescue Exception => error # rubocop:disable Lint/RescueException
|
|
26
|
-
|
|
26
|
+
# Do not set error if "grape.skip_appsignal_error" is set to `true`.
|
|
27
|
+
transaction.set_error(error) unless env["grape.skip_appsignal_error"]
|
|
27
28
|
raise error
|
|
28
29
|
ensure
|
|
29
30
|
request_method = request.request_method.to_s.upcase
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Appsignal
|
|
4
|
+
module Integrations
|
|
5
|
+
module NetHttpIntegration
|
|
6
|
+
def request(request, body = nil, &block)
|
|
7
|
+
Appsignal.instrument(
|
|
8
|
+
"request.net_http",
|
|
9
|
+
"#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
|
|
10
|
+
) do
|
|
11
|
+
super
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/appsignal/system.rb
CHANGED
|
@@ -76,8 +76,14 @@ module Appsignal
|
|
|
76
76
|
ldd_version && ldd_version[0]
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
# @api private
|
|
79
80
|
def self.jruby?
|
|
80
81
|
RUBY_PLATFORM == "java"
|
|
81
82
|
end
|
|
83
|
+
|
|
84
|
+
# @api private
|
|
85
|
+
def self.ruby_2_or_up?
|
|
86
|
+
versionify(RUBY_VERSION) >= versionify("2.0")
|
|
87
|
+
end
|
|
82
88
|
end
|
|
83
89
|
end
|
|
@@ -248,7 +248,12 @@ module Appsignal
|
|
|
248
248
|
Appsignal::Utils::Data.generate(data)
|
|
249
249
|
)
|
|
250
250
|
rescue RuntimeError => e
|
|
251
|
-
|
|
251
|
+
begin
|
|
252
|
+
inspected_data = data.inspect
|
|
253
|
+
Appsignal.logger.error("Error generating data (#{e.class}: #{e.message}) for '#{inspected_data}'")
|
|
254
|
+
rescue => e
|
|
255
|
+
Appsignal.logger.error("Error generating data (#{e.class}: #{e.message}). Can't inspect data.")
|
|
256
|
+
end
|
|
252
257
|
end
|
|
253
258
|
|
|
254
259
|
def sample_data
|
data/lib/appsignal/version.rb
CHANGED
|
@@ -38,7 +38,7 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
38
38
|
# Because this is saved on the class rather than an instance of the
|
|
39
39
|
# class we need to clear it like this in case a certain test doesn't
|
|
40
40
|
# generate a report.
|
|
41
|
-
cli_class.remove_instance_variable :@data
|
|
41
|
+
cli_class.send :remove_instance_variable, :@data
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
if DependencyHelper.rails_present?
|
|
@@ -93,6 +93,16 @@ if DependencyHelper.grape_present?
|
|
|
93
93
|
expect(transaction).to receive(:set_error).with(kind_of(ExampleException))
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
context "with env['grape.skip_appsignal_error'] = true" do
|
|
97
|
+
before do
|
|
98
|
+
env["grape.skip_appsignal_error"] = true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
it "does not add the error" do
|
|
102
|
+
expect(transaction).to_not receive(:set_error)
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
96
106
|
after do
|
|
97
107
|
expect { middleware.call(env) }.to raise_error ExampleException
|
|
98
108
|
end
|
|
@@ -93,4 +93,40 @@ describe Appsignal::System do
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
|
+
|
|
97
|
+
describe ".ruby_2_or_up?" do
|
|
98
|
+
around do |example|
|
|
99
|
+
original_ruby_version = RUBY_VERSION
|
|
100
|
+
Object.send(:remove_const, "RUBY_VERSION")
|
|
101
|
+
Object.const_set("RUBY_VERSION", ruby_version)
|
|
102
|
+
example.run
|
|
103
|
+
Object.send(:remove_const, "RUBY_VERSION")
|
|
104
|
+
Object.const_set("RUBY_VERSION", original_ruby_version)
|
|
105
|
+
end
|
|
106
|
+
subject { described_class.ruby_2_or_up? }
|
|
107
|
+
|
|
108
|
+
context "when on Ruby 1.9" do
|
|
109
|
+
let(:ruby_version) { "1.9.3-p533" }
|
|
110
|
+
|
|
111
|
+
it "returns false" do
|
|
112
|
+
is_expected.to be(false)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
context "when on Ruby 2.0" do
|
|
117
|
+
let(:ruby_version) { "2.0.0" }
|
|
118
|
+
|
|
119
|
+
it "returns true" do
|
|
120
|
+
is_expected.to be(true)
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
context "when on Ruby 2.x" do
|
|
125
|
+
let(:ruby_version) { "2.1.0" }
|
|
126
|
+
|
|
127
|
+
it "returns true" do
|
|
128
|
+
is_expected.to be(true)
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
96
132
|
end
|
|
@@ -574,7 +574,7 @@ describe Appsignal::Transaction do
|
|
|
574
574
|
end
|
|
575
575
|
|
|
576
576
|
context "when the data cannot be converted to JSON" do
|
|
577
|
-
it "does not update the sample data on the transaction" do
|
|
577
|
+
it "does not update the sample data on the transaction", :not_ruby19 do
|
|
578
578
|
klass = Class.new do
|
|
579
579
|
def to_s
|
|
580
580
|
raise "foo" # Cause a deliberate error
|
|
@@ -586,6 +586,19 @@ describe Appsignal::Transaction do
|
|
|
586
586
|
expect(log_contents(log)).to contains_log :error,
|
|
587
587
|
"Error generating data (RuntimeError: foo) for"
|
|
588
588
|
end
|
|
589
|
+
|
|
590
|
+
it "does not update the sample data on the transaction", :only_ruby19 do
|
|
591
|
+
klass = Class.new do
|
|
592
|
+
def to_s
|
|
593
|
+
raise "foo" # Cause a deliberate error
|
|
594
|
+
end
|
|
595
|
+
end
|
|
596
|
+
transaction.set_sample_data("params", klass.new => 1)
|
|
597
|
+
|
|
598
|
+
expect(transaction.to_h["sample_data"]).to eq({})
|
|
599
|
+
expect(log_contents(log)).to contains_log :error,
|
|
600
|
+
"Error generating data (RuntimeError: foo). Can't inspect data."
|
|
601
|
+
end
|
|
589
602
|
end
|
|
590
603
|
end
|
|
591
604
|
|
|
@@ -143,7 +143,9 @@ describe Appsignal::Transmitter do
|
|
|
143
143
|
context "with a proxy" do
|
|
144
144
|
let(:config) { project_fixture_config("production", :http_proxy => "http://localhost:8080") }
|
|
145
145
|
|
|
146
|
-
it
|
|
146
|
+
it "is of Net::HTTP class", :not_ruby19 do
|
|
147
|
+
expect(subject).to be_instance_of(Net::HTTP)
|
|
148
|
+
end
|
|
147
149
|
it { expect(subject.proxy?).to be_truthy }
|
|
148
150
|
it { expect(subject.proxy_address).to eq "localhost" }
|
|
149
151
|
it { expect(subject.proxy_port).to eq 8080 }
|
data/spec/spec_helper.rb
CHANGED
|
@@ -9,7 +9,6 @@ Bundler.require :default
|
|
|
9
9
|
require "cgi"
|
|
10
10
|
require "rack"
|
|
11
11
|
require "rspec"
|
|
12
|
-
require "pry"
|
|
13
12
|
require "timecop"
|
|
14
13
|
require "webmock/rspec"
|
|
15
14
|
|
|
@@ -30,6 +29,7 @@ if DependencyHelper.rails_present?
|
|
|
30
29
|
require f
|
|
31
30
|
end
|
|
32
31
|
end
|
|
32
|
+
require "pry" if DependencyHelper.dependency_present?("pry")
|
|
33
33
|
require "appsignal"
|
|
34
34
|
# Include patches of AppSignal modules and classes to make test helpers
|
|
35
35
|
# available.
|
|
@@ -81,6 +81,20 @@ RSpec.configure do |config|
|
|
|
81
81
|
FileUtils.mkdir_p(spec_system_tmp_dir)
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
config.before :each, :only_ruby19 => true do
|
|
85
|
+
is_ruby19 = Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.0.0")
|
|
86
|
+
next if is_ruby19
|
|
87
|
+
|
|
88
|
+
skip "Skipping spec. Only for Ruby 1.9"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
config.before :each, :not_ruby19 => true do
|
|
92
|
+
is_ruby19 = Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.0.0")
|
|
93
|
+
next unless is_ruby19
|
|
94
|
+
|
|
95
|
+
skip "Skipping spec for Ruby 1.9"
|
|
96
|
+
end
|
|
97
|
+
|
|
84
98
|
config.before do
|
|
85
99
|
stop_minutely_probes
|
|
86
100
|
ENV["RAILS_ENV"] ||= "test"
|
data/support/install_deps
CHANGED
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.10.
|
|
4
|
+
version: 2.10.5
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Beekman
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2020-
|
|
13
|
+
date: 2020-04-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rack
|
|
@@ -55,7 +55,7 @@ dependencies:
|
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
56
|
version: '3.8'
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
|
-
name:
|
|
58
|
+
name: timecop
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - ">="
|
|
@@ -69,7 +69,7 @@ dependencies:
|
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
70
|
version: '0'
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
72
|
-
name:
|
|
72
|
+
name: webmock
|
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
|
75
75
|
- - ">="
|
|
@@ -83,47 +83,47 @@ dependencies:
|
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
84
|
version: '0'
|
|
85
85
|
- !ruby/object:Gem::Dependency
|
|
86
|
-
name:
|
|
86
|
+
name: yard
|
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
|
88
88
|
requirements:
|
|
89
89
|
- - ">="
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
|
-
version:
|
|
91
|
+
version: 0.9.20
|
|
92
92
|
type: :development
|
|
93
93
|
prerelease: false
|
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
|
95
95
|
requirements:
|
|
96
96
|
- - ">="
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
|
-
version:
|
|
98
|
+
version: 0.9.20
|
|
99
99
|
- !ruby/object:Gem::Dependency
|
|
100
|
-
name:
|
|
100
|
+
name: pry
|
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
|
-
- -
|
|
103
|
+
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: 0
|
|
105
|
+
version: '0'
|
|
106
106
|
type: :development
|
|
107
107
|
prerelease: false
|
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
|
110
|
-
- -
|
|
110
|
+
- - ">="
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: 0
|
|
112
|
+
version: '0'
|
|
113
113
|
- !ruby/object:Gem::Dependency
|
|
114
|
-
name:
|
|
114
|
+
name: rubocop
|
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
|
116
116
|
requirements:
|
|
117
|
-
- -
|
|
117
|
+
- - '='
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
|
-
version: 0.
|
|
119
|
+
version: 0.50.0
|
|
120
120
|
type: :development
|
|
121
121
|
prerelease: false
|
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
|
123
123
|
requirements:
|
|
124
|
-
- -
|
|
124
|
+
- - '='
|
|
125
125
|
- !ruby/object:Gem::Version
|
|
126
|
-
version: 0.
|
|
126
|
+
version: 0.50.0
|
|
127
127
|
- !ruby/object:Gem::Dependency
|
|
128
128
|
name: ffi
|
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -241,6 +241,7 @@ files:
|
|
|
241
241
|
- lib/appsignal/integrations/delayed_job_plugin.rb
|
|
242
242
|
- lib/appsignal/integrations/grape.rb
|
|
243
243
|
- lib/appsignal/integrations/mongo_ruby_driver.rb
|
|
244
|
+
- lib/appsignal/integrations/net_http.rb
|
|
244
245
|
- lib/appsignal/integrations/object.rb
|
|
245
246
|
- lib/appsignal/integrations/padrino.rb
|
|
246
247
|
- lib/appsignal/integrations/que.rb
|