pry-auto_benching.rb 2.10.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/pry-auto_benching.rb +3 -4
- data/lib/pry-auto_benching/version.rb +1 -1
- 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: 49a56e98e967ced15aceffc2d65f256fbc038b587ad338d38787f8e224ecc81f
|
4
|
+
data.tar.gz: 88d749966b1a966fb71065e2b6c8f7e0071dec2acb5008d5b6f319e8d8197cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9efee3e767930db94c6e27e3412016bf588dd7ac5e917fc0ef33bec8e045a27a584b745985cd316180c4fe49aa40644d671a2187310e82a9f78619cc362977f2
|
7
|
+
data.tar.gz: 1f603d76a4c9aee98ba4833f9c1913b5e8622b4e4e528a53981bade9999f14ae00ebd812a4e057a49f285edae8591d50fbe9f2fddbda8d2a30c18f9acc254911
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v2.10.1
|
4
|
+
|
5
|
+
* Fix a typo in write_duration lambda that didn't mention 'none' as a valid
|
6
|
+
value for `_pry_.config.auto_benching.target_display`
|
7
|
+
|
3
8
|
## v2.10.0
|
4
9
|
|
5
10
|
* Add 'none' as a possible target display.
|
6
11
|
When chosen benchmark results are not written to a display but are still
|
7
12
|
recorded and can be viewed on demand by running `auto-benching --past`.
|
8
|
-
|
13
|
+
|
9
14
|
## v2.9.1
|
10
15
|
|
11
16
|
* Fix a bug where `MomentList` would not cycle oldest entries first.
|
data/lib/pry-auto_benching.rb
CHANGED
@@ -54,18 +54,17 @@ module Pry::AutoBenching
|
|
54
54
|
write_duration = -> (pry, duration) {
|
55
55
|
auto_benching = pry.config.auto_benching
|
56
56
|
target_display = auto_benching.target_display.to_s
|
57
|
+
pry.config.forget(:prompt_name)
|
57
58
|
if target_display == 'prompt'
|
58
59
|
pry.config.prompt_name = "#{Pry::Helpers::Text.send(auto_benching.prompt_color, duration.to_s + 's')} "
|
59
60
|
elsif target_display == 'output'
|
60
|
-
pry.config.forget(:prompt_name)
|
61
61
|
pry.pager.page auto_benching.output_string.call(pry, duration)
|
62
62
|
elsif target_display == 'none'
|
63
|
-
|
63
|
+
# no op
|
64
64
|
else
|
65
|
-
pry.config.forget(:prompt_name)
|
66
65
|
pry.output.warn "_pry_.config.auto_benching.target_display has an invalid value " \
|
67
66
|
"(#{auto_benching.target_display.inspect}). \n" \
|
68
|
-
"It should be equal to ':output' or ':
|
67
|
+
"It should be equal to ':output', ':prompt' or ':none'"
|
69
68
|
end
|
70
69
|
}
|
71
70
|
|