optitron 0.1.6 → 0.1.7

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.
@@ -91,6 +91,7 @@ class Optitron
91
91
  @cmds << [m.to_s, @last_desc, @opts ? @opts.dup : []]
92
92
  @opts.clear if @opts
93
93
  @args.clear if @args
94
+ @last_desc = nil
94
95
  end
95
96
  end
96
97
  def optitron_parser
@@ -1,3 +1,3 @@
1
1
  class Optitron
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/spec/cli_spec.rb CHANGED
@@ -37,6 +37,9 @@ class CLIExample < Optitron::CLI
37
37
  desc "something with an array"
38
38
  def with_array(ary=[1,2,3])
39
39
  end
40
+
41
+ def a_method_not_used
42
+ end
40
43
  end
41
44
 
42
45
  class AnotherCLIExample < Optitron::CLI
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optitron
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Hull
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-26 00:00:00 -05:00
18
+ date: 2010-08-27 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency