pry-auto_benching.rb 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/lib/pry-auto_benching/version.rb +1 -1
- data/lib/pry-auto_benching.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dd50779e415ce32a725b98f5d7094838b6ee36200777b19b322bca6447961f7
|
4
|
+
data.tar.gz: fd76f05cdda4c54527538b63fe07b1123916b39e5c163fed1a68ed9c49caa1c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db5021bc715de4ef6883f9f4fa76a3555333ee84dbf530e788e2ae781ab56346fcfd4fa5c0046c8ae35acaa5a9cf9b433439523ae5596a9276e2ffbb993fa801
|
7
|
+
data.tar.gz: b460f05f8cafdc9fc1915a2be7151e0f86779d31c7b72e6d755a72b8855a928a64f38e3ae58071238bda630d14587be658d3cd573ca4a2a426dc75de9d362316
|
data/README.md
CHANGED
@@ -79,9 +79,6 @@ An example showing the prompt being updated with benchmark results.
|
|
79
79
|
__4.__
|
80
80
|
|
81
81
|
An example with `_pry_.config.auto_benching.target_display` set to `:output`.
|
82
|
-
To switch to this display, run `_pry_.config.auto_benching.target_display = :output`
|
83
|
-
inside the repl or set `Pry.config.auto_benching.target_display = :output` from your
|
84
|
-
`.pryrc` for a permanent change.
|
85
82
|
|
86
83
|
[6] pry(main)> _pry_.config.auto_benching.target_display = :output
|
87
84
|
=> :output
|
data/lib/pry-auto_benching.rb
CHANGED
@@ -28,15 +28,13 @@ module Pry::AutoBenching
|
|
28
28
|
if auto_benching.benchmark_commands and
|
29
29
|
auto_benching.display_duration_if.call(pry, duration)
|
30
30
|
write_duration.call(pry, duration)
|
31
|
-
|
32
|
-
auto_benching.target_display != :output
|
31
|
+
else
|
33
32
|
pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
|
34
33
|
end
|
35
34
|
else # Ruby code
|
36
35
|
if auto_benching.display_duration_if.call(pry, duration)
|
37
36
|
write_duration.call(pry, duration)
|
38
|
-
|
39
|
-
auto_benching.target_display != :output
|
37
|
+
else
|
40
38
|
pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
|
41
39
|
end
|
42
40
|
end
|