pry-auto_benching.rb 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/pry-auto_benching/version.rb +1 -1
- data/lib/pry-auto_benching.rb +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2883ec54bc55a3343e2d030c2644d82126ba389b030ec9ab4050578e9b7db34
|
4
|
+
data.tar.gz: dd81694147d510c21c6a42bae55203d5aa7f06a8d24ceabdf3848200d03a6008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f69f7c20074117c12a600f1b61f8331684ea76f6bba21658cbd6173ee14432226a612607de9814ce49cecb000566a89bc13e47656cd81f476f6617a2ffcfccf7
|
7
|
+
data.tar.gz: 7885a3c1debf22163a6703e66bcaaf6e0b8c1ce9b71651dd2cd04ec64636fcc1ca83b7c6c2e11405ed586880743c6f876845e93639aae46d15d22d1316e57898
|
data/README.md
CHANGED
@@ -49,9 +49,10 @@ Show help by running `auto-benching -h`:
|
|
49
49
|
[1] pry(main)> auto-benching -h
|
50
50
|
Usage: auto-benching [enable|disable]
|
51
51
|
|
52
|
-
Enable or disable benchmarking of
|
52
|
+
Enable or disable benchmarking of code and Pry commands.
|
53
53
|
|
54
|
-
-
|
54
|
+
-v, --version Display version.
|
55
|
+
-h, --help Show this message.
|
55
56
|
|
56
57
|
__2.__
|
57
58
|
|
data/lib/pry-auto_benching.rb
CHANGED
@@ -68,12 +68,19 @@ Pry::Commands.add_command Class.new(Pry::ClassCommand) {
|
|
68
68
|
group 'pry-auto_benching.rb'
|
69
69
|
description 'Enable or disable benchmarking.'
|
70
70
|
banner <<-CMDBANNER
|
71
|
-
Usage:
|
71
|
+
Usage: auto-benching [enable|disable]
|
72
72
|
|
73
|
-
Enable or disable benchmarking code
|
73
|
+
Enable or disable benchmarking code and Pry commands.
|
74
74
|
CMDBANNER
|
75
75
|
|
76
|
+
def options(o)
|
77
|
+
o.on :v, :version, 'Display version.'
|
78
|
+
end
|
79
|
+
|
76
80
|
def process(command)
|
81
|
+
if opts.v?
|
82
|
+
return _pry_.output.puts "pry-auto_benching.rb v#{Pry::AutoBenching::VERSION}"
|
83
|
+
end
|
77
84
|
if command == 'enable'
|
78
85
|
Pry::AutoBenching.enable(_pry_)
|
79
86
|
_pry_.pager.page('pry-auto_benching.rb: benchmarking.')
|