Generators (like sprout-as3) should not fail with a trailing slash in project name
Opened this issue · 0 comments
The following command should create a new project named "TempProject", rather than failing:
$ sprout-as3 TempProject/
Created directory: ./TempProject/
Created file: ./TempProject/rakefile.rb
Created file: ./TempProject/Gemfile
Created directory: ./TempProject/src
[Errno::ENOENT] No such file or directory - ./TempProject/src/
TempProject/.as
Skipped remove directory: ./TempProject/bin
Skipped remove directory: ./TempProject/lib
Skipped remove missing file: ./TempProject/assets/skins/
DefaultProjectImage.png
Skipped remove directory: ./TempProject/assets/skins
Skipped remove directory: ./TempProject/assets
Skipped remove missing file: ./TempProject/src/TempProjectRunner.as
Skipped remove missing file: ./TempProject/src/TempProject/.as
Removed directory: ./TempProject/src
Removed file: ./TempProject/Gemfile
Removed file: ./TempProject/rakefile.rb
Skipped remove directory: ./TempProject/
/Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/lib/
sprout/generator/file_manifest.rb:46:in initialize': No such file or directory - /Users/office/Documents/TempProject/src/TempProject/.as (Errno::ENOENT) from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/file_manifest.rb:46:in
open'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/file_manifest.rb:46:in write_file' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/file_manifest.rb:20:in
create'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:44:in
select'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:19:in
create'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:44:in
select'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:19:in
create'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:44:in
select'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/directory_manifest.rb:44:in create_children' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/directory_manifest.rb:19:in
create'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/
lib/sprout/generator/command.rb:57:in execute' from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/sprout-1.1.11.pre/ lib/sprout/generator/base.rb:82:in
execute'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/gems/flashsdk-1.0.27.pre/
bin/sprout-as3:8
from /Users/office/.rvm/gems/ruby-1.8.7-p299/bin/sprout-as3:19:in
`load'
from /Users/office/.rvm/gems/ruby-1.8.7-p299/bin/sprout-as3:19