query_count 1.1.0 → 1.1.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: 66024a7857129277ac1750e76cbfc12c00dd5583fa18456c27e24c8165b88705
4
- data.tar.gz: 8241feb72c765ecbc6f142779152c10fd6d71f8b489169c46a5b85c733a55249
3
+ metadata.gz: 1c9d5b8a93c7c42f9e05ba47bb2a574cec6586816a33d5872544ebcaf3f09ba9
4
+ data.tar.gz: 07670e5b0900b9632115afd82bc2d363f5cf774161c7dc4d2a616d1aca83da8d
5
5
  SHA512:
6
- metadata.gz: b9209026496704cf1abce72bc6bc9dc26c020a38d54ed0d344facf009bb58915b2bdefbfcd3b2db4bec2cddad9b6263a77fba5b753513f85c5e7b9024a04f572
7
- data.tar.gz: bb7aa63426c6640384a5dc0492ae36c7087fbe0f69e5fdedf277c784965deb7e4b4dbb26620354b0703969f4fd6bd5b20826d9e6c7910cac77bbe7054bf70de0
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}"\
@@ -1,3 +1,3 @@
1
1
  module QueryCount
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
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.0
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-01-26 00:00:00.000000000 Z
11
+ date: 2022-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord