resumetools 0.2.9.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +6 -0
- data/lib/resumetools/grammars/resume.treetop +2 -2
- data/lib/resumetools/resume/pdf.rb +20 -12
- data/lib/resumetools/version.rb +1 -1
- metadata +29 -8
- data/lib/fonts/Vera.ttf +0 -0
- data/lib/fonts/VeraBI.ttf +0 -0
- data/lib/fonts/VeraBd.ttf +0 -0
- data/lib/fonts/VeraIt.ttf +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e17f67d8ba704cb4f8c6940481a7503957ba0e10
|
4
|
+
data.tar.gz: 74d2213c02355194a0a8517a8f3643d58eaedd50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e32bfc45e644858c62838a23369b37bcd295a3dedb028a2d4d70b512aeea85726e62ac980984f2275b3b8c7eca57762a4f6fc002473c50a3ab5f3af78f58594
|
7
|
+
data.tar.gz: 0c7c8ab3a343d982503ae12d9ac26f6190a750b9c77c8c86e3910280769078befcebb1b4af57a95a00d81679d39607f00fa12447371ac2ee9ed4e70945f3dfda
|
data/CHANGES
CHANGED
@@ -2,7 +2,7 @@ module ResumeTools
|
|
2
2
|
grammar ResumeGrammar
|
3
3
|
|
4
4
|
rule document
|
5
|
-
(contact_data / section / period / period_data / item / para / data)*
|
5
|
+
((contact_data / section / period / period_data / item / para / data) / LF)*
|
6
6
|
end
|
7
7
|
|
8
8
|
rule period_data
|
@@ -58,7 +58,7 @@ module ResumeTools
|
|
58
58
|
end
|
59
59
|
|
60
60
|
rule contact_data
|
61
|
-
contact_name / contact_telephone / contact_email / contact_address /
|
61
|
+
contact_name / contact_telephone / contact_email / contact_address /
|
62
62
|
contact_url / contact_detail
|
63
63
|
end
|
64
64
|
|
@@ -30,9 +30,9 @@ module ResumeTools
|
|
30
30
|
module PDF
|
31
31
|
|
32
32
|
FONT_DIR = File.join(File.dirname(__FILE__), '..', '..', 'fonts')
|
33
|
-
MARGINS = [
|
33
|
+
MARGINS = [0.75, 1.0, 0.85, 1.0]
|
34
34
|
FONT_SIZES = {
|
35
|
-
:default =>
|
35
|
+
:default => 10,
|
36
36
|
:header => 14,
|
37
37
|
:contact => 9,
|
38
38
|
:section => 11,
|
@@ -55,12 +55,6 @@ module ResumeTools
|
|
55
55
|
)
|
56
56
|
|
57
57
|
pdf.font_families.update(
|
58
|
-
"VeraSans" => {
|
59
|
-
:normal => File.expand_path("Vera.ttf", FONT_DIR),
|
60
|
-
:bold => File.expand_path("VeraBd.ttf", FONT_DIR),
|
61
|
-
:italic => File.expand_path("VeraIt.ttf", FONT_DIR),
|
62
|
-
:bold_italic => File.expand_path("VeraBI.ttf", FONT_DIR)
|
63
|
-
},
|
64
58
|
"SourceSansPro" => {
|
65
59
|
:normal => File.expand_path("SourceSansPro-Regular.ttf", FONT_DIR),
|
66
60
|
:bold => File.expand_path("SourceSansPro-Semibold.ttf", FONT_DIR),
|
@@ -73,18 +67,25 @@ module ResumeTools
|
|
73
67
|
pdf.font(default_font, :style => :normal, :size => FONT_SIZES[:default], :kerning => true)
|
74
68
|
|
75
69
|
# Name
|
76
|
-
pdf.text
|
70
|
+
pdf.text(self.full_name, style: :bold, size: FONT_SIZES[:header], align: :center)
|
77
71
|
|
78
72
|
# Contact info
|
79
73
|
self.header_lines.each do |line|
|
80
|
-
pdf.text
|
74
|
+
pdf.text(line, {
|
75
|
+
align: :center
|
76
|
+
})
|
81
77
|
end
|
82
78
|
|
83
|
-
pdf.pad_bottom
|
79
|
+
pdf.pad_bottom 10 do
|
80
|
+
end
|
81
|
+
|
82
|
+
drawline(pdf)
|
83
|
+
|
84
|
+
pdf.pad_bottom 0 do
|
84
85
|
end
|
85
86
|
|
86
87
|
# Sections
|
87
|
-
self.sections.
|
88
|
+
self.sections.each_with_index do |section, index|
|
88
89
|
pdf.pad_top(20) do
|
89
90
|
# Section title
|
90
91
|
pdf.text section.title, :style => :bold, :size => FONT_SIZES[:section]
|
@@ -137,6 +138,13 @@ module ResumeTools
|
|
137
138
|
pdf.render
|
138
139
|
end
|
139
140
|
|
141
|
+
def drawline(pdf)
|
142
|
+
pdf.stroke do
|
143
|
+
pdf.line_width = 0.25
|
144
|
+
pdf.stroke_color("000000")
|
145
|
+
pdf.horizontal_rule
|
146
|
+
end
|
147
|
+
end
|
140
148
|
end #module PDF
|
141
149
|
end #module Renderer
|
142
150
|
|
data/lib/resumetools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resumetools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Virgil Dimaguila
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -29,6 +29,9 @@ dependencies:
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.2'
|
34
|
+
- - ">="
|
32
35
|
- !ruby/object:Gem::Version
|
33
36
|
version: 3.2.0
|
34
37
|
type: :development
|
@@ -36,6 +39,9 @@ dependencies:
|
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '3.2'
|
44
|
+
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: 3.2.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
@@ -43,6 +49,9 @@ dependencies:
|
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.2'
|
54
|
+
- - ">="
|
46
55
|
- !ruby/object:Gem::Version
|
47
56
|
version: 4.2.0
|
48
57
|
type: :runtime
|
@@ -50,6 +59,9 @@ dependencies:
|
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
61
|
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '4.2'
|
64
|
+
- - ">="
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: 4.2.0
|
55
67
|
- !ruby/object:Gem::Dependency
|
@@ -57,6 +69,9 @@ dependencies:
|
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '2.0'
|
74
|
+
- - ">="
|
60
75
|
- !ruby/object:Gem::Version
|
61
76
|
version: 2.0.0
|
62
77
|
type: :runtime
|
@@ -64,6 +79,9 @@ dependencies:
|
|
64
79
|
version_requirements: !ruby/object:Gem::Requirement
|
65
80
|
requirements:
|
66
81
|
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.0'
|
84
|
+
- - ">="
|
67
85
|
- !ruby/object:Gem::Version
|
68
86
|
version: 2.0.0
|
69
87
|
- !ruby/object:Gem::Dependency
|
@@ -85,6 +103,9 @@ dependencies:
|
|
85
103
|
requirement: !ruby/object:Gem::Requirement
|
86
104
|
requirements:
|
87
105
|
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '1.5'
|
108
|
+
- - ">="
|
88
109
|
- !ruby/object:Gem::Version
|
89
110
|
version: 1.5.3
|
90
111
|
type: :runtime
|
@@ -92,10 +113,14 @@ dependencies:
|
|
92
113
|
version_requirements: !ruby/object:Gem::Requirement
|
93
114
|
requirements:
|
94
115
|
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.5'
|
118
|
+
- - ">="
|
95
119
|
- !ruby/object:Gem::Version
|
96
120
|
version: 1.5.3
|
97
|
-
description:
|
98
|
-
|
121
|
+
description: 'Resume generation and writing tools
|
122
|
+
|
123
|
+
'
|
99
124
|
email: virgil@roundysoft.com
|
100
125
|
executables: []
|
101
126
|
extensions: []
|
@@ -119,10 +144,6 @@ files:
|
|
119
144
|
- lib/fonts/SourceSansPro-Regular.ttf
|
120
145
|
- lib/fonts/SourceSansPro-Semibold.ttf
|
121
146
|
- lib/fonts/SourceSansPro-SemiboldIt.ttf
|
122
|
-
- lib/fonts/Vera.ttf
|
123
|
-
- lib/fonts/VeraBI.ttf
|
124
|
-
- lib/fonts/VeraBd.ttf
|
125
|
-
- lib/fonts/VeraIt.ttf
|
126
147
|
- lib/resumetools.rb
|
127
148
|
- lib/resumetools/grammars/resume.treetop
|
128
149
|
- lib/resumetools/resume/export.rb
|
data/lib/fonts/Vera.ttf
DELETED
Binary file
|
data/lib/fonts/VeraBI.ttf
DELETED
Binary file
|
data/lib/fonts/VeraBd.ttf
DELETED
Binary file
|
data/lib/fonts/VeraIt.ttf
DELETED
Binary file
|