Browse files

fixed another path issues updated todo in readme

  • Loading branch information...
1 parent 876545f commit 4d2de3ae6158b7886f8f9fe415ab7e56a2d035da @danmayer committed May 10, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −0 README.md
  2. +3 −3 lib/resume_gem.rb
View
1 README.md
@@ -67,6 +67,7 @@ OPTIONAL (Publish personal resume gem)
* make sinatra app depend on the gem
* better filenames for the downloaded resume in various formats (currently saves as latex and markdown)
* fix the base path stuff refactor it out.
+* look into better tmp file libs
## License
View
6 lib/resume_gem.rb
@@ -46,10 +46,10 @@ def html
eruby.result(binding())
end
- def write_html_and_css_to_disk(root_path = './tmp')
+ def write_html_and_css_to_disk(root_path = '/tmp')
base = File.join(File.dirname(__FILE__),'..')
- root_path = File.join(base,root_path)
- FileUtils.mkdir_p root_path unless File.exists?(root_path)
+ #root_path = File.join(base,root_path)
+ #FileUtils.mkdir_p root_path unless File.exists?(root_path)
css = Less::Engine.new(File.new(File.join(base,"views/style.less"))).to_css
tmp_css = File.join(root_path,'style.css')

0 comments on commit 4d2de3a

Please sign in to comment.