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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5dadd7f8ec42ef7df9046930e51bf5cb83b523a6709fbe2a49cf03f9b301948
4
- data.tar.gz: a32614b72a5c7abba4eddc1ab154ab066486f4c41453a2c3fb415b6c918b4268
3
+ metadata.gz: 5c64613702b3a3a96336fac534cca684b78d8d2e433e38a6114c7176df3452e3
4
+ data.tar.gz: 176537386876b1d80635529ce8e90f80a55846edb7e7ff1a541fcfd84a59bdb4
5
5
  SHA512:
6
- metadata.gz: 6b79b083bf41c2c98b1358c9c5b0de2c7c17beaea1266d11556970e6b6b32d773f7ece50e31aa93b47a2a5bb27ac592672bc87aaf91dc0b510e57ad6686db981
7
- data.tar.gz: d777ff090a7b32bf585577e1dd66967e15b2334018fca7e8b0e29c3a8afccb94ebf183dd8efabc6fd56d93f4a55efe52485bde3461be98a0ca9995eb01e27053
6
+ metadata.gz: 5dcf41b8c27e1d208ef6dd026ed7bfb28054a8c355ebf638a53670f325c538797fb0d111071e0bcfa013d070bf5f0d2a73fb3ac85d579d388ff1cecea736143b
7
+ data.tar.gz: de3a8d730752c69bc74f9fee10005655ead9b7e96723d36cc7b283adedf7c9321fa5541671ec555741e694eb6fde5b537b55d733d0cf248e1bc07ad4f9fb6e6e
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module AutoBenching
3
- VERSION = "2.2.0"
3
+ VERSION = "2.3.0"
4
4
  end
5
5
  end
@@ -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.output.warn "_pry_.config.auto_benching.target_display has an invalid value (#{auto_benching.target_display})"
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 == :prompt
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 == :prompt
35
+ elsif auto_benching.target_display != :output
34
36
  pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
35
37
  end
36
38
  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.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson