ulbrich-jruby-enginize 0.5 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/script.rb +4 -3
  2. metadata +1 -1
data/lib/script.rb CHANGED
@@ -64,10 +64,11 @@ module JRubyEnginize # :nodoc:
64
64
  begin
65
65
  opt.parse!(ARGV)
66
66
 
67
- raise "missing directory name" if (path = ARGV.first).nil? or path.empty?
68
- raise "directory already exists" if FileTest.exists? path
67
+ raise 'missing directory name' if (path = ARGV.first).nil? or path.empty?
68
+ raise 'directory already exists' if FileTest.exists? path
69
+ raise 'unknown template' if not JRubyEnginize::Generator.templates.include? template
69
70
 
70
- raise "missing e-mail address" if email.nil? or email.empty?
71
+ raise 'missing e-mail address' if email.nil? or email.empty?
71
72
  rescue SystemExit
72
73
  exit(1)
73
74
  rescue Exception => exception
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulbrich-jruby-enginize
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.5"
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Ulbrich