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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be1a301f4640fa309396d5060f2604de2c5cae2874af83386fdb78501d46e516
4
- data.tar.gz: 339a0fe540e98b1383b01236c22a3393307549463982dcee42db424d0dcb1762
3
+ metadata.gz: c2883ec54bc55a3343e2d030c2644d82126ba389b030ec9ab4050578e9b7db34
4
+ data.tar.gz: dd81694147d510c21c6a42bae55203d5aa7f06a8d24ceabdf3848200d03a6008
5
5
  SHA512:
6
- metadata.gz: 2fdc62c926d94143785aef3829dda820e34129edb21318623050437befcef2fefc934aaf196c52d725598fc33aba9b9a3c9472dd04f6e141f71f5ce5a596ee50
7
- data.tar.gz: c9bc0911ad06d752849ba1c038b1f310702eab85e3c9dcc9d758eebe674d2778de5e3c72ef8c4a37569e638f1d9d6dd12226fa93c5d6ad1951a9e275f5109ec3
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 input.
52
+ Enable or disable benchmarking of code and Pry commands.
53
53
 
54
- -h, --help Show this message.
54
+ -v, --version Display version.
55
+ -h, --help Show this message.
55
56
 
56
57
  __2.__
57
58
 
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module AutoBenching
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
@@ -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: pry-auto_benching [enable|disable]
71
+ Usage: auto-benching [enable|disable]
72
72
 
73
- Enable or disable benchmarking code (or Pry commands).
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.')
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.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson