test-prof 1.6.0 → 1.6.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 +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/rubocop/test_prof/plugin.rb +1 -1
- data/lib/test_prof/rspec_dissect.rb +2 -2
- data/lib/test_prof/ruby_prof/rspec.rb +2 -0
- data/lib/test_prof/ruby_prof.rb +4 -2
- data/lib/test_prof/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72badfce23d7dbe5d30e831145aeda6d6a0764b8fc4216fbacd1ee5feaf4ff10
|
|
4
|
+
data.tar.gz: 3ee75570775da64444ed2a000c6cf851690bbe2b886b65c595e7e8cef65c7dde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b1f225a579283031fa9596b33e83349c70b099e896c30ec64d22cce39840d363f18e814e1568e44f15949ac3806ff9135672afabe071b82c627eab5a66aba9b
|
|
7
|
+
data.tar.gz: 633da253533f3e5e1cc62c7c96868611bb725b6c1448d43d9be44ec1afb5093eb5ac08dd6f5b54f8300318b8d97618c2b89f218aa397740b70ebe63af2c22520
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
4
|
|
|
5
|
+
## 1.6.2 (2026-07-16)
|
|
6
|
+
|
|
7
|
+
- Add `logger` as a runtime dependency (it's no longer a default gem in Ruby 4.0). ([@moznion][])
|
|
8
|
+
|
|
9
|
+
- Fix `RSpecDissect` crashing with `undefined method 'last' for nil` when a `let` is evaluated on a non-example thread (e.g. a Capybara `:js`/system spec server thread). The span-stack thread-local is now lazily initialized so off-example-thread access is a safe no-op.
|
|
10
|
+
|
|
11
|
+
- Add support for ruby-prof's FlameGraphPrinter
|
|
12
|
+
|
|
13
|
+
## 1.6.1 (2026-04-02)
|
|
14
|
+
|
|
15
|
+
- Require MFA to publish the gem.
|
|
16
|
+
|
|
5
17
|
## 1.6.0 (2026-03-18)
|
|
6
18
|
|
|
7
19
|
- Add TPS profiler. ([@palkan][])
|
|
@@ -502,3 +514,4 @@ See [changelog](https://github.com/test-prof/test-prof/blob/v0.8.0/CHANGELOG.md)
|
|
|
502
514
|
[@elasticspoon]: https://github.com/elasticspoon
|
|
503
515
|
[@Rylan12]: https://github.com/Rylan12
|
|
504
516
|
[@kddnewton]: https://github.com/kddnewton
|
|
517
|
+
[@moznion]: https://github.com/moznion
|
|
@@ -10,7 +10,7 @@ module RuboCop
|
|
|
10
10
|
LintRoller::About.new(
|
|
11
11
|
name: "test-prof",
|
|
12
12
|
version: ::TestProf::VERSION,
|
|
13
|
-
homepage: "https://test-prof.evilmartians.io/misc/rubocop",
|
|
13
|
+
homepage: "https://test-prof.evilmartians.io/guide/misc/rubocop",
|
|
14
14
|
description: "RuboCop plugin to help you write more performant tests."
|
|
15
15
|
)
|
|
16
16
|
end
|
|
@@ -86,11 +86,11 @@ module TestProf
|
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
def current_span
|
|
89
|
-
|
|
89
|
+
span_stack.last
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
def span_stack
|
|
93
|
-
Thread.current[:_rspec_dissect_spans_stack]
|
|
93
|
+
Thread.current[:_rspec_dissect_spans_stack] ||= []
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
def track(type, id: nextid, **meta)
|
data/lib/test_prof/ruby_prof.rb
CHANGED
|
@@ -31,7 +31,8 @@ module TestProf
|
|
|
31
31
|
"." => "DotPrinter",
|
|
32
32
|
"call_stack" => "CallStackPrinter",
|
|
33
33
|
"call_tree" => "CallTreePrinter",
|
|
34
|
-
"multi" => "MultiPrinter"
|
|
34
|
+
"multi" => "MultiPrinter",
|
|
35
|
+
"flame_graph" => "FlameGraphPrinter"
|
|
35
36
|
}.freeze
|
|
36
37
|
|
|
37
38
|
# Mapping from printer to report file extension
|
|
@@ -40,7 +41,8 @@ module TestProf
|
|
|
40
41
|
"graph_html" => "html",
|
|
41
42
|
"dot" => "dot",
|
|
42
43
|
"." => "dot",
|
|
43
|
-
"call_stack" => "html"
|
|
44
|
+
"call_stack" => "html",
|
|
45
|
+
"flame_graph" => "html"
|
|
44
46
|
}.freeze
|
|
45
47
|
|
|
46
48
|
LOGFILE_PREFIX = "ruby-prof-report"
|
data/lib/test_prof/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: test-prof
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Dementyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: logger
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: bundler
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -243,6 +257,7 @@ metadata:
|
|
|
243
257
|
source_code_uri: https://github.com/test-prof/test-prof
|
|
244
258
|
funding_uri: https://github.com/sponsors/test-prof
|
|
245
259
|
default_lint_roller_plugin: RuboCop::TestProf::Plugin
|
|
260
|
+
rubygems_mfa_required: 'true'
|
|
246
261
|
post_install_message:
|
|
247
262
|
rdoc_options: []
|
|
248
263
|
require_paths:
|