ruaur 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ruaur +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df0e467955a71c36963a757c4db566102e1e97fa
|
4
|
+
data.tar.gz: 6d7070d9bc909385312b82fa4e3760f711180dc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2016-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|