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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5748a9a509f9782eecb8e3c6748f19cb21ca419f
4
- data.tar.gz: cefe9053a9b0b64968b9155b93f530e3da546fdc
3
+ metadata.gz: 024150fef46ef5cbda1724ec6505a33af0981f58
4
+ data.tar.gz: 8a9ef0eced9fe58ea436cfad8afa0e2c6e12ebda
5
5
  SHA512:
6
- metadata.gz: e2f8665b0a080e3dc479a493894edb855b221a512ec8a5946aba605adebe8905ce2f1302cf06e51cbde8170cd97c56098a10bf471ec67dde5ff8a5b5baa5f4aa
7
- data.tar.gz: a957ad18362ad40f33f1be55f2fed25bfe32a5509d69dcb78e3c9254953e312a0b92d59d9faf4d1485ebae6bd4dcce08232a7cbe9266204c8c186bf91439a7fb
6
+ metadata.gz: 8cd0eea0d506d0367e1a2953380a7f3a451c4a86f04f73829ce0d780d1de354a6c6c0ef4a50dd1def35ffe15e83a0208eb68d38a78c6f277e255fe91755349a0
7
+ data.tar.gz: a6d1e9dda05a2248de91a942759ae7427cdbe0e720f06dec059e397d3de1f01031dd5edcbdb83ac94fcefc1123a390c42a068af59838a5f5e9cae93ed48f0860
data/README.md CHANGED
@@ -6,6 +6,8 @@ https://github.com/virgild/resumetools
6
6
  [![Travis-CI](https://travis-ci.org/virgild/resumetools.svg?branch=master)](https://travis-ci.org/virgild/resumetools)
7
7
  [![Code Climate](https://codeclimate.com/github/virgild/resumetools/badges/gpa.svg)](https://codeclimate.com/github/virgild/resumetools)
8
8
  [![Test Coverage](https://codeclimate.com/github/virgild/resumetools/badges/coverage.svg)](https://codeclimate.com/github/virgild/resumetools)
9
+ [![security](https://hakiri.io/github/virgild/resumetools/master.svg)](https://hakiri.io/github/virgild/resumetools/master)
10
+ [![resumetools API Documentation](https://www.omniref.com/ruby/gems/resumetools.png)](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
@@ -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("Helvetica", :style => :normal, :size => FONT_SIZES[:default], :kerning => true)
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
@@ -25,6 +25,6 @@
25
25
 
26
26
  unless defined? ResumeTools::VERSION
27
27
  module ResumeTools
28
- VERSION = "0.2.8.5"
28
+ VERSION = "0.2.9.0"
29
29
  end
30
30
  end
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.8.5
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