query_diet 0.7.0 → 0.7.1

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: 17f9c2961a95f7d7c70c35ae50bc6f0e659bc3c746ddf519c65448cc9faefa98
4
- data.tar.gz: 7f76be36042170e1e8d5aff0b066d552f9fff66f2ea5d31bffee3924e5e21368
3
+ metadata.gz: d4cbd625d753ea248e00e78049554a3a385dbb1ef3c45d70d77e0b957034538a
4
+ data.tar.gz: 4e636ba8f1a2d39648ec6072d7be893d0e105854f003d26dfd618f4745e1aa2a
5
5
  SHA512:
6
- metadata.gz: 17e90e9a4ec095f1c333f719226ec938d8f058526bdf14c2d731842cf1322057d3d14f35b279e0dd62b86600366b4318e8206852e104a71a25a0bc9dc323f309
7
- data.tar.gz: 2c7d0bac77d92987974d9229535bff8b438e520c2b00ae71ef37206eef6d2d114ffa07515e5b67af5b78a08a103738fd588ae5c64f8f80dc00f373950dd1e583
6
+ metadata.gz: d1e410f4870b44b6dfb708292f4e3c01a673572e752f4084e421e4bab74075a207db37e109cdfaf080b9be922c1a760b68c240ebf96a29b8fd29a08681e6d862
7
+ data.tar.gz: 5607974067f7ac67cb619f8f8a89596f8ea39fa52a8adfa9eb6371a26e00e847faeb37319478c64b54ee928539672148074c21251fa6ab09d5bb2147b09fc4eb
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Query Diet [![Build Status](https://travis-ci.org/makandra/query_diet.svg?branch=master)](https://travis-ci.org/makandra/query_diet)
1
+ Query Diet [![Tests](https://github.com/makandra/query_diet/workflows/Tests/badge.svg)](https://github.com/makandra/query_diet/actions)
2
2
  ==========
3
3
 
4
4
  Query Diet counts the number of database queries for the last request and *subtly* displays it in the upper right corner of your screen.
@@ -67,7 +67,7 @@ Rails.application.config.content_security_policy do |policy|
67
67
 
68
68
  ### Rails compatibility
69
69
 
70
- The gem is tested to work with Rails 3.2+ and Ruby 2.0+.
70
+ The gem is tested to work with Rails 3.2+ and Ruby 2.5.8+.
71
71
 
72
72
  For Rails 2.3 and Ruby 1.8.7 support, use a version < 0.6.
73
73
 
@@ -1,7 +1,13 @@
1
1
  module QueryDiet
2
2
  module ActiveRecordExt
3
- def log(query, *)
4
- QueryDiet::Logger.log(query) { super }
3
+ if RUBY_VERSION >= '3'
4
+ def log(query, *, **)
5
+ QueryDiet::Logger.log(query) { super }
6
+ end
7
+ else
8
+ def log(query, *)
9
+ QueryDiet::Logger.log(query) { super }
10
+ end
5
11
  end
6
12
  end
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module QueryDiet
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_diet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-24 00:00:00.000000000 Z
12
+ date: 2022-02-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rails database query counter that stays out of your way
15
15
  email: github@makandra.de
@@ -28,7 +28,8 @@ files:
28
28
  homepage: https://github.com/makandra/query_diet
29
29
  licenses:
30
30
  - MIT
31
- metadata: {}
31
+ metadata:
32
+ rubygems_mfa_required: 'true'
32
33
  post_install_message:
33
34
  rdoc_options: []
34
35
  require_paths:
@@ -44,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
45
  - !ruby/object:Gem::Version
45
46
  version: '0'
46
47
  requirements: []
47
- rubygems_version: 3.1.3
48
+ rubygems_version: 3.2.3
48
49
  signing_key:
49
50
  specification_version: 4
50
51
  summary: Rails database query counter that stays out of your way