query_diet 0.7.0 → 0.7.2

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: 17f9c2961a95f7d7c70c35ae50bc6f0e659bc3c746ddf519c65448cc9faefa98
4
- data.tar.gz: 7f76be36042170e1e8d5aff0b066d552f9fff66f2ea5d31bffee3924e5e21368
3
+ metadata.gz: adc811cbb6edd8cca833ee1aa21c21bffd0462033efcc285ee823f60cc11fcb5
4
+ data.tar.gz: faf9dc0518a10f0809c6412b724abc35739d9a42228667f4a9061a1e70279e14
5
5
  SHA512:
6
- metadata.gz: 17e90e9a4ec095f1c333f719226ec938d8f058526bdf14c2d731842cf1322057d3d14f35b279e0dd62b86600366b4318e8206852e104a71a25a0bc9dc323f309
7
- data.tar.gz: 2c7d0bac77d92987974d9229535bff8b438e520c2b00ae71ef37206eef6d2d114ffa07515e5b67af5b78a08a103738fd588ae5c64f8f80dc00f373950dd1e583
6
+ metadata.gz: c6dce92be326127f4bdff50baa94df1fb483be0819071a691cc76bc516aa46175c94b5394d5753a4018298b658c5d30a24003134dae0f609f5c6f77ff70be7bd
7
+ data.tar.gz: 1e532fa2a7d53732881cfccdaed64e3d2bddfd0ba0f484cd0a02e598d0cebf4d1d2183eff0481034e7e710df629e2f8282cb3608d01db4d7b2f7e257186bf2fd
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,9 +1,17 @@
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
8
14
 
9
- ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:prepend, QueryDiet::ActiveRecordExt)
15
+ ActiveSupport.on_load(:active_record) do
16
+ ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:prepend, QueryDiet::ActiveRecordExt)
17
+ end
@@ -1,3 +1,3 @@
1
1
  module QueryDiet
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.2'
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.2
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: 2024-08-21 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.5.11
48
49
  signing_key:
49
50
  specification_version: 4
50
51
  summary: Rails database query counter that stays out of your way