termit 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/termit/output_manager.rb +1 -1
- data/lib/termit/user_input_parser.rb +3 -3
- data/lib/termit/version.rb +1 -1
- data/spec/termit/user_input_parser_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a54b86ffacdcde3be3182e414217ef50d1ad745f
|
4
|
+
data.tar.gz: 5b7954bbadfaecac7b49978ce88a3a7c849d9a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a199c53051381122c8630973f5655ffbbb99ec57589f63a1eb5cc6e6206e905868bae439ca9c62b8790742b8e4fa880701fcc4d940e97b2aec0381558fded60
|
7
|
+
data.tar.gz: ca598cbb4eb177f783e6b7f09da4b15792505f2e176fed63a1da4b6f0ee5a834064e65fd2dec2a4fb8b8a7d85b580c71f2c34b115d3d544431d948dc2cce7cd3
|
@@ -9,13 +9,13 @@ module Termit
|
|
9
9
|
@user_input = user_input
|
10
10
|
quit_if_required
|
11
11
|
validate_user_input
|
12
|
+
rescue ArgumentError
|
13
|
+
display_error_info
|
14
|
+
exit
|
12
15
|
end
|
13
16
|
|
14
17
|
def options
|
15
18
|
parse_input
|
16
|
-
rescue ArgumentError
|
17
|
-
display_error_info
|
18
|
-
exit
|
19
19
|
end
|
20
20
|
|
21
21
|
private
|
data/lib/termit/version.rb
CHANGED
@@ -40,7 +40,7 @@ describe Termit::UserInputParser do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
it "with incorrect language options format raiser error" do
|
43
|
-
expect{ Termit::UserInputParser.new ['ang', 'po polski', 'hey cowboy!', '-t'] }.to raise_error
|
43
|
+
expect{ Termit::UserInputParser.new ['ang', 'po polski', 'hey cowboy!', '-t'] }.to raise_error SystemExit
|
44
44
|
end
|
45
45
|
|
46
46
|
end
|