ruaur 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ruaur +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 604e568026ef8a72b6b9b1e70b39eb9bd5ea0bab
4
- data.tar.gz: 956fbd823f549f704206f50dbb53bbe59987aa08
3
+ metadata.gz: df0e467955a71c36963a757c4db566102e1e97fa
4
+ data.tar.gz: 6d7070d9bc909385312b82fa4e3760f711180dc8
5
5
  SHA512:
6
- metadata.gz: c689ccd6443684e963d2d938de5d4547d190ac30274d9c2c8e2128b24df9ff23590fa854a2c07d421881e2bd104dc48f3f9638c00dfdbe1898683a87044c7448
7
- data.tar.gz: 1e55814521190a864a723654f0a17f4648a88c1df9038400eeb54b0788c904d0c646a82a15b19626a70354cfe48c237a0ff9bff41df86d1eb42b632db4029996
6
+ metadata.gz: c6f647e478099730aff272f55827fa3ce6a7b3f0c0b63cca27e8f7da03ef7021b4c9c87ac4b1e3b80350ff8364ca881e1a5dd60f552024c1104a7faf921ef72d
7
+ data.tar.gz: aa6b491aacb09fba9c19b1189f9c5a463d9e1920eafcf3d0bc4eff2a7722d03124e92bb4417b841ceadf4899967a301a9305733b8068cb354027d6599dff4e4d
data/bin/ruaur CHANGED
@@ -12,6 +12,7 @@ class RuAURExit
12
12
  INVALID_OPERATION = 4
13
13
  MULTIPLE_OPERATIONS = 5
14
14
  EXCEPTION = 6
15
+ AMBIGUOUS_ARGUMENT = 6
15
16
  end
16
17
 
17
18
  class Operation
@@ -128,6 +129,10 @@ def parse(args)
128
129
  puts e.message
129
130
  puts parser
130
131
  exit RuAURExit::MISSING_ARGUMENT
132
+ rescue OptionParser::AmbiguousOption => e
133
+ puts e.message
134
+ puts parser
135
+ exit RuAURExit::AMBIGUOUS_ARGUMENT
131
136
  end
132
137
 
133
138
  if (!validate(options))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruaur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake