nebrija 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/nebrija +1 -1
  2. data/lib/nebrija/parser.rb +1 -4
  3. metadata +1 -1
data/bin/nebrija CHANGED
@@ -8,7 +8,7 @@ arg = ARGV.first
8
8
 
9
9
  if arg.nil?
10
10
  puts 'Type smthg!'
11
- return
11
+ abort('Wrong args')
12
12
  end
13
13
 
14
14
  puts 'Oh, hai!'
@@ -15,7 +15,6 @@ class Parser
15
15
 
16
16
  return {:status => 'error', :message => 'Word does not exist. Sorry.'} if !valid?
17
17
  perform
18
-
19
18
  end
20
19
 
21
20
  def single?
@@ -70,16 +69,14 @@ class Parser
70
69
 
71
70
  def perform
72
71
  response = nil
73
- type = 'single'
74
72
  if single?
75
73
  response = parse_single
76
74
  else
77
75
  response = parse_multiple
78
- type = 'multiple'
79
76
  end
80
77
  {
81
78
  :status => 'success',
82
- :type => type,
79
+ :type => if single? then 'single' else 'multiple' end,
83
80
  :response => response
84
81
  }
85
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nebrija
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: