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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2be7a623c19ec705b54bd6e0f47ebd01861c5d97706e81f116585214217ec64e
4
- data.tar.gz: ec602812de40fde4c93f0f10da7eb9c138946dd88e021fd18e9cd142033467de
3
+ metadata.gz: 49a56e98e967ced15aceffc2d65f256fbc038b587ad338d38787f8e224ecc81f
4
+ data.tar.gz: 88d749966b1a966fb71065e2b6c8f7e0071dec2acb5008d5b6f319e8d8197cde
5
5
  SHA512:
6
- metadata.gz: 6f621e493069445c89cd78ced4684419d3eaddc42939487793ce32fec8717d8bf41a38da7b860ea46f088068db5af62a71489c24019392ebbc1d8e46a28f5b63
7
- data.tar.gz: a394d268ae3eaeb41858fb6d53862167d963978531bf94c5c6f716cb93c036ac3e96b05984800aaa67ee5a0b3cf6e4d7932002a09834f1ec634614cf4d937a56
6
+ metadata.gz: 9efee3e767930db94c6e27e3412016bf588dd7ac5e917fc0ef33bec8e045a27a584b745985cd316180c4fe49aa40644d671a2187310e82a9f78619cc362977f2
7
+ data.tar.gz: 1f603d76a4c9aee98ba4833f9c1913b5e8622b4e4e528a53981bade9999f14ae00ebd812a4e057a49f285edae8591d50fbe9f2fddbda8d2a30c18f9acc254911
@@ -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.
@@ -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
- pry.config.forget(:prompt_name)
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 ':prompt'."
67
+ "It should be equal to ':output', ':prompt' or ':none'"
69
68
  end
70
69
  }
71
70
 
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module AutoBenching
3
- VERSION = "2.10.0"
3
+ VERSION = "2.10.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-auto_benching.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson