frank
frank copied to clipboard
'frank compile' fails on fresh install/project using rbenv/1.9.3p194 [x86_64-darwin11.4.0]
I did a 'gem install frank', followed by these steps:
$ frank new thing
Frank is...
-
Creating your project 'thing'
-
Copying default Frank template
Congratulations, 'thing' is ready to go! $ cd thing/ $ frank compile
Frank is...
- Creating 'exported'
/Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/compile.rb:12:in
join': can't convert nil into String (TypeError) from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/compile.rb:12:incompile_templates' from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/compile.rb:84:inexport!' from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/cli.rb:134:inrun!' from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/lib/frank/cli.rb:99:inrun' from /Users/jack/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/frank-1.0.12/bin/frank:20:in<top (required)>' from /Users/jack/.rbenv/versions/1.9.3-p194/bin/frank:23:inload' from /Users/jack/.rbenv/versions/1.9.3-p194/bin/frank:23:in'
... this is caused by an attempt to join a nil value in Frank.root. The problem is resolved if I add 'compile' to the list of terms that bootstrap with Dir.pwd in cli.rb.