resume 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/pdf_printer.rb +6 -6
- data/lib/resume.rb +4 -5
- metadata +2 -2
data/lib/pdf_printer.rb
CHANGED
@@ -23,30 +23,30 @@ class PDFPrinter
|
|
23
23
|
end
|
24
24
|
move_down(50)
|
25
25
|
if(resume.has_schools?)
|
26
|
-
text "Education", :align => :right
|
26
|
+
text "Education", :align => :right, :style => :bold_italic
|
27
27
|
text resume.print_schools, :align => :left
|
28
28
|
stroke_horizontal_rule
|
29
29
|
end
|
30
30
|
if(resume.has_jobs?)
|
31
|
-
text "Employment", :align => :right
|
31
|
+
text "Employment", :align => :right, :style => :bold_italic
|
32
32
|
text resume.print_jobs, :align => :left
|
33
33
|
stroke_horizontal_rule
|
34
34
|
end
|
35
35
|
|
36
36
|
if(resume.has_applications?)
|
37
|
-
text "Sites", :align => :right
|
37
|
+
text "Sites", :align => :right, :style => :bold_italic
|
38
38
|
text resume.print_array(resume.applications), :align => :center
|
39
39
|
stroke_horizontal_rule
|
40
40
|
end
|
41
41
|
|
42
42
|
if(resume.has_technologies?)
|
43
|
-
text "Technologies", :align => :right
|
43
|
+
text "Technologies", :align => :right, :style => :bold_italic
|
44
44
|
text resume.print_array(resume.technologies), :align => :center
|
45
45
|
stroke_horizontal_rule
|
46
46
|
end
|
47
47
|
|
48
48
|
if(resume.has_practices?)
|
49
|
-
text "Practices", :align => :right
|
49
|
+
text "Practices", :align => :right, :style => :bold_italic
|
50
50
|
text resume.print_array(resume.practices), :align => :center
|
51
51
|
stroke_horizontal_rule
|
52
52
|
end
|
@@ -59,7 +59,7 @@ class PDFPrinter
|
|
59
59
|
font "Courier"
|
60
60
|
fill_color "999999"
|
61
61
|
|
62
|
-
text "gem install resume;
|
62
|
+
text "gem install resume; resume #{$*}", :align => :center, :size => 8
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
data/lib/resume.rb
CHANGED
@@ -96,7 +96,7 @@ module Resume
|
|
96
96
|
row << "Attended #{s[:name]}" if s[:name]
|
97
97
|
row << " #{s[:curriculum]}" if s[:curriculum]
|
98
98
|
row << " for #{s[:degree]}" if s[:degree]
|
99
|
-
row << "
|
99
|
+
row << "; Graduated #{s[:graduated]}" if s[:graduated]
|
100
100
|
print(row, out, width, :right)
|
101
101
|
}.join("\n")
|
102
102
|
end
|
@@ -106,9 +106,9 @@ module Resume
|
|
106
106
|
row = ""
|
107
107
|
row << "Worked at #{j[:company]}" if j[:company]
|
108
108
|
row << " as a #{j[:position]}" if j[:position]
|
109
|
-
row << " #{j[:tenure]}" if j[:tenure]
|
109
|
+
row << " (#{j[:tenure]})" if j[:tenure]
|
110
110
|
result = print(row, out, width, :right)
|
111
|
-
result += "\n" + print(j[:description], out, width) if j[:description]
|
111
|
+
result += "\n " + print(j[:description], out, width) if j[:description]
|
112
112
|
}.join("\n\n")
|
113
113
|
end
|
114
114
|
|
@@ -122,8 +122,7 @@ module Resume
|
|
122
122
|
def print(str, out, width, justify = :left)
|
123
123
|
if(str.length > width)
|
124
124
|
i = str.rindex(' ', width)
|
125
|
-
print(str[0, i], out, width, justify)
|
126
|
-
print(str[i+1, str.length], out, width, justify)
|
125
|
+
print(str[0, i], out, width, justify) + ' ' +print(str[i+1, str.length], out, width, justify)
|
127
126
|
elsif(!str.empty?)
|
128
127
|
line = str.justify(width, justify)
|
129
128
|
out << "\n#{line}"
|
metadata
CHANGED