ayosec/highcarb — pull request #1 by paradoja (2012-03-08 20:19:39+00:00)
Title: Arreglo de fallito

Fallaba el generador:

% bin/highcarb -g prueba
Create prueba/slides/0001.haml
Create prueba/assets/README
Create prueba/assets/base.scss
Create prueba/assets/remote.scss
Create prueba/assets/custom-remote.coffee
Create prueba/assets/custom.coffee
Create prueba/snippets/README
Downloading Deck.js into prueba/assets/vendor...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 131 100 131 0 0 132 0 --:--:-- --:--:-- --:--:-- 211
100 95479 100 95479 0 0 34156 0 0:00:02 0:00:02 --:--:-- 143k
/home/paradoja/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/pathname.rb:397:in `open': No such file or directory - prueba/assets/vendor (Errno::ENOENT)
from /home/paradoja/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/pathname.rb:397:in `foreach'
from /home/paradoja/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/pathname.rb:397:in `children'
from /home/paradoja/usr/highcarb/lib/highcarb/generator.rb:58:in `block in run!'
from /home/paradoja/usr/highcarb/lib/highcarb/generator.rb:55:in `chdir'
from /home/paradoja/usr/highcarb/lib/highcarb/generator.rb:55:in `run!'
from /home/paradoja/usr/highcarb/lib/highcarb/command.rb:52:in `run!'
from bin/highcarb:8:in `

'

Simplemente, se usaba un pathname relativo dentro de un bloque de Dir.chdir (línea 56 de lib/highcarb/generator.rb) y dentro la ruta relativa sería otra ('.').