resumetools 0.2.8.5 → 0.2.9.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 +4 -4
- data/README.md +2 -0
- data/lib/fonts/SourceSansPro-Black.ttf +0 -0
- data/lib/fonts/SourceSansPro-BlackIt.ttf +0 -0
- data/lib/fonts/SourceSansPro-Bold.ttf +0 -0
- data/lib/fonts/SourceSansPro-BoldIt.ttf +0 -0
- data/lib/fonts/SourceSansPro-ExtraLight.ttf +0 -0
- data/lib/fonts/SourceSansPro-ExtraLightIt.ttf +0 -0
- data/lib/fonts/SourceSansPro-It.ttf +0 -0
- data/lib/fonts/SourceSansPro-Light.ttf +0 -0
- data/lib/fonts/SourceSansPro-LightIt.ttf +0 -0
- data/lib/fonts/SourceSansPro-Regular.ttf +0 -0
- data/lib/fonts/SourceSansPro-Semibold.ttf +0 -0
- data/lib/fonts/SourceSansPro-SemiboldIt.ttf +0 -0
- data/lib/resumetools/resume/pdf.rb +9 -1
- data/lib/resumetools/version.rb +1 -1
- metadata +13 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 024150fef46ef5cbda1724ec6505a33af0981f58
|
|
4
|
+
data.tar.gz: 8a9ef0eced9fe58ea436cfad8afa0e2c6e12ebda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cd0eea0d506d0367e1a2953380a7f3a451c4a86f04f73829ce0d780d1de354a6c6c0ef4a50dd1def35ffe15e83a0208eb68d38a78c6f277e255fe91755349a0
|
|
7
|
+
data.tar.gz: a6d1e9dda05a2248de91a942759ae7427cdbe0e720f06dec059e397d3de1f01031dd5edcbdb83ac94fcefc1123a390c42a068af59838a5f5e9cae93ed48f0860
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@ https://github.com/virgild/resumetools
|
|
|
6
6
|
[](https://travis-ci.org/virgild/resumetools)
|
|
7
7
|
[](https://codeclimate.com/github/virgild/resumetools)
|
|
8
8
|
[](https://codeclimate.com/github/virgild/resumetools)
|
|
9
|
+
[](https://hakiri.io/github/virgild/resumetools/master)
|
|
10
|
+
[](https://www.omniref.com/ruby/gems/resumetools)
|
|
9
11
|
|
|
10
12
|
DESCRIPTION:
|
|
11
13
|
------------
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -44,6 +44,8 @@ module ResumeTools
|
|
|
44
44
|
|
|
45
45
|
# Render to PDF
|
|
46
46
|
def render_pdf(opts={})
|
|
47
|
+
default_font = opts.delete(:default_font) || "SourceSansPro"
|
|
48
|
+
|
|
47
49
|
pdf = Prawn::Document.new(
|
|
48
50
|
:info => {},
|
|
49
51
|
:top_margin => MARGINS[0].in,
|
|
@@ -58,11 +60,17 @@ module ResumeTools
|
|
|
58
60
|
:bold => File.expand_path("VeraBd.ttf", FONT_DIR),
|
|
59
61
|
:italic => File.expand_path("VeraIt.ttf", FONT_DIR),
|
|
60
62
|
:bold_italic => File.expand_path("VeraBI.ttf", FONT_DIR)
|
|
63
|
+
},
|
|
64
|
+
"SourceSansPro" => {
|
|
65
|
+
:normal => File.expand_path("SourceSansPro-Regular.ttf", FONT_DIR),
|
|
66
|
+
:bold => File.expand_path("SourceSansPro-Semibold.ttf", FONT_DIR),
|
|
67
|
+
:italic => File.expand_path("SourceSansPro-It.ttf", FONT_DIR),
|
|
68
|
+
:bold_italic => File.expand_path("SourceSansPro-SemiboldIt.ttf", FONT_DIR)
|
|
61
69
|
}
|
|
62
70
|
)
|
|
63
71
|
|
|
64
72
|
# Set default font
|
|
65
|
-
pdf.font(
|
|
73
|
+
pdf.font(default_font, :style => :normal, :size => FONT_SIZES[:default], :kerning => true)
|
|
66
74
|
|
|
67
75
|
# Name
|
|
68
76
|
pdf.text self.full_name, :style => :bold, :size => FONT_SIZES[:header], :align => :center
|
data/lib/resumetools/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resumetools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Virgil Dimaguila
|
|
@@ -107,6 +107,18 @@ files:
|
|
|
107
107
|
- Rakefile
|
|
108
108
|
- examples/sample.pdf
|
|
109
109
|
- examples/sample.resume
|
|
110
|
+
- lib/fonts/SourceSansPro-Black.ttf
|
|
111
|
+
- lib/fonts/SourceSansPro-BlackIt.ttf
|
|
112
|
+
- lib/fonts/SourceSansPro-Bold.ttf
|
|
113
|
+
- lib/fonts/SourceSansPro-BoldIt.ttf
|
|
114
|
+
- lib/fonts/SourceSansPro-ExtraLight.ttf
|
|
115
|
+
- lib/fonts/SourceSansPro-ExtraLightIt.ttf
|
|
116
|
+
- lib/fonts/SourceSansPro-It.ttf
|
|
117
|
+
- lib/fonts/SourceSansPro-Light.ttf
|
|
118
|
+
- lib/fonts/SourceSansPro-LightIt.ttf
|
|
119
|
+
- lib/fonts/SourceSansPro-Regular.ttf
|
|
120
|
+
- lib/fonts/SourceSansPro-Semibold.ttf
|
|
121
|
+
- lib/fonts/SourceSansPro-SemiboldIt.ttf
|
|
110
122
|
- lib/fonts/Vera.ttf
|
|
111
123
|
- lib/fonts/VeraBI.ttf
|
|
112
124
|
- lib/fonts/VeraBd.ttf
|