danmayer-resume 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/VERSION +1 -1
- data/lib/resume_gem.rb +7 -4
- metadata +2 -2
data/README.md
CHANGED
@@ -64,9 +64,10 @@ OPTIONAL (Publish personal resume gem)
|
|
64
64
|
* http://rtomayko.github.com/ronn/ (markdown to man page)
|
65
65
|
* possibly merge with a resume generator which after filling out some info via forms or yaml can generate varios resumes in all formats
|
66
66
|
* Users could submit templates / stylesheets allowing for differently formatted resumes
|
67
|
-
* rake task that generates proper single use gemfile and executable
|
68
67
|
* make sinatra app depend on the gem
|
69
68
|
* better filenames for the downloaded resume in various formats (currently saves as latex and markdown)
|
69
|
+
* fix the base path stuff refactor it out.
|
70
|
+
* look into better tmp file libs
|
70
71
|
|
71
72
|
|
72
73
|
## License
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/lib/resume_gem.rb
CHANGED
@@ -40,15 +40,18 @@ class Resume
|
|
40
40
|
|
41
41
|
def html
|
42
42
|
title = "Dan Mayer's Resume"
|
43
|
+
base = File.join(File.dirname(__FILE__),'..')
|
43
44
|
resume = RDiscount.new(@resume_content, :smart).to_html
|
44
|
-
eruby = Erubis::Eruby.new(File.read('./views/index.erubis'))
|
45
|
+
eruby = Erubis::Eruby.new(File.read(File.join(base,'./views/index.erubis')))
|
45
46
|
eruby.result(binding())
|
46
47
|
end
|
47
48
|
|
48
|
-
def write_html_and_css_to_disk(root_path = '
|
49
|
-
|
49
|
+
def write_html_and_css_to_disk(root_path = '/tmp')
|
50
|
+
base = File.join(File.dirname(__FILE__),'..')
|
51
|
+
#root_path = File.join(base,root_path)
|
52
|
+
#FileUtils.mkdir_p root_path unless File.exists?(root_path)
|
50
53
|
|
51
|
-
css = Less::Engine.new(File.new("views/style.less")).to_css
|
54
|
+
css = Less::Engine.new(File.new(File.join(base,"views/style.less"))).to_css
|
52
55
|
tmp_css = File.join(root_path,'style.css')
|
53
56
|
File.open(tmp_css, 'w') {|f| f.write(css) }
|
54
57
|
|