thieve 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/thieve +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: 03a137cffb00f83c73a64faba264971539e6c4f1
|
4
|
+
data.tar.gz: bb4a2ae2189cd1c177d645303fd8819050a86297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 025b38d6fe9423944f2e3e809d682c234425dd33aa91661ba4493112ec265ef45f4c03999430cff267a78d0bc44a0c149c14054a47d6901eb44a116d9c154d19
|
7
|
+
data.tar.gz: 6a890cf2e9de3a741900c8c22ee805ba70fb5e868dcc6277ad204272cd4f0111462723893f7a254608c03b5309d7b1f34e6738c9d4b1868525b57d812f0f31e0
|
data/bin/thieve
CHANGED
@@ -13,6 +13,7 @@ class ThieveExit
|
|
13
13
|
MISSING_ARGUMENT = 3
|
14
14
|
EXTRA_ARGUMENTS = 4
|
15
15
|
EXCEPTION = 5
|
16
|
+
AMBIGUOUS_ARGUMENT = 6
|
16
17
|
end
|
17
18
|
|
18
19
|
def parse(args)
|
@@ -69,6 +70,10 @@ def parse(args)
|
|
69
70
|
puts e.message
|
70
71
|
puts parser
|
71
72
|
exit ThieveExit::MISSING_ARGUMENT
|
73
|
+
rescue OptionParser::AmbiguousOption => e
|
74
|
+
puts e.message
|
75
|
+
puts parser
|
76
|
+
exit ThieveExit::AMBIGUOUS_ARGUMENT
|
72
77
|
end
|
73
78
|
|
74
79
|
if (args.length < 1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thieve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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
|