appsignal 2.11.10 → 3.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -1
  3. data/.semaphore/semaphore.yml +161 -70
  4. data/CHANGELOG.md +5 -18
  5. data/Rakefile +3 -13
  6. data/appsignal.gemspec +2 -24
  7. data/build_matrix.yml +20 -22
  8. data/gemfiles/capistrano2.gemfile +1 -0
  9. data/gemfiles/capistrano3.gemfile +1 -0
  10. data/gemfiles/grape.gemfile +1 -0
  11. data/gemfiles/no_dependencies.gemfile +1 -4
  12. data/gemfiles/rails-3.2.gemfile +0 -2
  13. data/gemfiles/rails-4.2.gemfile +0 -6
  14. data/gemfiles/resque-2.gemfile +4 -0
  15. data/gemfiles/sequel-435.gemfile +1 -0
  16. data/gemfiles/sequel.gemfile +1 -0
  17. data/gemfiles/sinatra.gemfile +1 -0
  18. data/lib/appsignal/auth_check.rb +2 -8
  19. data/lib/appsignal/cli.rb +1 -23
  20. data/lib/appsignal/config.rb +0 -24
  21. data/lib/appsignal/event_formatter.rb +0 -25
  22. data/lib/appsignal/extension.rb +0 -50
  23. data/lib/appsignal/hooks/action_cable.rb +5 -44
  24. data/lib/appsignal/hooks/active_support_notifications.rb +7 -86
  25. data/lib/appsignal/hooks/celluloid.rb +5 -9
  26. data/lib/appsignal/hooks/net_http.rb +2 -12
  27. data/lib/appsignal/hooks/puma.rb +3 -5
  28. data/lib/appsignal/hooks/que.rb +1 -1
  29. data/lib/appsignal/hooks/rake.rb +2 -24
  30. data/lib/appsignal/hooks/redis.rb +2 -13
  31. data/lib/appsignal/hooks/resque.rb +2 -43
  32. data/lib/appsignal/hooks/sidekiq.rb +1 -5
  33. data/lib/appsignal/hooks/unicorn.rb +3 -24
  34. data/lib/appsignal/hooks/webmachine.rb +1 -7
  35. data/lib/appsignal/hooks.rb +0 -23
  36. data/lib/appsignal/integrations/action_cable.rb +34 -0
  37. data/lib/appsignal/integrations/active_support_notifications.rb +77 -0
  38. data/lib/appsignal/integrations/net_http.rb +16 -0
  39. data/lib/appsignal/integrations/object.rb +61 -4
  40. data/lib/appsignal/integrations/padrino.rb +5 -7
  41. data/lib/appsignal/integrations/que.rb +26 -33
  42. data/lib/appsignal/integrations/railtie.rb +1 -4
  43. data/lib/appsignal/integrations/rake.rb +26 -2
  44. data/lib/appsignal/integrations/redis.rb +17 -0
  45. data/lib/appsignal/integrations/resque.rb +39 -10
  46. data/lib/appsignal/integrations/unicorn.rb +28 -0
  47. data/lib/appsignal/integrations/webmachine.rb +22 -24
  48. data/lib/appsignal/minutely.rb +0 -18
  49. data/lib/appsignal/transaction.rb +1 -1
  50. data/lib/appsignal/version.rb +1 -1
  51. data/lib/appsignal.rb +1 -27
  52. data/spec/lib/appsignal/auth_check_spec.rb +1 -24
  53. data/spec/lib/appsignal/cli_spec.rb +1 -1
  54. data/spec/lib/appsignal/config_spec.rb +0 -66
  55. data/spec/lib/appsignal/event_formatter_spec.rb +0 -37
  56. data/spec/lib/appsignal/extension_install_failure_spec.rb +7 -0
  57. data/spec/lib/appsignal/extension_spec.rb +9 -43
  58. data/spec/lib/appsignal/hooks/action_cable_spec.rb +0 -88
  59. data/spec/lib/appsignal/hooks/celluloid_spec.rb +6 -1
  60. data/spec/lib/appsignal/hooks/rake_spec.rb +1 -2
  61. data/spec/lib/appsignal/hooks/redis_spec.rb +50 -15
  62. data/spec/lib/appsignal/hooks/sidekiq_spec.rb +7 -61
  63. data/spec/lib/appsignal/hooks/unicorn_spec.rb +14 -3
  64. data/spec/lib/appsignal/hooks/webmachine_spec.rb +2 -13
  65. data/spec/lib/appsignal/hooks_spec.rb +0 -57
  66. data/spec/lib/appsignal/integrations/object_spec.rb +4 -95
  67. data/spec/lib/appsignal/integrations/padrino_spec.rb +2 -3
  68. data/spec/lib/appsignal/integrations/railtie_spec.rb +0 -45
  69. data/spec/lib/appsignal/integrations/webmachine_spec.rb +26 -8
  70. data/spec/lib/appsignal/minutely_spec.rb +0 -19
  71. data/spec/lib/appsignal/transaction_spec.rb +1 -31
  72. data/spec/lib/appsignal/transmitter_spec.rb +1 -1
  73. data/spec/lib/appsignal/utils/data_spec.rb +87 -133
  74. data/spec/lib/appsignal_spec.rb +0 -69
  75. data/spec/lib/puma/appsignal_spec.rb +0 -28
  76. data/spec/spec_helper.rb +1 -37
  77. data/spec/support/testing.rb +1 -11
  78. data/support/install_deps +0 -4
  79. metadata +10 -23
  80. data/lib/appsignal/cli/notify_of_deploy.rb +0 -131
  81. data/lib/appsignal/integrations/object_ruby_19.rb +0 -37
  82. data/lib/appsignal/integrations/object_ruby_modern.rb +0 -41
  83. data/lib/appsignal/integrations/resque_active_job.rb +0 -19
  84. data/lib/appsignal/js_exception_transaction.rb +0 -56
  85. data/lib/appsignal/rack/js_exception_catcher.rb +0 -80
  86. data/spec/lib/appsignal/cli/notify_of_deploy_spec.rb +0 -180
  87. data/spec/lib/appsignal/integrations/object_19_spec.rb +0 -266
  88. data/spec/lib/appsignal/integrations/resque_active_job_spec.rb +0 -28
  89. data/spec/lib/appsignal/integrations/resque_spec.rb +0 -28
  90. data/spec/lib/appsignal/js_exception_transaction_spec.rb +0 -128
  91. data/spec/lib/appsignal/rack/js_exception_catcher_spec.rb +0 -170
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e93bfa443c37617009ec2f2e86498ea51736c0c1fe17ea1955fdc8e7a1ab9200
4
- data.tar.gz: 005e8940811ee1ce786110f0190abb99f173d52ee25b1f4fd2bf36a71c273254
3
+ metadata.gz: 936166fae7d72db514778fce44512e528f36cbfa0a94f7c3fe8ea383754c47c2
4
+ data.tar.gz: cbfeb15ecec3d152c34a1759273de14cabe086a11782d441bd5aae6114fc0ac2
5
5
  SHA512:
6
- metadata.gz: 301b0c7c947ccf8ef43b54f596a21282a8ee0bdad23d52bf633e241e129678fae12ced1a0772c39e8f254c9c805c38cfcdf0d8f6963ca3394e1a3cb7bfa69afa
7
- data.tar.gz: 0a03bc7a32afb7cf911e684e13eb2357817edb81d8fec6f3de2ca95bcc71b74685502c641633269d6c23650f24c7ea0a310592397da2039a193d3e3559261dda
6
+ metadata.gz: 4b125b9378be2ac1445e94f924dc5fbb70e4f5eb5b886673c6748482988eaa2cb29bef61fe87fd05d7e75954139dd57abf2a5c5605e479e5a6c68893b3739ea8
7
+ data.tar.gz: 28d5212905fefffdddc077619a8f57d1f92b23bbb4237cb8c28847ce5215e9f2b12790d20c25115d9735f19d1fb4d592699601c476f13398882a9c65a3c187e1
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 1.9
4
+ TargetRubyVersion: 2.0
5
5
  Include:
6
6
  - "**/*.cap"
7
7
  - "Gemfile"
@@ -80,5 +80,8 @@ Metrics/BlockLength:
80
80
  Style/FrozenStringLiteralComment:
81
81
  Enabled: true
82
82
 
83
+ Style/SymbolArray:
84
+ EnforcedStyle: brackets
85
+
83
86
  # Metrics/LineLength:
84
87
  # Max: 80
@@ -32,7 +32,6 @@ global_job_config:
32
32
  commands:
33
33
  - checkout
34
34
  - rm -f $HOME/.rbenv/plugins/rbenv-gem-rehash/etc/rbenv.d/exec/~gem-rehash.bash
35
- - if [ -n "$_C_VERSION" ]; then sem-version c $_C_VERSION; fi
36
35
  - sem-version ruby $RUBY_VERSION
37
36
  - "./support/check_versions"
38
37
  - cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE)
@@ -80,7 +79,7 @@ blocks:
80
79
  value: gemfiles/no_dependencies.gemfile
81
80
  commands:
82
81
  - "./support/bundler_wrapper exec rubocop"
83
- - name: Ruby 1.9.3-p551
82
+ - name: Ruby 2.0.0-p648
84
83
  dependencies:
85
84
  - Validation
86
85
  task:
@@ -88,10 +87,10 @@ blocks:
88
87
  commands:
89
88
  - "./support/bundler_wrapper exec rake extension:install"
90
89
  jobs:
91
- - name: Ruby 1.9.3-p551 for no_dependencies
90
+ - name: Ruby 2.0.0-p648 for no_dependencies
92
91
  env_vars:
93
92
  - name: RUBY_VERSION
94
- value: 1.9.3-p551
93
+ value: 2.0.0-p648
95
94
  - name: GEMSET
96
95
  value: no_dependencies
97
96
  - name: BUNDLE_GEMFILE
@@ -103,22 +102,22 @@ blocks:
103
102
  commands:
104
103
  - "./support/bundler_wrapper exec rake test"
105
104
  - "./support/bundler_wrapper exec rake test:failure"
106
- - name: Ruby 2.0.0-p648
105
+ - name: Ruby 2.0.0-p648 - Gems
107
106
  dependencies:
108
- - Validation
107
+ - Ruby 2.0.0-p648
109
108
  task:
110
109
  prologue:
111
110
  commands:
112
111
  - "./support/bundler_wrapper exec rake extension:install"
113
112
  jobs:
114
- - name: Ruby 2.0.0-p648 for no_dependencies
113
+ - name: Ruby 2.0.0-p648 for capistrano2
115
114
  env_vars:
116
115
  - name: RUBY_VERSION
117
116
  value: 2.0.0-p648
118
117
  - name: GEMSET
119
- value: no_dependencies
118
+ value: capistrano2
120
119
  - name: BUNDLE_GEMFILE
121
- value: gemfiles/no_dependencies.gemfile
120
+ value: gemfiles/capistrano2.gemfile
122
121
  - name: _RUBYGEMS_VERSION
123
122
  value: 2.7.8
124
123
  - name: _BUNDLER_VERSION
@@ -126,14 +125,51 @@ blocks:
126
125
  commands:
127
126
  - "./support/bundler_wrapper exec rake test"
128
127
  - "./support/bundler_wrapper exec rake test:failure"
129
- - name: Ruby 2.0.0-p648 - Gems
130
- dependencies:
131
- - Ruby 2.0.0-p648
132
- task:
133
- prologue:
128
+ - name: Ruby 2.0.0-p648 for capistrano3
129
+ env_vars:
130
+ - name: RUBY_VERSION
131
+ value: 2.0.0-p648
132
+ - name: GEMSET
133
+ value: capistrano3
134
+ - name: BUNDLE_GEMFILE
135
+ value: gemfiles/capistrano3.gemfile
136
+ - name: _RUBYGEMS_VERSION
137
+ value: 2.7.8
138
+ - name: _BUNDLER_VERSION
139
+ value: 1.17.3
134
140
  commands:
135
- - "./support/bundler_wrapper exec rake extension:install"
136
- jobs:
141
+ - "./support/bundler_wrapper exec rake test"
142
+ - "./support/bundler_wrapper exec rake test:failure"
143
+ - name: Ruby 2.0.0-p648 for grape
144
+ env_vars:
145
+ - name: RUBY_VERSION
146
+ value: 2.0.0-p648
147
+ - name: GEMSET
148
+ value: grape
149
+ - name: BUNDLE_GEMFILE
150
+ value: gemfiles/grape.gemfile
151
+ - name: _RUBYGEMS_VERSION
152
+ value: 2.7.8
153
+ - name: _BUNDLER_VERSION
154
+ value: 1.17.3
155
+ commands:
156
+ - "./support/bundler_wrapper exec rake test"
157
+ - "./support/bundler_wrapper exec rake test:failure"
158
+ - name: Ruby 2.0.0-p648 for que
159
+ env_vars:
160
+ - name: RUBY_VERSION
161
+ value: 2.0.0-p648
162
+ - name: GEMSET
163
+ value: que
164
+ - name: BUNDLE_GEMFILE
165
+ value: gemfiles/que.gemfile
166
+ - name: _RUBYGEMS_VERSION
167
+ value: 2.7.8
168
+ - name: _BUNDLER_VERSION
169
+ value: 1.17.3
170
+ commands:
171
+ - "./support/bundler_wrapper exec rake test"
172
+ - "./support/bundler_wrapper exec rake test:failure"
137
173
  - name: Ruby 2.0.0-p648 for rails-3.2
138
174
  env_vars:
139
175
  - name: RUBY_VERSION
@@ -164,6 +200,81 @@ blocks:
164
200
  commands:
165
201
  - "./support/bundler_wrapper exec rake test"
166
202
  - "./support/bundler_wrapper exec rake test:failure"
203
+ - name: Ruby 2.0.0-p648 for resque-1
204
+ env_vars:
205
+ - name: RUBY_VERSION
206
+ value: 2.0.0-p648
207
+ - name: GEMSET
208
+ value: resque-1
209
+ - name: BUNDLE_GEMFILE
210
+ value: gemfiles/resque-1.gemfile
211
+ - name: _RUBYGEMS_VERSION
212
+ value: 2.7.8
213
+ - name: _BUNDLER_VERSION
214
+ value: 1.17.3
215
+ commands:
216
+ - "./support/bundler_wrapper exec rake test"
217
+ - "./support/bundler_wrapper exec rake test:failure"
218
+ - name: Ruby 2.0.0-p648 for sequel
219
+ env_vars:
220
+ - name: RUBY_VERSION
221
+ value: 2.0.0-p648
222
+ - name: GEMSET
223
+ value: sequel
224
+ - name: BUNDLE_GEMFILE
225
+ value: gemfiles/sequel.gemfile
226
+ - name: _RUBYGEMS_VERSION
227
+ value: 2.7.8
228
+ - name: _BUNDLER_VERSION
229
+ value: 1.17.3
230
+ commands:
231
+ - "./support/bundler_wrapper exec rake test"
232
+ - "./support/bundler_wrapper exec rake test:failure"
233
+ - name: Ruby 2.0.0-p648 for sequel-435
234
+ env_vars:
235
+ - name: RUBY_VERSION
236
+ value: 2.0.0-p648
237
+ - name: GEMSET
238
+ value: sequel-435
239
+ - name: BUNDLE_GEMFILE
240
+ value: gemfiles/sequel-435.gemfile
241
+ - name: _RUBYGEMS_VERSION
242
+ value: 2.7.8
243
+ - name: _BUNDLER_VERSION
244
+ value: 1.17.3
245
+ commands:
246
+ - "./support/bundler_wrapper exec rake test"
247
+ - "./support/bundler_wrapper exec rake test:failure"
248
+ - name: Ruby 2.0.0-p648 for sinatra
249
+ env_vars:
250
+ - name: RUBY_VERSION
251
+ value: 2.0.0-p648
252
+ - name: GEMSET
253
+ value: sinatra
254
+ - name: BUNDLE_GEMFILE
255
+ value: gemfiles/sinatra.gemfile
256
+ - name: _RUBYGEMS_VERSION
257
+ value: 2.7.8
258
+ - name: _BUNDLER_VERSION
259
+ value: 1.17.3
260
+ commands:
261
+ - "./support/bundler_wrapper exec rake test"
262
+ - "./support/bundler_wrapper exec rake test:failure"
263
+ - name: Ruby 2.0.0-p648 for webmachine
264
+ env_vars:
265
+ - name: RUBY_VERSION
266
+ value: 2.0.0-p648
267
+ - name: GEMSET
268
+ value: webmachine
269
+ - name: BUNDLE_GEMFILE
270
+ value: gemfiles/webmachine.gemfile
271
+ - name: _RUBYGEMS_VERSION
272
+ value: 2.7.8
273
+ - name: _BUNDLER_VERSION
274
+ value: 1.17.3
275
+ commands:
276
+ - "./support/bundler_wrapper exec rake test"
277
+ - "./support/bundler_wrapper exec rake test:failure"
167
278
  - name: Ruby 2.1.10
168
279
  dependencies:
169
280
  - Validation
@@ -859,7 +970,7 @@ blocks:
859
970
  commands:
860
971
  - "./support/bundler_wrapper exec rake test"
861
972
  - "./support/bundler_wrapper exec rake test:failure"
862
- - name: Ruby 3.0.1
973
+ - name: Ruby 3.0.0
863
974
  dependencies:
864
975
  - Validation
865
976
  task:
@@ -867,10 +978,10 @@ blocks:
867
978
  commands:
868
979
  - "./support/bundler_wrapper exec rake extension:install"
869
980
  jobs:
870
- - name: Ruby 3.0.1 for no_dependencies
981
+ - name: Ruby 3.0.0 for no_dependencies
871
982
  env_vars:
872
983
  - name: RUBY_VERSION
873
- value: 3.0.1
984
+ value: 3.0.0
874
985
  - name: GEMSET
875
986
  value: no_dependencies
876
987
  - name: BUNDLE_GEMFILE
@@ -882,18 +993,18 @@ blocks:
882
993
  commands:
883
994
  - "./support/bundler_wrapper exec rake test"
884
995
  - "./support/bundler_wrapper exec rake test:failure"
885
- - name: Ruby 3.0.1 - Gems
996
+ - name: Ruby 3.0.0 - Gems
886
997
  dependencies:
887
- - Ruby 3.0.1
998
+ - Ruby 3.0.0
888
999
  task:
889
1000
  prologue:
890
1001
  commands:
891
1002
  - "./support/bundler_wrapper exec rake extension:install"
892
1003
  jobs:
893
- - name: Ruby 3.0.1 for capistrano2
1004
+ - name: Ruby 3.0.0 for capistrano2
894
1005
  env_vars:
895
1006
  - name: RUBY_VERSION
896
- value: 3.0.1
1007
+ value: 3.0.0
897
1008
  - name: GEMSET
898
1009
  value: capistrano2
899
1010
  - name: BUNDLE_GEMFILE
@@ -905,10 +1016,10 @@ blocks:
905
1016
  commands:
906
1017
  - "./support/bundler_wrapper exec rake test"
907
1018
  - "./support/bundler_wrapper exec rake test:failure"
908
- - name: Ruby 3.0.1 for capistrano3
1019
+ - name: Ruby 3.0.0 for capistrano3
909
1020
  env_vars:
910
1021
  - name: RUBY_VERSION
911
- value: 3.0.1
1022
+ value: 3.0.0
912
1023
  - name: GEMSET
913
1024
  value: capistrano3
914
1025
  - name: BUNDLE_GEMFILE
@@ -920,10 +1031,10 @@ blocks:
920
1031
  commands:
921
1032
  - "./support/bundler_wrapper exec rake test"
922
1033
  - "./support/bundler_wrapper exec rake test:failure"
923
- - name: Ruby 3.0.1 for grape
1034
+ - name: Ruby 3.0.0 for grape
924
1035
  env_vars:
925
1036
  - name: RUBY_VERSION
926
- value: 3.0.1
1037
+ value: 3.0.0
927
1038
  - name: GEMSET
928
1039
  value: grape
929
1040
  - name: BUNDLE_GEMFILE
@@ -935,10 +1046,10 @@ blocks:
935
1046
  commands:
936
1047
  - "./support/bundler_wrapper exec rake test"
937
1048
  - "./support/bundler_wrapper exec rake test:failure"
938
- - name: Ruby 3.0.1 for padrino
1049
+ - name: Ruby 3.0.0 for padrino
939
1050
  env_vars:
940
1051
  - name: RUBY_VERSION
941
- value: 3.0.1
1052
+ value: 3.0.0
942
1053
  - name: GEMSET
943
1054
  value: padrino
944
1055
  - name: BUNDLE_GEMFILE
@@ -950,10 +1061,10 @@ blocks:
950
1061
  commands:
951
1062
  - "./support/bundler_wrapper exec rake test"
952
1063
  - "./support/bundler_wrapper exec rake test:failure"
953
- - name: Ruby 3.0.1 for que
1064
+ - name: Ruby 3.0.0 for que
954
1065
  env_vars:
955
1066
  - name: RUBY_VERSION
956
- value: 3.0.1
1067
+ value: 3.0.0
957
1068
  - name: GEMSET
958
1069
  value: que
959
1070
  - name: BUNDLE_GEMFILE
@@ -965,10 +1076,10 @@ blocks:
965
1076
  commands:
966
1077
  - "./support/bundler_wrapper exec rake test"
967
1078
  - "./support/bundler_wrapper exec rake test:failure"
968
- - name: Ruby 3.0.1 for que_beta
1079
+ - name: Ruby 3.0.0 for que_beta
969
1080
  env_vars:
970
1081
  - name: RUBY_VERSION
971
- value: 3.0.1
1082
+ value: 3.0.0
972
1083
  - name: GEMSET
973
1084
  value: que_beta
974
1085
  - name: BUNDLE_GEMFILE
@@ -980,10 +1091,10 @@ blocks:
980
1091
  commands:
981
1092
  - "./support/bundler_wrapper exec rake test"
982
1093
  - "./support/bundler_wrapper exec rake test:failure"
983
- - name: Ruby 3.0.1 for rails-6.0
1094
+ - name: Ruby 3.0.0 for rails-6.0
984
1095
  env_vars:
985
1096
  - name: RUBY_VERSION
986
- value: 3.0.1
1097
+ value: 3.0.0
987
1098
  - name: GEMSET
988
1099
  value: rails-6.0
989
1100
  - name: BUNDLE_GEMFILE
@@ -995,10 +1106,10 @@ blocks:
995
1106
  commands:
996
1107
  - "./support/bundler_wrapper exec rake test"
997
1108
  - "./support/bundler_wrapper exec rake test:failure"
998
- - name: Ruby 3.0.1 for resque-2
1109
+ - name: Ruby 3.0.0 for resque-2
999
1110
  env_vars:
1000
1111
  - name: RUBY_VERSION
1001
- value: 3.0.1
1112
+ value: 3.0.0
1002
1113
  - name: GEMSET
1003
1114
  value: resque-2
1004
1115
  - name: BUNDLE_GEMFILE
@@ -1010,10 +1121,10 @@ blocks:
1010
1121
  commands:
1011
1122
  - "./support/bundler_wrapper exec rake test"
1012
1123
  - "./support/bundler_wrapper exec rake test:failure"
1013
- - name: Ruby 3.0.1 for sequel
1124
+ - name: Ruby 3.0.0 for sequel
1014
1125
  env_vars:
1015
1126
  - name: RUBY_VERSION
1016
- value: 3.0.1
1127
+ value: 3.0.0
1017
1128
  - name: GEMSET
1018
1129
  value: sequel
1019
1130
  - name: BUNDLE_GEMFILE
@@ -1025,10 +1136,10 @@ blocks:
1025
1136
  commands:
1026
1137
  - "./support/bundler_wrapper exec rake test"
1027
1138
  - "./support/bundler_wrapper exec rake test:failure"
1028
- - name: Ruby 3.0.1 for sinatra
1139
+ - name: Ruby 3.0.0 for sinatra
1029
1140
  env_vars:
1030
1141
  - name: RUBY_VERSION
1031
- value: 3.0.1
1142
+ value: 3.0.0
1032
1143
  - name: GEMSET
1033
1144
  value: sinatra
1034
1145
  - name: BUNDLE_GEMFILE
@@ -1040,10 +1151,10 @@ blocks:
1040
1151
  commands:
1041
1152
  - "./support/bundler_wrapper exec rake test"
1042
1153
  - "./support/bundler_wrapper exec rake test:failure"
1043
- - name: Ruby 3.0.1 for webmachine
1154
+ - name: Ruby 3.0.0 for webmachine
1044
1155
  env_vars:
1045
1156
  - name: RUBY_VERSION
1046
- value: 3.0.1
1157
+ value: 3.0.0
1047
1158
  - name: GEMSET
1048
1159
  value: webmachine
1049
1160
  - name: BUNDLE_GEMFILE
@@ -1055,7 +1166,7 @@ blocks:
1055
1166
  commands:
1056
1167
  - "./support/bundler_wrapper exec rake test"
1057
1168
  - "./support/bundler_wrapper exec rake test:failure"
1058
- - name: Ruby jruby-9.2.19.0
1169
+ - name: Ruby jruby-9.1.17.0
1059
1170
  dependencies:
1060
1171
  - Validation
1061
1172
  task:
@@ -1063,10 +1174,10 @@ blocks:
1063
1174
  commands:
1064
1175
  - "./support/bundler_wrapper exec rake extension:install"
1065
1176
  jobs:
1066
- - name: Ruby jruby-9.2.19.0 for no_dependencies
1177
+ - name: Ruby jruby-9.1.17.0 for no_dependencies
1067
1178
  env_vars:
1068
1179
  - name: RUBY_VERSION
1069
- value: jruby-9.2.19.0
1180
+ value: jruby-9.1.17.0
1070
1181
  - name: GEMSET
1071
1182
  value: no_dependencies
1072
1183
  - name: BUNDLE_GEMFILE
@@ -1075,24 +1186,21 @@ blocks:
1075
1186
  value: latest
1076
1187
  - name: _BUNDLER_VERSION
1077
1188
  value: latest
1078
- - &1
1079
- name: _C_VERSION
1080
- value: '8'
1081
1189
  commands:
1082
1190
  - "./support/bundler_wrapper exec rake test"
1083
1191
  - "./support/bundler_wrapper exec rake test:failure"
1084
- - name: Ruby jruby-9.2.19.0 - Gems
1192
+ - name: Ruby jruby-9.1.17.0 - Gems
1085
1193
  dependencies:
1086
- - Ruby jruby-9.2.19.0
1194
+ - Ruby jruby-9.1.17.0
1087
1195
  task:
1088
1196
  prologue:
1089
1197
  commands:
1090
1198
  - "./support/bundler_wrapper exec rake extension:install"
1091
1199
  jobs:
1092
- - name: Ruby jruby-9.2.19.0 for rails-5.2
1200
+ - name: Ruby jruby-9.1.17.0 for rails-5.2
1093
1201
  env_vars:
1094
1202
  - name: RUBY_VERSION
1095
- value: jruby-9.2.19.0
1203
+ value: jruby-9.1.17.0
1096
1204
  - name: GEMSET
1097
1205
  value: rails-5.2
1098
1206
  - name: BUNDLE_GEMFILE
@@ -1101,23 +1209,6 @@ blocks:
1101
1209
  value: latest
1102
1210
  - name: _BUNDLER_VERSION
1103
1211
  value: latest
1104
- - *1
1105
- commands:
1106
- - "./support/bundler_wrapper exec rake test"
1107
- - "./support/bundler_wrapper exec rake test:failure"
1108
- - name: Ruby jruby-9.2.19.0 for rails-6.0
1109
- env_vars:
1110
- - name: RUBY_VERSION
1111
- value: jruby-9.2.19.0
1112
- - name: GEMSET
1113
- value: rails-6.0
1114
- - name: BUNDLE_GEMFILE
1115
- value: gemfiles/rails-6.0.gemfile
1116
- - name: _RUBYGEMS_VERSION
1117
- value: latest
1118
- - name: _BUNDLER_VERSION
1119
- value: latest
1120
- - *1
1121
1212
  commands:
1122
1213
  - "./support/bundler_wrapper exec rake test"
1123
1214
  - "./support/bundler_wrapper exec rake test:failure"
data/CHANGELOG.md CHANGED
@@ -1,23 +1,10 @@
1
1
  # Changelog
2
2
 
3
- # 2.11.10
4
- - Backport extension fallbacks on extension installation failure, that caused
5
- NoMethodErrors. PR #736
6
-
7
- # 2.11.9
8
- - Fix and simplify Ruby method delegation for object method instrumentation in
9
- the different Ruby versions. PR #706
10
-
11
- # 2.11.8
12
- - Mark minutely probe thread as fork-safe by @pixeltrix. PR #704
13
-
14
- # 2.11.7
15
- - Fix ActionCable integration in test environment using `stub_connection`.
16
- PR #705
17
-
18
- # 2.11.6
19
- - Prepend Sidekiq middleware to wrap all Sidekiq middleware. Catches more
20
- errors and provide more complete performance measurements. PR #698
3
+ # 3.0.0
4
+ - Drop Ruby 1.9 support. PR #683, #682, #688, #694
5
+ - Use Module.prepend for all gem integrations. Fixes #603 in combination with
6
+ other gems that provide instrumentation for gems. PR #683
7
+ - Remove deprecated integrations, classes, methods and arguments. PR #685
21
8
 
22
9
  # 2.11.5
23
10
  - Add more detailed logging to finish_event calls when the event is unknown, so
data/Rakefile CHANGED
@@ -73,7 +73,7 @@ namespace :build_matrix do
73
73
 
74
74
  job = {
75
75
  "name" => "Ruby #{ruby_version} for #{gem["gem"]}",
76
- "env_vars" => env + ruby.fetch("env_vars", []),
76
+ "env_vars" => env,
77
77
  "commands" => [
78
78
  "./support/bundler_wrapper exec rake test",
79
79
  "./support/bundler_wrapper exec rake test:failure"
@@ -387,20 +387,10 @@ begin
387
387
  end
388
388
 
389
389
  namespace :test do
390
- RSpec::Core::RakeTask.new :rspec_failure do |t|
390
+ desc "Run the Appsignal gem test in an extension failure scenario"
391
+ RSpec::Core::RakeTask.new :failure do |t|
391
392
  t.rspec_opts = "#{exclude_pattern} --tag extension_installation_failure"
392
393
  end
393
-
394
- desc "Intentionally fail the extension installation"
395
- task :prepare_failure do
396
- # ENV var to make sure installation fails on purpurse
397
- ENV["_TEST_APPSIGNAL_EXTENSION_FAILURE"] = "true"
398
- # Run extension installation with intentional failure
399
- `rake extension:install`
400
- end
401
-
402
- desc "Run the Appsignal gem test in an extension failure scenario"
403
- task :failure => [:prepare_failure, :rspec_failure]
404
394
  end
405
395
  rescue LoadError # rubocop:disable Lint/HandleExceptions
406
396
  # When running rake install, there is no RSpec yet.
data/appsignal.gemspec CHANGED
@@ -42,31 +42,9 @@ Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength
42
42
  gem.add_development_dependency "timecop"
43
43
  gem.add_development_dependency "webmock"
44
44
  gem.add_development_dependency "yard", ">= 0.9.20"
45
-
46
- ruby_version = Gem::Version.new(RUBY_VERSION)
47
- if ruby_version >= Gem::Version.new("2.0.0")
45
+ is_modern_ruby = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.0.0")
46
+ if is_modern_ruby
48
47
  gem.add_development_dependency "pry"
49
48
  gem.add_development_dependency "rubocop", "0.50.0"
50
49
  end
51
-
52
- # Dependencies that need to be locked to a specific version in developement
53
- if ruby_version < Gem::Version.new("2.0.0")
54
- # The rexml gem use keyword arguments with optional arguments which
55
- # work in Ruby 2.1 and newer. Lock crack to a version without rexml.
56
- gem.add_development_dependency "crack", "0.4.4"
57
- elsif ruby_version < Gem::Version.new("2.1.0")
58
- # The rexml gem use keyword arguments with optional arguments which
59
- # work in Ruby 2.1 and newer.
60
- gem.add_development_dependency "rexml", "3.2.4"
61
- end
62
- if ruby_version < Gem::Version.new("2.0.0")
63
- # public_suffix 2.0 and newer don't support Ruby < 2.0
64
- gem.add_development_dependency "public_suffix", "~> 1.4.6"
65
- elsif ruby_version < Gem::Version.new("2.1.0")
66
- # public_suffix 3.0 and newer don't support Ruby < 2.1
67
- gem.add_development_dependency "public_suffix", "~> 2.0.5"
68
- elsif ruby_version < Gem::Version.new("2.3.0")
69
- # public_suffix 4.0 and newer don't support Ruby < 2.3
70
- gem.add_development_dependency "public_suffix", "~> 3.1.1"
71
- end
72
50
  end
data/build_matrix.yml CHANGED
@@ -33,7 +33,6 @@ semaphore: # Default `.semaphore/semaphore.yml` contents
33
33
  commands:
34
34
  - checkout
35
35
  - rm -f $HOME/.rbenv/plugins/rbenv-gem-rehash/etc/rbenv.d/exec/~gem-rehash.bash
36
- - "if [ -n \"$_C_VERSION\" ]; then sem-version c $_C_VERSION; fi"
37
36
  - sem-version ruby $RUBY_VERSION
38
37
  - ./support/check_versions
39
38
  - cache restore $_BUNDLER_CACHE-bundler-$RUBY_VERSION-$GEMSET-$(checksum $BUNDLE_GEMFILE)
@@ -89,24 +88,15 @@ matrix:
89
88
  gemsets: # By default all gems are tested
90
89
  none:
91
90
  - "no_dependencies"
92
- old_rails:
93
- - "no_dependencies"
94
- - "rails-3.2"
95
- - "rails-4.2"
96
91
  minimal:
97
92
  - "no_dependencies"
98
93
  - "rails-5.2"
99
94
  - "rails-6.0"
100
95
 
101
96
  ruby:
102
- - ruby: "1.9.3-p551"
103
- rubygems: "2.7.8"
104
- bundler: "1.17.3"
105
- gems: "none"
106
97
  - ruby: "2.0.0-p648"
107
98
  rubygems: "2.7.8"
108
99
  bundler: "1.17.3"
109
- gems: "old_rails"
110
100
  - ruby: "2.1.10"
111
101
  rubygems: "2.7.8"
112
102
  bundler: "1.17.3"
@@ -123,66 +113,74 @@ matrix:
123
113
  gems: "minimal"
124
114
  - ruby: "2.6.5"
125
115
  - ruby: "2.7.1"
126
- - ruby: "3.0.1"
127
- - ruby: "jruby-9.2.19.0"
116
+ - ruby: "3.0.0"
117
+ - ruby: "jruby-9.1.17.0"
128
118
  gems: "minimal"
129
- env_vars:
130
- - name: "_C_VERSION"
131
- value: "8"
132
119
  gems:
133
120
  - gem: "no_dependencies"
134
121
  - gem: "capistrano2"
135
122
  - gem: "capistrano3"
136
123
  - gem: "grape"
137
124
  - gem: "padrino"
125
+ exclude:
126
+ ruby:
127
+ - "2.0.0-p648"
138
128
  - gem: "que"
139
129
  - gem: "que_beta"
130
+ exclude:
131
+ ruby:
132
+ - "2.0.0-p648"
140
133
  - gem: "rails-3.2"
141
134
  bundler: "1.17.3"
142
135
  exclude:
143
136
  ruby:
144
137
  - "2.6.5"
145
138
  - "2.7.1"
146
- - "3.0.1"
139
+ - "3.0.0"
147
140
  - gem: "rails-4.2"
148
141
  bundler: "1.17.3"
149
142
  exclude:
150
143
  ruby:
151
144
  - "2.6.5"
152
145
  - "2.7.1"
153
- - "3.0.1"
146
+ - "3.0.0"
154
147
  - gem: "rails-5.0"
155
148
  exclude:
156
149
  ruby:
157
150
  - "2.0.0-p648"
158
- - "3.0.1"
151
+ - "3.0.0"
159
152
  - gem: "rails-5.1"
160
153
  exclude:
161
154
  ruby:
162
155
  - "2.0.0-p648"
163
- - "3.0.1"
156
+ - "3.0.0"
164
157
  - gem: "rails-5.2"
165
158
  exclude:
166
159
  ruby:
167
160
  - "2.0.0-p648"
168
- - "3.0.1"
161
+ - "3.0.0"
169
162
  - gem: "rails-6.0"
170
163
  exclude:
171
164
  ruby:
165
+ - "2.0.0-p648"
172
166
  - "2.1.10"
173
167
  - "2.2.10"
174
168
  - "2.3.8"
175
169
  - "2.4.9"
170
+ - "jruby-9.1.17.0"
176
171
  - gem: "resque-1"
177
172
  bundler: "1.17.3"
178
173
  exclude:
179
174
  ruby:
180
- - "3.0.1"
175
+ - "3.0.0"
181
176
  - gem: "resque-2"
177
+ exclude:
178
+ ruby:
179
+ - "2.0.0-p648"
182
180
  - gem: "sequel"
183
181
  - gem: "sequel-435"
184
182
  exclude:
185
183
  ruby:
186
- - "3.0.1"
184
+ - "3.0.0"
187
185
  - gem: "sinatra"
188
186
  - gem: "webmachine"