pry-auto_benching.rb 1.3.0 → 1.4.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: ee29d04eb0fa35fcebea243a1d411d9e9163fa50d0055ff60546677558e7f249
4
- data.tar.gz: 429e451131c12ce282de19a9275a57e8d4ad580565fd441ce872b721e4dbb0e9
3
+ metadata.gz: '094e7491e81ac6090aed5660ba17821cfafc5c018bb13e9319d521d99cda1134'
4
+ data.tar.gz: f86774af5ba4d4e961c7e66f37496a7d6da6ba4719cd029a3af0049b4de5e3bc
5
5
  SHA512:
6
- metadata.gz: 2011eca5212e3cf1c072ec497660957987c45c9b1d4f3abffccd7f6b3db9fc941b4be47ce67fae6339d3380ba540bf6e9de228953ce7e426c8a95424b996fb8d
7
- data.tar.gz: 57e55c6f5f972ead96676bdbeceb3186898886287186bcba36abb61631a80cbc2560a83cface0a85f1ad1e7e41aaa54fc82eda5e18e923eebd24992eb9032de0
6
+ metadata.gz: 52f9391138d6c52889c65f9eb1d5ace8e9a5eb453d83d120a46e8b1c110be6e462408c888caf341505781e94113871f603b9f93aa024689acf90dc3c73772ed2
7
+ data.tar.gz: c3f5fb37660fae9891db7fd53cc8e4c8eb969bb488b07270f8b2b8de2857c4cb2240a4128e7f0ea12b4a5d3242874a6f00ff80c347b2d08b70b993f1b46d4fb6
data/README.md CHANGED
@@ -1,5 +1,3 @@
1
- ![s1](./s1.png)
2
-
3
1
  # pry-auto_benching.rb
4
2
 
5
3
  pry-auto_benching.rb automatically benchmarks input entered into Pry.
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module AutoBenching
3
- VERSION = "1.3.0"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
@@ -96,7 +96,7 @@ Pry.configure do |config|
96
96
  prompt_color: :green,
97
97
  clock_type: Process::CLOCK_MONOTONIC,
98
98
  benchmark_commands: true,
99
- speak_if: ->(pry, duration) { true },
99
+ speak_if: ->(pry, duration) { duration > 0.0 },
100
100
  speaker: ->(pry, duration) {
101
101
  pry.pager.page format("%{AutoBenchingSays} %{Duration}s", {
102
102
  :AutoBenchingSays => pry.color ?
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: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson