query_count 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/query_count/controller_runtime.rb +2 -2
- data/lib/query_count/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c9d5b8a93c7c42f9e05ba47bb2a574cec6586816a33d5872544ebcaf3f09ba9
|
4
|
+
data.tar.gz: 07670e5b0900b9632115afd82bc2d363f5cf774161c7dc4d2a616d1aca83da8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df577316e6a9098c8cd56cb7605bf785dad7fb8c2ee5faca91cb2b7111db2167109c32b336a905e9b689d2e4291b7fd64d5d22a2fdcc6fff857039e680e6e9ae
|
7
|
+
data.tar.gz: adcf9e85c7684f4df6606cd4e4e00a52f59d4d722e48207d1dd02d99dd950cfbe83a6b3c17dc4c5539c3dc89e3bc15a4d60253058d5d3c05a3bdb8ea55853b2e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# [1.1.1](https://github.com/rubysamurai/query_count/compare/v1.1.0...v1.1.1) (2022-02-13)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Prevent `NoMethodError` when the database is not established ([#1](https://github.com/rubysamurai/query_count/pull/1)) ([ff8a47b](https://github.com/rubysamurai/query_count/commit/ff8a47b8fd223e24588c2eb08e0ded3bc7df4b28)) (@tubaxenor)
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
# [1.1.0](https://github.com/rubysamurai/query_count/compare/v1.0.0...v1.1.0) (2022-01-26)
|
2
11
|
|
3
12
|
|
@@ -6,8 +6,8 @@ module QueryCount
|
|
6
6
|
module ClassMethods
|
7
7
|
def log_process_action(payload)
|
8
8
|
messages = super
|
9
|
-
count = payload[:query_count]
|
10
|
-
count_cache = payload[:query_count_cache]
|
9
|
+
count = payload[:query_count] || 0
|
10
|
+
count_cache = payload[:query_count_cache] || 0
|
11
11
|
|
12
12
|
messages.push(
|
13
13
|
"SQL Queries: #{count + count_cache}"\
|
data/lib/query_count/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_count
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|