nali 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,21 +3,16 @@ module Nali
3
3
  class Generator
4
4
 
5
5
  def initialize( args )
6
- if [ 'app', 'application' ].include?( args.first )
6
+ if args.first == 'new'
7
7
  if args[1] then create_application args[1]
8
8
  else puts 'Enter a name for the application' end
9
- end
10
-
11
- if [ 'm', 'model' ].include?( args.first )
9
+ elsif [ 'm', 'model' ].include?( args.first )
12
10
  if args[1] then create_model args[1]
13
11
  else puts 'Enter a name for the model' end
14
- end
15
-
16
- if [ 'v', 'view' ].include?( args.first )
12
+ elsif [ 'v', 'view' ].include?( args.first )
17
13
  if args[1] then create_view args[1]
18
14
  else puts 'Enter a name for the view' end
19
15
  end
20
-
21
16
  end
22
17
 
23
18
  def create_application( name )
@@ -1,5 +1,5 @@
1
1
  module Nali
2
2
 
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nali
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: