choosy 0.2.4 → 0.2.5

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.
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -32,6 +32,7 @@ module Choosy
32
32
  result = parser.parse!(args)
33
33
 
34
34
  verifier = Verifier.new
35
+ verifier.verify_special!(result)
35
36
  verifier.verify!(result)
36
37
 
37
38
  result
@@ -32,9 +32,24 @@ module Choosy
32
32
  end
33
33
 
34
34
  o = capture :stdout do
35
- #attempting {
35
+ attempting {
36
36
  @c.parse!(['--help'])
37
- #}.should raise_error(SystemExit)
37
+ }.should raise_error(SystemExit)
38
+ end
39
+
40
+ o.should match(/-h, --help/)
41
+ end
42
+
43
+ it "should make sure that help gets check before other required options" do
44
+ @c.alter do
45
+ help
46
+ string :str, "String", :required => true
47
+ end
48
+
49
+ o = capture do
50
+ attempting {
51
+ @c.parse! ['--help']
52
+ }.should raise_error(SystemExit)
38
53
  end
39
54
 
40
55
  o.should match(/-h, --help/)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gabe McArthur