activeerror 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168b4d7411f593afd0043c1ccd585c8cf5362c9bb41899c12a81be12a17d0ae8
|
4
|
+
data.tar.gz: 98e22d3a2b28786b084a50aa3d30fbd18c6652cd668f3e92a6a295209dcbfee5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283c72095b8d39ab8675d578b322df74668e34923d8aedd87d30ca3114a913b384b90da2f9fb7f434650c4d7109999aa22040bdbd12f6807c79b2af360c7021b
|
7
|
+
data.tar.gz: ec939f38abe8ca37501d6fac2d2caa5e29e4d1344ecee7b0005818b1385ca364b7fe51fef05f7d2821b646de98875d2040934f840510e2a3736f3038ea67e98c
|
@@ -4,14 +4,14 @@ class CreateActiveErrorFaults < ActiveRecord::Migration[7.1]
|
|
4
4
|
def change
|
5
5
|
create_table :active_error_faults do |t|
|
6
6
|
t.belongs_to :cause
|
7
|
-
t.
|
8
|
-
t.
|
7
|
+
t.binary :backtrace, lmit: 512.megabytes
|
8
|
+
t.binary :backtrace_locations, lmit: 512.megabytes
|
9
9
|
t.string :klass
|
10
10
|
t.text :message
|
11
11
|
t.string :controller
|
12
12
|
t.string :action
|
13
13
|
t.integer :instances_count
|
14
|
-
t.text :blamed_files
|
14
|
+
t.text :blamed_files, lmit: 512.megabytes
|
15
15
|
t.text :options
|
16
16
|
t.index %i(klass backtrace message)
|
17
17
|
|
@@ -5,8 +5,8 @@ class CreateActiveErrorInstances < ActiveRecord::Migration[7.1]
|
|
5
5
|
create_table :active_error_instances do |t|
|
6
6
|
t.belongs_to :fault
|
7
7
|
t.string :url
|
8
|
-
t.
|
9
|
-
t.
|
8
|
+
t.binary :headers, limit: 512.megabytes
|
9
|
+
t.binary :parameters, limit: 512.megabytes
|
10
10
|
|
11
11
|
t.timestamps
|
12
12
|
end
|
@@ -9,7 +9,7 @@ module ActiveError
|
|
9
9
|
def call(env)
|
10
10
|
@app.call(env)
|
11
11
|
rescue Exception => exception # rubocop:disable Lint/RescueException, Naming/RescuedExceptionsVariableName
|
12
|
-
Captor.new(exception:, request: env
|
12
|
+
Captor.new(exception:, request: ActionDispatch::Request.new(env)).capture
|
13
13
|
|
14
14
|
raise
|
15
15
|
end
|
data/lib/active_error/version.rb
CHANGED
data/lib/active_error.rb
CHANGED