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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb15449c7e06c6b3b77d2d15198052ca86316e10f9541cf5b09d61360b01c437
4
- data.tar.gz: cb38642c8fe9051c9efe71c65e6261883513886f379eb5ccd1f36bbdf0eabcd9
3
+ metadata.gz: 700783c47847a38ba2c5692ad71406243de74e8f6227f52e2ec6d80579b8224e
4
+ data.tar.gz: 4daf24145c1ad48e1d207e7066663b7ac8a38d3afb3816647f0a2a48aecc88da
5
5
  SHA512:
6
- metadata.gz: 022c13299725e473ecca919d122a71189d0a131ea84e5618b30b92f7e760fc416968e66d1b8325f503ab544cc25e7375eb07170622672108528afafd6589e7d7
7
- data.tar.gz: cdc622c4f5c1ffb6cbb70d0378381414293f3cc4bb82d0f8e9c6f3cd8e0e9d53e9aaf29e04788362b2a2fc7cd5a05bd8b0b68607bb031190690192d522702e3a
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.2.0...HEAD
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 allowance), and the rest are told as others. A regression
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Duel
4
4
  module ActiveRecord
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
@@ -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 ratio metric, in nanoseconds, like CPU
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: :ratio, unit: "ns", floor: 300_000, limit: 1.05}}
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.2.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: "0.2"
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: "0.2"
27
+ version: 0.3.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activerecord
30
30
  requirement: !ruby/object:Gem::Requirement