pry-auto_benching.rb 2.6.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6365868342bab57be092d8885b74f31d3433dc25fd908eb727e4dbeff7415c77
4
- data.tar.gz: ad85ee9cf74fbdec6d2a50f7111d22f0fdff324021876fb885589c03bfe3cb3f
3
+ metadata.gz: 9dd50779e415ce32a725b98f5d7094838b6ee36200777b19b322bca6447961f7
4
+ data.tar.gz: fd76f05cdda4c54527538b63fe07b1123916b39e5c163fed1a68ed9c49caa1c4
5
5
  SHA512:
6
- metadata.gz: 9f603b0686f2dffd9e4e02502f4973eef405e1cd79e51f189944a1283bf7ae248efa57547426734a878fbec3e1ae0d5d5a1aad0c3ac847884ff6fb62600d038f
7
- data.tar.gz: 5e9d2022ed4b4496efb2beca265200c57825ee23772e7a26fc3661871866d982353c79505e0a051a5e66308765c0cfba18d06fdac0888b87c05bdcbfbcf27732
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
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module AutoBenching
3
- VERSION = "2.6.1"
3
+ VERSION = "2.6.2"
4
4
  end
5
5
  end
@@ -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
- elsif [:output, :prompt].include?(auto_benching.target_display) ||
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
- elsif [:output, :prompt].include?(auto_benching.target_display) ||
39
- auto_benching.target_display != :output
37
+ else
40
38
  pry.config.prompt_name = Pry::Prompt::DEFAULT_NAME
41
39
  end
42
40
  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.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson