lograge-sql 2.3.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d435c21129588de106963c13febc8cd259660430a9bfdb95894cd626bd658f6c
4
- data.tar.gz: 5f942aaff99e144669f4b0b1c7d280fd11a800ab8f7f5ffc37197d891ae5c6b3
3
+ metadata.gz: 4741be36b981948cc0562664564b910b3bf0ed6bb02a0f39e0af3798bc66f5b6
4
+ data.tar.gz: 92d89a6ddae169b32be1b2512dcbc8fd06843891cc464873899c464be761efb5
5
5
  SHA512:
6
- metadata.gz: 628036a6a1f5a00e27a67b6c056d883dc183a58ffddb01bf63f717790f77182221301dc7582cf570dd718efa6d73993cb1dec04c3a6ecf3b8b453a06a25d5061
7
- data.tar.gz: 405f2fe165ffe7ddbe80816e9ca3b980886d25331986d8b9b0084ffb2b9b656c6f8327d0f03aac930e099333b2c1291f0e5c1f7d2ef1b3b5f8def06260e7f3c5
6
+ metadata.gz: 14c80d0b256734c869b82f6652afebc1f3e1b64e465c1c4e49b7dfe1407ebe28771b070abde47a4b7a14e85a082e3e5c47d88c867ae064bedda2b83f150d2eb8
7
+ data.tar.gz: 40176ec3866decded7e8801b41a5521abe466f5d52858d5040e70b341e7132412377c1fa6d6d12859dcbc28594e7ddad3037bdee747747ac8b98409e70c038a1
@@ -21,6 +21,7 @@ module Lograge
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::RuntimeRegistry.sql_runtime ||= 0.0
24
25
  ActiveRecord::RuntimeRegistry.sql_runtime += event.duration
25
26
  end
26
27
 
@@ -3,6 +3,6 @@
3
3
  module Lograge
4
4
  module Sql
5
5
  # Gem version
6
- VERSION = '2.3.1'
6
+ VERSION = '2.4.0'
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.1
4
+ version: 2.4.0
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-11-16 00:00:00.000000000 Z
11
+ date: 2024-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.2'
22
+ version: '7.3'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.2'
32
+ version: '7.3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: lograge
35
35
  requirement: !ruby/object:Gem::Requirement