yabeda-activerecord 0.1.0 → 0.1.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: 0c70f9b0924926fec4e5346d38bc65a9a821260d8904926c88a8584b050c93c7
4
- data.tar.gz: 60808116a424d5852d037995bd14040c2f0cc758c242faa4a8e4381898b45685
3
+ metadata.gz: 83bb6125e110b70693f45275374a147ce852728cc61aa9c7470d3a6252a4280e
4
+ data.tar.gz: eda2a52714b38359ce75d8cbd947050ae5853919c87bc1d3603899a56031bab6
5
5
  SHA512:
6
- metadata.gz: a11ba38c80c349b9ad490b1908a7915fb716b9e01a653ad8553bbdcb3738b46e7af71ad6c764b346097d467cdaa5781c33dddf19c4112e410603e7f611148d90
7
- data.tar.gz: c31e9c3628b8d19c04b90aaada7bb86f4d9069a75dbde92f5af0ebe7cb4258401efb6939914e5b6cfd77951ec168c239b370f820aa5b1d646fa5ae5ea2f809dc
6
+ metadata.gz: e6b7fef1515cd4df6327c0ca8261e6a9797a1c1a4909549b6fb472d0f05c895e568b32bab6a999ec9905c61e1a1f14623769f9568d9f7c3a1d6aaa08c28d521f
7
+ data.tar.gz: 5d1a28c0a1399c1129c37411e7e03f29d747c5a43731f9997c6d657198a8d77ee31212f0c07f4835a9c0322c41bba632a770cd242a1dc5bf4b635504f38194e6
data/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.1.1 - 2023-12-13
4
+
5
+ ### Fixed
6
+
7
+ - Fix deprecation warning in Rails 7.1. [#4](https://github.com/yabeda-rb/yabeda-activerecord/pull/4) by [@intrip][]
8
+
3
9
  ## 0.1.0 - 2022-05-27
4
10
 
5
11
  - Initial release: query performance metrics and connection pool stats. [@Envek][]
6
12
 
7
13
  [@Envek]: https://github.com/Envek/ "Andrey Novikov"
14
+ [@intrip]: https://github.com/intrip "Jacopo Beschi"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yabeda-activerecord (0.1.0)
4
+ yabeda-activerecord (0.1.1)
5
5
  activerecord (>= 6.0)
6
6
  yabeda (~> 0.6)
7
7
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module ActiveRecord
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -71,7 +71,12 @@ module Yabeda
71
71
 
72
72
  # Connection pool metrics collection
73
73
  collect do
74
- connection_pools = ::ActiveRecord::Base.connection_handler.connection_pool_list
74
+ connection_pools = \
75
+ if ::ActiveRecord.version >= Gem::Version.new("7.1")
76
+ ::ActiveRecord::Base.connection_handler.connection_pool_list(:all)
77
+ else
78
+ ::ActiveRecord::Base.connection_handler.connection_pool_list
79
+ end
75
80
 
76
81
  connection_pools.each do |connection_pool|
77
82
  stats = connection_pool.stat
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-27 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord