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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/yabeda/active_record/version.rb +1 -1
- data/lib/yabeda/active_record.rb +6 -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: 83bb6125e110b70693f45275374a147ce852728cc61aa9c7470d3a6252a4280e
|
4
|
+
data.tar.gz: eda2a52714b38359ce75d8cbd947050ae5853919c87bc1d3603899a56031bab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/yabeda/active_record.rb
CHANGED
@@ -71,7 +71,12 @@ module Yabeda
|
|
71
71
|
|
72
72
|
# Connection pool metrics collection
|
73
73
|
collect do
|
74
|
-
connection_pools =
|
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.
|
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:
|
11
|
+
date: 2023-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|