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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ace402d56c415aa3340ba55d04248c92878ed27c
4
- data.tar.gz: d2d59b018038638c1c39428fbace9438bcfb30d4
3
+ metadata.gz: a54b86ffacdcde3be3182e414217ef50d1ad745f
4
+ data.tar.gz: 5b7954bbadfaecac7b49978ce88a3a7c849d9a88
5
5
  SHA512:
6
- metadata.gz: 9d65b569db3b7979845ea4dee44916f962701a455476f0ff5c8c1fad71860c57a84c46e430aa32449dcdd3263b0e5a7115d1eeba4906aff1dac4ade5ad5c4171
7
- data.tar.gz: b44fc3e608909fb62950460d17f5a6ead6d1f03417db3fc4848678a285705252899a5e2870e126a6663dd864180506286574e9e986b48590bb63345653b125a1
6
+ metadata.gz: 4a199c53051381122c8630973f5655ffbbb99ec57589f63a1eb5cc6e6206e905868bae439ca9c62b8790742b8e4fa880701fcc4d940e97b2aec0381558fded60
7
+ data.tar.gz: ca598cbb4eb177f783e6b7f09da4b15792505f2e176fed63a1da4b6f0ee5a834064e65fd2dec2a4fb8b8a7d85b580c71f2c34b115d3d544431d948dc2cce7cd3
@@ -8,7 +8,7 @@ module Termit
8
8
  def display_help
9
9
  puts <<-EOS
10
10
  =========TERMIT=========
11
- USAGE:
11
+ Usage:
12
12
  termit 'source_language' 'target_language' 'text'
13
13
 
14
14
  Example:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Termit
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
@@ -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 ArgumentError
43
+ expect{ Termit::UserInputParser.new ['ang', 'po polski', 'hey cowboy!', '-t'] }.to raise_error SystemExit
44
44
  end
45
45
 
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb