faultline-rails 0.4.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: effc17275c134ae8cff03dbcb56c9599ef226c5ef95cbeef465ce545355d583d
4
- data.tar.gz: '086260474f100cf16be33eeaa478e0d7552106ae73b96fde52dc713ef6106c67'
3
+ metadata.gz: c846154434391fa5b6aff599c9c6f70dfd2d90690d5ce2050be6d284cd2d5c39
4
+ data.tar.gz: 3191607d7ef2b2f0694d0a10e0a54899ddd4569dd007adba6d9f4e4bc09c50f2
5
5
  SHA512:
6
- metadata.gz: e29aacc40843e06de209d838f83e52ce96b0e4f761b519b4668e27f31b7418fe7e10aedbf15b5fe79dc4c672a3255133d6aa01845f485e08f38ae4ec17ff4587
7
- data.tar.gz: b8790e34a7620ed17e2960071558d92099fbf0f698c70521915088542ec97e0c4e3d72bbe6a3ea3bde625174ec779546d859035f8f91b99f6c98b5c74854e980
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,26 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Configure Ransack for Faultline LoggedException model.
4
- # Ransack 4.x automatically adds `.ransack` to ActiveRecord::Relation via its railtie.
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[action_name backtrace controller_name created_at environment
14
- exception_class id message remote_ip request
15
- updated_at user_agent user_info]
16
- end
17
-
18
- def self.ransackable_associations(auth_object = nil)
19
- []
20
- end
21
- end
22
- end
23
- end
24
- end
25
-
26
- Faultline::RansackConfig.apply!
3
+ # Ransack configuration is now defined directly on Faultline::LoggedException
4
+ # in app/models/faultline/logged_exception.rb.
@@ -1,3 +1,3 @@
1
1
  module Faultline
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faultline-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tamiru Hailu