app/commands/new.rb in skippy-0.1.1.a vs app/commands/new.rb in skippy-0.2.0.a

- old
+ new

@@ -25,10 +25,11 @@ @project = Skippy::Project.new(Dir.pwd) if project.exist? raise Skippy::Error, "A project already exist: #{project.filename}" end project.namespace = namespace + project.name = project.namespace.to_name end def validate_template template_path = File.join(self.class.source_root, options[:template]) unless File.directory?(template_path) @@ -58,19 +59,19 @@ description: project.description, creator: project.author, copyright: project.copyright, license: project.license, product_id: project.namespace.to_a.join('_'), - version: "0.1.0", - build: "1", + version: '0.1.0', + build: '1', } json = JSON.pretty_generate(extension_info) json_filename = "src/#{project.namespace.to_underscore}/extension.json" create_file(json_filename, json) end def create_example_skippy_command - copy_file('commands/example.rb', 'skippy/example.rb') + copy_file('commands/example.rb', 'skippy/commands/example.rb') end def finalize say '' say "Project for #{namespace} created.", :green