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: 251b10d3b271c26da91b3d6c6b41f84eb49f4b6f732d89c4e0f377ead50ae797
4
- data.tar.gz: bf48a45b74e5fd78f81e7f3b4250f339c7cd39c2ce230efefa4bf2d847898b83
3
+ metadata.gz: 62e6a5b2b10edd2ff411156853607b09540c06755da33754bebc328162d271e4
4
+ data.tar.gz: d8640e95d17dafc7593b8a10ba3875bf3287060455ece560215b74931732e38f
5
5
  SHA512:
6
- metadata.gz: 3ec1fe5f5e842f5eb8975e6d19d5eb923b8dfe6425a86c85b650b1781d2f060a61fc866c159d0e940cb488c2d38cb9e72b9c26034d79638b1a7c2319f9c2fe9f
7
- data.tar.gz: 9ab3ecb3de8b864c850b5b398e82c121cde1a4ecf9184170bb4e2c6f7229cb2306e4df21516f5d8fa60873fbb1bde1901f66358b6a098969ae6f86e0a48cca2f
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' => ['ActiveRecord::ConnectionAdapters::AbstractAdapter'],
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
 
@@ -47,7 +47,7 @@ module RailsSpotlight
47
47
  begin
48
48
  value.to_json(methods: [:duration])
49
49
  new_value = value
50
- rescue StandardError
50
+ rescue StandardError, SystemStackError
51
51
  new_value = NOT_JSON_ENCODABLE
52
52
  end
53
53
  hash[key] = new_value
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsSpotlight
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.6'
5
5
  end
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 = '_rails_spotlight_extension_js.html.erb'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pawel Niemczyk