resumetools 0.2.9.2 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26fd71a926925b4465cae7ea9cf78a7fc0dd8f10
4
- data.tar.gz: 0d6bb095ab283000ff79a60e5293a97653294487
3
+ metadata.gz: e17f67d8ba704cb4f8c6940481a7503957ba0e10
4
+ data.tar.gz: 74d2213c02355194a0a8517a8f3643d58eaedd50
5
5
  SHA512:
6
- metadata.gz: 77ccd2c1be8e2a28e0c669e0c85b52eaf0185691f261f3db7921ff92a462831b17d702fefb70ae720cfa335e23d4bf02b83a62e8b4481174db2d58e3731bc381
7
- data.tar.gz: 4baead29f417a6d5a6381d781e3bcede943b7864e5079f42074e8e7b99a3064b604b32f9ee8f8f93fa7ea7f4b38d59d313936ec3f00bc923b42b41797511f153
6
+ metadata.gz: 9e32bfc45e644858c62838a23369b37bcd295a3dedb028a2d4d70b512aeea85726e62ac980984f2275b3b8c7eca57762a4f6fc002473c50a3ab5f3af78f58594
7
+ data.tar.gz: 0c7c8ab3a343d982503ae12d9ac26f6190a750b9c77c8c86e3910280769078befcebb1b4af57a95a00d81679d39607f00fa12447371ac2ee9ed4e70945f3dfda
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 2015-03-16 (Version 1.0.0)
2
+ * Removed Vera Sans font
3
+ * Set Source Sans Pro as default font
4
+ * Added horizontal line after the header
5
+ * Requires Ruby 2.0
6
+
1
7
  2009-10-19 (Version 0.2.7.5)
2
8
  * Enclosed ResumeParser in module
3
9
 
@@ -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 = [1.0, 1.0, 1.0, 1.0]
33
+ MARGINS = [0.75, 1.0, 0.85, 1.0]
34
34
  FONT_SIZES = {
35
- :default => 9,
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 self.full_name, :style => :bold, :size => FONT_SIZES[:header], :align => :center
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 line, :align => :center
74
+ pdf.text(line, {
75
+ align: :center
76
+ })
81
77
  end
82
78
 
83
- pdf.pad_bottom 20 do
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.each do |section|
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
 
@@ -25,6 +25,6 @@
25
25
 
26
26
  unless defined? ResumeTools::VERSION
27
27
  module ResumeTools
28
- VERSION = "0.2.9.2"
28
+ VERSION = "1.0.0"
29
29
  end
30
30
  end
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.2.9.2
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-02-27 00:00:00.000000000 Z
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
- Resume generation and writing tools
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