lib/commands/service.rb in spring-gen-0.1.0 vs lib/commands/service.rb in spring-gen-0.1.1
- old
+ new
@@ -20,9 +20,10 @@
def prepare_artifact
parts = @name.split(".")
@name = @artifact_id = parts.pop
@group_id = parts.length > 0 ? parts.join('.') : @name
+ @package = @group_id.split(".").each {|part| part.gsub!(/\W/,"")}.join(".")
end
def init_git
g = Git.init @name
@user_name = g.config['user.name']
\ No newline at end of file