lograge-sql 2.3.0 → 2.3.1

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: 8eeabf2a3a00c53b0d7483d6dd84659f2434eb90f0741183370a1559bf9eab1d
4
- data.tar.gz: da0adc7fa61626a386b563d622234c02971da52f310e687f313b95cf074a6434
3
+ metadata.gz: d435c21129588de106963c13febc8cd259660430a9bfdb95894cd626bd658f6c
4
+ data.tar.gz: 5f942aaff99e144669f4b0b1c7d280fd11a800ab8f7f5ffc37197d891ae5c6b3
5
5
  SHA512:
6
- metadata.gz: fcc84f05b613c82c0b00d9747d6a07976c324e1acef7a6b7b7e98987adb1b319ffcbfe92752682b579ed0eaeb00651431ec9046119dccac8df66a0750a050924
7
- data.tar.gz: 333ff533242871fcbb4ea2130da71fbdf232625c32b206634fca0f374b7e96e1b2d0b66c0dcccb7ec2799b00b015bcfcde953e54732e5d42d84f4cec6cbb12b4
6
+ metadata.gz: 628036a6a1f5a00e27a67b6c056d883dc183a58ffddb01bf63f717790f77182221301dc7582cf570dd718efa6d73993cb1dec04c3a6ecf3b8b453a06a25d5061
7
+ data.tar.gz: 405f2fe165ffe7ddbe80816e9ca3b980886d25331986d8b9b0084ffb2b9b656c6f8327d0f03aac930e099333b2c1291f0e5c1f7d2ef1b3b5f8def06260e7f3c5
@@ -15,13 +15,13 @@ module Lograge
15
15
 
16
16
  private
17
17
 
18
- # Add the event duration to the overall ActiveRecord::LogSubscriber.runtime;
18
+ # Add the event duration to the overall ActiveRecord::RuntimeRegistry.sql_runtime;
19
19
  # note we don't do this when `keep_default_active_record_log` is enabled,
20
20
  # as ActiveRecord is already adding the duration.
21
21
  def increase_runtime_duration(event)
22
22
  return if Rails.application.config.lograge_sql.keep_default_active_record_log
23
23
 
24
- ActiveRecord::LogSubscriber.runtime += event.duration
24
+ ActiveRecord::RuntimeRegistry.sql_runtime += event.duration
25
25
  end
26
26
 
27
27
  def filter_query(event)
@@ -3,6 +3,6 @@
3
3
  module Lograge
4
4
  module Sql
5
5
  # Gem version
6
- VERSION = '2.3.0'
6
+ VERSION = '2.3.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lograge-sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Giuffrida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-18 00:00:00.000000000 Z
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord