faultline-rails 0.3.0 → 0.5.0
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c846154434391fa5b6aff599c9c6f70dfd2d90690d5ce2050be6d284cd2d5c39
|
|
4
|
+
data.tar.gz: 3191607d7ef2b2f0694d0a10e0a54899ddd4569dd007adba6d9f4e4bc09c50f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89a84d8d6ff2955fa71be82b7deef6100e10953548ef381cde60b2e0df57bd3fa07403899900d8ce85bb1ee11ca66ee316472062e77baedceccde538812cf65b
|
|
7
|
+
data.tar.gz: d63e16bf9eba501733ef42b694fb1315da801fa544579d2c5db999ee547841d2c7879247573f374303283e7aec100cbef436d4e9e5a608074270efebdda0567d
|
|
@@ -124,45 +124,4 @@ table { border-collapse: collapse; width: 100%; }
|
|
|
124
124
|
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
|
|
125
125
|
.sr-only-focusable:focus { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; border: 0; }
|
|
126
126
|
|
|
127
|
-
/* ═══════════════════════════════════════════════════════════════════
|
|
128
|
-
TAILWIND OVERRIDES (used when Tailwind CSS IS available)
|
|
129
|
-
═══════════════════════════════════════════════════════════════════ */
|
|
130
|
-
|
|
131
|
-
/* Tailwind-compatible pagination */
|
|
132
|
-
.fl-pagination .pagination {
|
|
133
|
-
@apply flex flex-wrap gap-2 items-center list-none m-0 p-0;
|
|
134
|
-
}
|
|
135
|
-
.fl-pagination .pagination a {
|
|
136
|
-
@apply px-3 py-1.5 rounded-md text-indigo-600 hover:bg-indigo-50 no-underline text-sm;
|
|
137
|
-
}
|
|
138
|
-
.fl-pagination .pagination span.current {
|
|
139
|
-
@apply px-3 py-1.5 rounded-md bg-indigo-600 text-white font-semibold text-sm;
|
|
140
|
-
}
|
|
141
|
-
.fl-pagination .pagination span.gap {
|
|
142
|
-
@apply px-2 py-1.5 text-gray-400 text-sm;
|
|
143
|
-
}
|
|
144
127
|
|
|
145
|
-
/* Tailwind-compatible search input */
|
|
146
|
-
.fl-search input[type="search"] {
|
|
147
|
-
@apply flex-1 min-w-0 px-3 py-2 border border-gray-300 rounded-md text-sm focus:ring-indigo-500 focus:border-indigo-500 focus:outline-none;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* Tailwind-compatible buttons */
|
|
151
|
-
.fl-btn {
|
|
152
|
-
@apply inline-flex items-center justify-center px-4 py-2 border border-transparent rounded-md text-sm font-semibold cursor-pointer no-underline;
|
|
153
|
-
}
|
|
154
|
-
.fl-btn-primary {
|
|
155
|
-
@apply bg-indigo-600 text-white hover:bg-indigo-700;
|
|
156
|
-
}
|
|
157
|
-
.fl-btn-danger {
|
|
158
|
-
@apply bg-red-600 text-white hover:bg-red-700;
|
|
159
|
-
}
|
|
160
|
-
.fl-btn-outline {
|
|
161
|
-
@apply bg-transparent border border-gray-300 text-red-700 hover:bg-red-50;
|
|
162
|
-
}
|
|
163
|
-
.fl-btn-sm {
|
|
164
|
-
@apply px-3 py-1.5 text-xs;
|
|
165
|
-
}
|
|
166
|
-
.fl-btn-ghost {
|
|
167
|
-
@apply bg-transparent text-gray-500 hover:bg-gray-100;
|
|
168
|
-
}
|
|
@@ -5,6 +5,16 @@ module Faultline
|
|
|
5
5
|
self.table_name = "faultline_logged_exceptions"
|
|
6
6
|
HOSTNAME = Socket.gethostname
|
|
7
7
|
|
|
8
|
+
def self.ransackable_attributes(auth_object = nil)
|
|
9
|
+
%w[action_name backtrace controller_name created_at environment
|
|
10
|
+
exception_class id message remote_ip request
|
|
11
|
+
updated_at user_agent user_info]
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def self.ransackable_associations(auth_object = nil)
|
|
15
|
+
[]
|
|
16
|
+
end
|
|
17
|
+
|
|
8
18
|
class << self
|
|
9
19
|
def create_from_exception(controller, exception, data)
|
|
10
20
|
message = exception.message.to_s
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# We just need to declare which attributes are searchable.
|
|
6
|
-
module Faultline
|
|
7
|
-
module RansackConfig
|
|
8
|
-
def self.apply!
|
|
9
|
-
return unless defined?(Ransack)
|
|
10
|
-
|
|
11
|
-
Faultline::LoggedException.class_eval do
|
|
12
|
-
def self.ransackable_attributes(auth_object = nil)
|
|
13
|
-
%w[exception_class controller_name action_name message created_at]
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def self.ransackable_associations(auth_object = nil)
|
|
17
|
-
[]
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
Faultline::RansackConfig.apply!
|
|
3
|
+
# Ransack configuration is now defined directly on Faultline::LoggedException
|
|
4
|
+
# in app/models/faultline/logged_exception.rb.
|
data/lib/faultline/version.rb
CHANGED