airbrake 8.2.0 → 8.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b98b3692c7dc986e55e971e741c050073b40ef9
4
- data.tar.gz: efa90c1e8bf90cfe103e4b846e305becef3a1840
3
+ metadata.gz: acdecef7bc49042642b6e456017983a16a1415aa
4
+ data.tar.gz: 95ba525e475d22292a1fe98d32ea25132d0084b9
5
5
  SHA512:
6
- metadata.gz: 2084925577c41bf774db05916722c4de172c5724ca25e03f974acf338edf72b597dd04c38b337f4e5a33b6645bfaca94bf1f3a796aaa6b97ca42579e46a74305
7
- data.tar.gz: edabf305e2d3fd60f28167f25624c6c42caf883fe55d2aef9eff0e94c6a9b290383443fbb6562193d83451672e69c9842e292eb4687d4eb060952b5479ed9937
6
+ metadata.gz: 3eb63dbf4e93a813a7295077252b1f29d08a65741c2c34fa46d4c4806d21ddf415f628d5ae8c5ef7c17e7ea26face83331dc2281ab6751de98fbb93d25c3bd98
7
+ data.tar.gz: a764f7e4c6c494b1f006ea17db00d5f76c074a4f988a9636bf3411a0f6e27d4c4a49d78c63007b5432f5f3391bd2a0cfa996674e8ba9856f6d1f18f2657f9c7f
@@ -31,7 +31,7 @@ module Airbrake
31
31
  exception = StandardError.new.tap do |ex|
32
32
  ex.set_backtrace(::Rails.backtrace_cleaner.clean(Kernel.caller).first(1))
33
33
  end
34
- Airbrake::Backtrace.parse(exception).first
34
+ Airbrake::Backtrace.parse(exception).first || {}
35
35
  end
36
36
  end
37
37
  end
@@ -1,5 +1,5 @@
1
1
  # We use Semantic Versioning v2.0.0
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
- AIRBRAKE_VERSION = '8.2.0'.freeze
4
+ AIRBRAKE_VERSION = '8.2.1'.freeze
5
5
  end
@@ -1025,3 +1025,280 @@ AirbrakeTestError (AirbrakeTestError):
1025
1025
  lib/airbrake/rack/middleware.rb:40:in `call'
1026
1026
 
1027
1027
 
1028
+ Connecting to database specified by DATABASE_URL
1029
+  (3.1ms) select sqlite_version(*)
1030
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1031
+  (0.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1032
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1033
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:27:31 +0200
1034
+ Processing by DummyController#crash as HTML
1035
+  (0.0ms) begin transaction
1036
+ SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
1037
+  (0.0ms) commit transaction
1038
+ #<AirbrakeTestError: after_commit>
1039
+ Completed 500 Internal Server Error in 26.1ms
1040
+
1041
+ AirbrakeTestError (AirbrakeTestError):
1042
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1043
+ lib/airbrake/rack/middleware.rb:21:in `call'
1044
+
1045
+
1046
+ Started HEAD "/crash" for 127.0.0.1 at 2019-03-04 16:27:33 +0200
1047
+ Processing by DummyController#crash as HTML
1048
+  (0.0ms) begin transaction
1049
+ SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
1050
+  (0.0ms) commit transaction
1051
+ #<AirbrakeTestError: after_commit>
1052
+ Completed 0 in 6.0ms
1053
+
1054
+ AirbrakeTestError (AirbrakeTestError):
1055
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1056
+ lib/airbrake/rack/middleware.rb:21:in `call'
1057
+
1058
+
1059
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:27:33 +0200
1060
+ Processing by DummyController#crash as HTML
1061
+  (0.0ms) begin transaction
1062
+ SQL (0.0ms) INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
1063
+  (0.0ms) commit transaction
1064
+ #<AirbrakeTestError: after_commit>
1065
+ Completed 500 Internal Server Error in 5.0ms
1066
+
1067
+ AirbrakeTestError (AirbrakeTestError):
1068
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1069
+ lib/airbrake/rack/middleware.rb:21:in `call'
1070
+
1071
+
1072
+ Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-04 16:27:33 +0200
1073
+ Processing by DummyController#notify_airbrake_sync_helper as HTML
1074
+ Parameters: {"foo"=>"bar"}
1075
+ Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (1.0ms)
1076
+ Completed 200 OK in 21.6ms (Views: 6.7ms | ActiveRecord: 0.0ms)
1077
+ Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-04 16:27:35 +0200
1078
+ Processing by DummyController#notify_airbrake_sync_helper as HTML
1079
+ Parameters: {"foo"=>"bar"}
1080
+ Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1081
+ Completed 200 OK in 16.2ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1082
+ Started GET "/notify_airbrake_sync_helper?foo=bar" for 127.0.0.1 at 2019-03-04 16:27:37 +0200
1083
+ Processing by DummyController#notify_airbrake_sync_helper as HTML
1084
+ Parameters: {"foo"=>"bar"}
1085
+ Rendered dummy/notify_airbrake_sync_helper.html.erb within layouts/application (0.2ms)
1086
+ Completed 200 OK in 16.9ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1087
+ Connecting to database specified by DATABASE_URL
1088
+  (0.9ms) select sqlite_version(*)
1089
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1090
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1091
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1092
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:27:44 +0200
1093
+ Processing by DummyController#crash as HTML
1094
+ RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
1095
+ expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
1096
+ got: ({:end_time=>2019-03-04 16:27:44.259868000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:27:44.259809000 +0200})
1097
+ Diff:
1098
+ @@ -1,2 +1,9 @@
1099
+ -["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
1100
+ +[{:end_time=>2019-03-04 16:27:44.259868000 +0200,
1101
+ + :file=>nil,
1102
+ + :func=>nil,
1103
+ + :line=>nil,
1104
+ + :method=>"GET",
1105
+ + :query=>"PRAGMA table_info(\"books\")",
1106
+ + :route=>"/crash(.:format)",
1107
+ + :start_time=>2019-03-04 16:27:44.259809000 +0200}]
1108
+ : PRAGMA table_info("books")
1109
+ Completed 500 Internal Server Error in 17.0ms
1110
+
1111
+ ActiveRecord::StatementInvalid (RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
1112
+ expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
1113
+ got: ({:end_time=>2019-03-04 16:27:44.259868000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:27:44.259809000 +0200})
1114
+ Diff:
1115
+ @@ -1,2 +1,9 @@
1116
+ -["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
1117
+ +[{:end_time=>2019-03-04 16:27:44.259868000 +0200,
1118
+ + :file=>nil,
1119
+ + :func=>nil,
1120
+ + :line=>nil,
1121
+ + :method=>"GET",
1122
+ + :query=>"PRAGMA table_info(\"books\")",
1123
+ + :route=>"/crash(.:format)",
1124
+ + :start_time=>2019-03-04 16:27:44.259809000 +0200}]
1125
+ : PRAGMA table_info("books")):
1126
+ lib/airbrake/rails/active_record_subscriber.rb:15:in `block in call'
1127
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
1128
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
1129
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1130
+ lib/airbrake/rack/middleware.rb:21:in `call'
1131
+
1132
+
1133
+ Connecting to database specified by DATABASE_URL
1134
+  (0.9ms) select sqlite_version(*)
1135
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1136
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1137
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1138
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:03 +0200
1139
+ Processing by DummyController#crash as HTML
1140
+ RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
1141
+ expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
1142
+ got: ({:end_time=>2019-03-04 16:28:03.119043000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:03.118980000 +0200})
1143
+ Diff:
1144
+ @@ -1,2 +1,9 @@
1145
+ -["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
1146
+ +[{:end_time=>2019-03-04 16:28:03.119043000 +0200,
1147
+ + :file=>nil,
1148
+ + :func=>nil,
1149
+ + :line=>nil,
1150
+ + :method=>"GET",
1151
+ + :query=>"PRAGMA table_info(\"books\")",
1152
+ + :route=>"/crash(.:format)",
1153
+ + :start_time=>2019-03-04 16:28:03.118980000 +0200}]
1154
+ : PRAGMA table_info("books")
1155
+ Completed 500 Internal Server Error in 2762.8ms
1156
+
1157
+ ActiveRecord::StatementInvalid (RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
1158
+ expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
1159
+ got: ({:end_time=>2019-03-04 16:28:03.119043000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:03.118980000 +0200})
1160
+ Diff:
1161
+ @@ -1,2 +1,9 @@
1162
+ -["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
1163
+ +[{:end_time=>2019-03-04 16:28:03.119043000 +0200,
1164
+ + :file=>nil,
1165
+ + :func=>nil,
1166
+ + :line=>nil,
1167
+ + :method=>"GET",
1168
+ + :query=>"PRAGMA table_info(\"books\")",
1169
+ + :route=>"/crash(.:format)",
1170
+ + :start_time=>2019-03-04 16:28:03.118980000 +0200}]
1171
+ : PRAGMA table_info("books")):
1172
+ lib/airbrake/rails/active_record_subscriber.rb:15:in `block in call'
1173
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
1174
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
1175
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1176
+ lib/airbrake/rack/middleware.rb:21:in `call'
1177
+
1178
+
1179
+ Connecting to database specified by DATABASE_URL
1180
+  (1.0ms) select sqlite_version(*)
1181
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1182
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1183
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1184
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:10 +0200
1185
+ Processing by DummyController#crash as HTML
1186
+ RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
1187
+ expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
1188
+ got: ({:end_time=>2019-03-04 16:28:10.630892000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:10.630829000 +0200})
1189
+ Diff:
1190
+ @@ -1,2 +1,9 @@
1191
+ -["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
1192
+ +[{:end_time=>2019-03-04 16:28:10.630892000 +0200,
1193
+ + :file=>nil,
1194
+ + :func=>nil,
1195
+ + :line=>nil,
1196
+ + :method=>"GET",
1197
+ + :query=>"PRAGMA table_info(\"books\")",
1198
+ + :route=>"/crash(.:format)",
1199
+ + :start_time=>2019-03-04 16:28:10.630829000 +0200}]
1200
+ : PRAGMA table_info("books")
1201
+ Completed 500 Internal Server Error in 5403.8ms
1202
+
1203
+ ActiveRecord::StatementInvalid (RSpec::Mocks::MockExpectationError: Airbrake received :notify_query with unexpected arguments
1204
+ expected: (hash_including(:route=>"/crash(.:format)", :method=>"GET", :func=>"tap", :file=>"lib/airbrake/rails/active_record_subscriber.rb", :line=>"anything"))
1205
+ got: ({:end_time=>2019-03-04 16:28:10.630892000 +0200, :file=>nil, :func=>nil, :line=>nil, :method=>"GET", ...able_info(\"books\")", :route=>"/crash(.:format)", :start_time=>2019-03-04 16:28:10.630829000 +0200})
1206
+ Diff:
1207
+ @@ -1,2 +1,9 @@
1208
+ -["hash_including(:route=>\"/crash(.:format)\", :method=>\"GET\", :func=>\"tap\", :file=>\"lib/airbrake/rails/active_record_subscriber.rb\", :line=>\"anything\")"]
1209
+ +[{:end_time=>2019-03-04 16:28:10.630892000 +0200,
1210
+ + :file=>nil,
1211
+ + :func=>nil,
1212
+ + :line=>nil,
1213
+ + :method=>"GET",
1214
+ + :query=>"PRAGMA table_info(\"books\")",
1215
+ + :route=>"/crash(.:format)",
1216
+ + :start_time=>2019-03-04 16:28:10.630829000 +0200}]
1217
+ : PRAGMA table_info("books")):
1218
+ lib/airbrake/rails/active_record_subscriber.rb:15:in `block in call'
1219
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
1220
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
1221
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1222
+ lib/airbrake/rack/middleware.rb:21:in `call'
1223
+
1224
+
1225
+ Connecting to database specified by DATABASE_URL
1226
+  (0.8ms) select sqlite_version(*)
1227
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1228
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1229
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1230
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:35 +0200
1231
+ Processing by DummyController#crash as HTML
1232
+  (0.1ms) begin transaction
1233
+ Connecting to database specified by DATABASE_URL
1234
+  (0.9ms) select sqlite_version(*)
1235
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1236
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1237
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1238
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:43 +0200
1239
+ Processing by DummyController#crash as HTML
1240
+  (0.0ms) begin transaction
1241
+ SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
1242
+  (0.0ms) commit transaction
1243
+ #<AirbrakeTestError: after_commit>
1244
+ Completed 500 Internal Server Error in 4.4ms
1245
+
1246
+ AirbrakeTestError (AirbrakeTestError):
1247
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1248
+ lib/airbrake/rack/middleware.rb:21:in `call'
1249
+
1250
+
1251
+ Connecting to database specified by DATABASE_URL
1252
+  (0.9ms) select sqlite_version(*)
1253
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1254
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1255
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1256
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:28:56 +0200
1257
+ Processing by DummyController#crash as HTML
1258
+  (0.0ms) begin transaction
1259
+ SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
1260
+  (0.0ms) commit transaction
1261
+ #<AirbrakeTestError: after_commit>
1262
+ Completed 500 Internal Server Error in 3.8ms
1263
+
1264
+ AirbrakeTestError (AirbrakeTestError):
1265
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1266
+ lib/airbrake/rack/middleware.rb:21:in `call'
1267
+
1268
+
1269
+ Connecting to database specified by DATABASE_URL
1270
+  (0.9ms) select sqlite_version(*)
1271
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1272
+  (0.1ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1273
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1274
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:29:07 +0200
1275
+ Processing by DummyController#crash as HTML
1276
+ NoMethodError: undefined method `[]' for nil:NilClass: PRAGMA table_info("books")
1277
+ Completed 500 Internal Server Error in 1.2ms
1278
+
1279
+ ActiveRecord::StatementInvalid (NoMethodError: undefined method `[]' for nil:NilClass: PRAGMA table_info("books")):
1280
+ lib/airbrake/rails/active_record_subscriber.rb:19:in `block in call'
1281
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `each'
1282
+ lib/airbrake/rails/active_record_subscriber.rb:14:in `call'
1283
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1284
+ lib/airbrake/rack/middleware.rb:21:in `call'
1285
+
1286
+
1287
+ Connecting to database specified by DATABASE_URL
1288
+  (0.9ms) select sqlite_version(*)
1289
+  (0.3ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
1290
+  (0.2ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
1291
+  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
1292
+ Started GET "/crash" for 127.0.0.1 at 2019-03-04 16:29:14 +0200
1293
+ Processing by DummyController#crash as HTML
1294
+  (0.0ms) begin transaction
1295
+ SQL (0.1ms) INSERT INTO "books" ("title") VALUES (?) [["title", "book"]]
1296
+  (0.0ms) commit transaction
1297
+ #<AirbrakeTestError: after_commit>
1298
+ Completed 500 Internal Server Error in 4.5ms
1299
+
1300
+ AirbrakeTestError (AirbrakeTestError):
1301
+ lib/airbrake/rack/middleware.rb:33:in `call!'
1302
+ lib/airbrake/rack/middleware.rb:21:in `call'
1303
+
1304
+
@@ -271,5 +271,23 @@ RSpec.describe "Rails integration specs" do
271
271
 
272
272
  get '/crash'
273
273
  end
274
+
275
+ context "when caller location cannot be found for a query" do
276
+ before { allow(Kernel).to receive(:caller).and_return([]) }
277
+
278
+ it "sends query to Airbrake without caller location" do
279
+ expect(Airbrake).to receive(:notify_query).with(
280
+ hash_including(
281
+ route: '/crash(.:format)',
282
+ method: 'GET',
283
+ func: nil,
284
+ file: nil,
285
+ line: nil
286
+ )
287
+ ).at_least(:once)
288
+
289
+ get '/crash'
290
+ end
291
+ end
274
292
  end
275
293
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.0
4
+ version: 8.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.