duel-activerecord 0.2.0 → 0.3.0
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 +4 -4
- data/CHANGELOG.md +9 -1
- data/README.md +1 -1
- data/lib/duel/activerecord/version.rb +1 -1
- data/lib/duel/activerecord.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 700783c47847a38ba2c5692ad71406243de74e8f6227f52e2ec6d80579b8224e
|
|
4
|
+
data.tar.gz: 4daf24145c1ad48e1d207e7066663b7ac8a38d3afb3816647f0a2a48aecc88da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11de9ebec739dcac2044b5323689acd94f9439d78c2acbb938644d9dadb0fc30e7732c5e02af8af64a8e2811d8939e2ea6c2631acc18724477ee6b82d8a550a8
|
|
7
|
+
data.tar.gz: bb60fe9f1ab8d3853c735dd0fe1df8dc51990339bb76af1104782d189474e7a4c01f6cb8469dbfe04836c92a5c9ae91ca1f4e352c74e4ea96c0c411926793a8f
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.0] - 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- It requires Duel 0.3.0 or later (`~> 0.3.0`), the release it's
|
|
15
|
+
tested with, as Duel 0.3.0 changes what plugins and benchmarks call.
|
|
16
|
+
|
|
10
17
|
## [0.2.0] - 2026-11-16
|
|
11
18
|
|
|
12
19
|
### Changed
|
|
@@ -73,7 +80,8 @@ and Ruby 3.4 or later (or JRuby 10, or TruffleRuby 40).
|
|
|
73
80
|
CI.
|
|
74
81
|
- RBS signatures in sig/, checked with Steep.
|
|
75
82
|
|
|
76
|
-
[Unreleased]: https://github.com/sferik/duel-ruby/compare/duel-activerecord-v0.
|
|
83
|
+
[Unreleased]: https://github.com/sferik/duel-ruby/compare/duel-activerecord-v0.3.0...HEAD
|
|
84
|
+
[0.3.0]: https://github.com/sferik/duel-ruby/compare/duel-activerecord-v0.2.0...duel-activerecord-v0.3.0
|
|
77
85
|
[0.2.0]: https://github.com/sferik/duel-ruby/compare/duel-activerecord-v0.1.8...duel-activerecord-v0.2.0
|
|
78
86
|
[0.1.8]: https://github.com/sferik/duel-ruby/compare/duel-activerecord-v0.1.7...duel-activerecord-v0.1.8
|
|
79
87
|
[0.1.7]: https://github.com/sferik/duel-ruby/compare/duel-activerecord-v0.1.6...duel-activerecord-v0.1.7
|
data/README.md
CHANGED
|
@@ -120,7 +120,7 @@ every id). That's a hash of the SQL for each query, and no copy of it
|
|
|
120
120
|
(nothing a benchmark's allocations would count), but it holds on to the
|
|
121
121
|
SQL of the first eight statements sent since a sample was last
|
|
122
122
|
explained (with [duel-retained](https://github.com/sferik/duel-ruby/tree/main/plugins/retained),
|
|
123
|
-
that's within its
|
|
123
|
+
that's within what it lets a sample keep, its `per_sample:`), and the rest are told as others. A regression
|
|
124
124
|
shows the three a sample sent most, and how many times an iteration
|
|
125
125
|
(and others'), of its last 1,000 queries, but those in `untimed` blocks,
|
|
126
126
|
with at most 80 characters of each.
|
data/lib/duel/activerecord.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Duel
|
|
|
16
16
|
# opened (counted)
|
|
17
17
|
# - active_record_instantiations: the records it instantiated (counted)
|
|
18
18
|
# - active_record_query_time, when asked for: how long the queries
|
|
19
|
-
# took, in elapsed time (a
|
|
19
|
+
# took, in elapsed time (a timed metric, in nanoseconds, like CPU
|
|
20
20
|
# time)
|
|
21
21
|
#
|
|
22
22
|
# # .duel.rb
|
|
@@ -40,7 +40,7 @@ module Duel
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
# Elapsed time, measured when asked for (see the README).
|
|
43
|
-
QUERY_TIME = {"active_record_query_time" => {kind: :
|
|
43
|
+
QUERY_TIME = {"active_record_query_time" => {kind: :timed, unit: "ns", floor: 300_000, limit: 1.05}}
|
|
44
44
|
|
|
45
45
|
# Configures Duel for the plugin (c.use :activerecord): its metrics,
|
|
46
46
|
# and +query_time+ too if true. +ignore+, if given, is called with
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: duel-activerecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Berlin
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
-
|
|
17
17
|
- ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.3.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -24,7 +24,7 @@ dependencies:
|
|
|
24
24
|
-
|
|
25
25
|
- ~>
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version:
|
|
27
|
+
version: 0.3.0
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: activerecord
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|