pry-auto_benching.rb 2.4.0 → 2.5.0

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: d17e07b5ba61c9f849c1a11b0987e4b0020e314ffed0e7ff5e805e411c040090
4
- data.tar.gz: a4dad50eed12988b0f9dd89b8df46061a56d8723caace535af7875c2feaeb0a6
3
+ metadata.gz: 753fe74a59e736a2a2dcd5c4bbcddb12c4ec9fccca50ff75ebe71c4945b8026d
4
+ data.tar.gz: a9d4125ddb6433f9e10bc212eb9faecd7bb964fa3dfd6361a068da5ff9a2532e
5
5
  SHA512:
6
- metadata.gz: f7ab39a83c384f2c120e1549778bfcadd05730703cb7d66cf4f3dbf34a25f7747216f7be9b26d9a0220a59c721c7fcfe71ab40fb812a994209c125f88e987571
7
- data.tar.gz: 689ea8ed86ce0d0d76f1927ee768f733ecab7b3cf8db6cddf149300cbfaad6ff000c0db9a60c267645a5b838c65b9c2362b0c8ee9d3d96c86b1dd3391c626de1
6
+ metadata.gz: 935e069ba94dcc3ad60e8fa6b91a0578d77554357a9049557254d0df5a493ca13e54f0a17d82b099ab1ba450c92ba1f1f829f1f2317aa98b1990e97402a8890a
7
+ data.tar.gz: 5d22c660869cea64666734740718ab0a8f98342b3a746cdbde0e89b125cce3af234b410751cb138cc6d89397289f39578db76abdbdeef3b969803a07e98f836d
data/README.md CHANGED
@@ -24,8 +24,8 @@ Pry.configure do |config|
24
24
  config.auto_benching.target_display = ':prompt | :output'
25
25
 
26
26
  # Benchmark results are printed or not depending on the return value
27
- # of this lambda, by default results are printed when duration > 0.0.
28
- config.auto_benching.display_duration_if = ->(pry, duration) { duration >= 0.2 }
27
+ # of this lambda, by default results are printed when duration >= 0.01.
28
+ config.auto_benching.display_duration_if = ->(pry, duration) { duration >= 0.02 }
29
29
 
30
30
  # The color to use for benchmark results when `target_display` is :prompt.
31
31
  # The default is :green.
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module AutoBenching
3
- VERSION = "2.4.0"
3
+ VERSION = "2.5.0"
4
4
  end
5
5
  end
@@ -103,7 +103,7 @@ Pry.configure do |config|
103
103
  target_display: :prompt,
104
104
  prompt_color: :green,
105
105
  clock_type: Process::CLOCK_MONOTONIC,
106
- display_duration_if: ->(pry, duration) { duration > 0.0 },
106
+ display_duration_if: ->(pry, duration) { duration >= 0.01 },
107
107
  benchmark_commands: true,
108
108
  output_string: ->(pry, duration) {
109
109
  format("%{TextDesc} %{Duration}s", {
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.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson