pry-auto_benching.rb 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pry-auto_benching/version.rb +1 -1
- data/lib/pry-auto_benching.rb +5 -3
- 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: 5c64613702b3a3a96336fac534cca684b78d8d2e433e38a6114c7176df3452e3
|
4
|
+
data.tar.gz: 176537386876b1d80635529ce8e90f80a55846edb7e7ff1a541fcfd84a59bdb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dcf41b8c27e1d208ef6dd026ed7bfb28054a8c355ebf638a53670f325c538797fb0d111071e0bcfa013d070bf5f0d2a73fb3ac85d579d388ff1cecea736143b
|
7
|
+
data.tar.gz: de3a8d730752c69bc74f9fee10005655ead9b7e96723d36cc7b283adedf7c9321fa5541671ec555741e694eb6fde5b537b55d733d0cf248e1bc07ad4f9fb6e6e
|
data/lib/pry-auto_benching.rb
CHANGED
@@ -6,7 +6,9 @@ module Pry::AutoBenching
|
|
6
6
|
elsif auto_benching.target_display == :output
|
7
7
|
pry.pager.page auto_benching.output_string.call(pry, duration)
|
8
8
|
else
|
9
|
-
pry.
|
9
|
+
pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
|
10
|
+
pry.output.warn "_pry_.config.auto_benching.target_display has an invalid value (#{auto_benching.target_display.inspect}). \n" \
|
11
|
+
"It should be equal to ':output' or ':prompt'."
|
10
12
|
end
|
11
13
|
}
|
12
14
|
|
@@ -24,13 +26,13 @@ module Pry::AutoBenching
|
|
24
26
|
if auto_benching.benchmark_commands and
|
25
27
|
auto_benching.display_duration_if.call(pry, duration)
|
26
28
|
write_duration.call(pry, duration)
|
27
|
-
elsif auto_benching.target_display
|
29
|
+
elsif auto_benching.target_display != :output
|
28
30
|
pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
|
29
31
|
end
|
30
32
|
else # Ruby code
|
31
33
|
if auto_benching.display_duration_if.call(pry, duration)
|
32
34
|
write_duration.call(pry, duration)
|
33
|
-
elsif auto_benching.target_display
|
35
|
+
elsif auto_benching.target_display != :output
|
34
36
|
pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
|
35
37
|
end
|
36
38
|
end
|