rails_spotlight 0.3.4 → 0.3.6
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: 62e6a5b2b10edd2ff411156853607b09540c06755da33754bebc328162d271e4
|
4
|
+
data.tar.gz: d8640e95d17dafc7593b8a10ba3875bf3287060455ece560215b74931732e38f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f66c81cf9e894854645f6547254378a092542abae8394469bab6c1227d2e8f9b8d5a017efbaacc8d8c03aae347835c9f5137bab7a58f686023a168c9a278af7
|
7
|
+
data.tar.gz: 36c7f3134dcb44e96aa869cdb07682e586f6e42a64fcebb12905dfe168d67ee64982fa470a76ee84143d70d5fc5c5982faf9b8b89ba3f0813180a37eb49567a8
|
@@ -97,7 +97,7 @@ module RailsSpotlight
|
|
97
97
|
|
98
98
|
def self.migrating?
|
99
99
|
defined?(Rake) && Rake.application.top_level_tasks.any? do |task|
|
100
|
-
task.start_with?('db:migrate', 'db:schema:load')
|
100
|
+
task.start_with?('db:migrate', 'db:schema:load', 'db:rollback')
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -6,7 +6,12 @@ require 'erb'
|
|
6
6
|
module RailsSpotlight
|
7
7
|
class Configuration # rubocop:disable Metrics/ClassLength
|
8
8
|
DEFAULT_NOT_ENCODABLE_EVENT_VALUES = {
|
9
|
-
'ActiveRecord' => [
|
9
|
+
'ActiveRecord' => [
|
10
|
+
'ActiveRecord::ConnectionAdapters::AbstractAdapter',
|
11
|
+
'ActiveRecord::ConnectionAdapters::PostgreSQLAdapter',
|
12
|
+
'ActiveRecord::ConnectionAdapters::RealTransaction',
|
13
|
+
'ActiveRecord::SchemaMigration'
|
14
|
+
],
|
10
15
|
'ActionDispatch' => ['ActionDispatch::Request', 'ActionDispatch::Response']
|
11
16
|
}.freeze
|
12
17
|
|
data/lib/tasks/init.rake
CHANGED
@@ -48,7 +48,7 @@ namespace :rails_spotlight do # rubocop:disable Metrics/BlockLength
|
|
48
48
|
desc 'Generate rails_spotlight JavaScript ERB partial for application layout to allow injecting JS code from the extension'
|
49
49
|
task inject_js_partial: :environment do # rubocop:disable Metrics/BlockLength
|
50
50
|
# Define the partial name and path
|
51
|
-
partial_name = '
|
51
|
+
partial_name = 'rails_spotlight_extension_js.html.erb'
|
52
52
|
partial_path = "app/views/layouts/#{partial_name}"
|
53
53
|
|
54
54
|
# Define the JavaScript code
|