resume

Generate my PDF resume with Ruby and Prawn

Resume

Build Status Test Coverage Code Climate Dependency Status

This is a Ruby CLI application that generates my resume. I made it in order to teach myself a bit about the Ruby PDF generation library Prawn. Railscast #153 is also a good resource for learning about it.

Text is deliberately obfuscated in the JSON files that contain the resume content with Base64 to ensure people generate the PDF in order to be able to read anything.

Setup

$ git clone https://github.com/paulfioravanti/resume.git
$ cd resume
$ bundle install

Usage

Generate the resume in the following languages:
:uk: $ bin/resume
:it: $ bin/resume -l it
:jp: $ bin/resume -l ja

Run $ bin/resume -h to see all the options.

Run the specs:

$ bin/rspec

If you have SimpleCov installed, view the test coverage report:

$ open coverage/index.html

One Sheet Resume

Generate the “one sheet” version of the resume (the whole app and specs in a single file called resume.rb).
If I sent my resume to you directly, it would have been generated from this rake task:

$ bin/rake resume
CLI app:
:uk: $ ruby resume.rb
:it: $ ruby resume.rb -l it
:jp: $ ruby resume.rb -l ja

<br /> :it:$ ruby resume.rb -l it<br /> :jp:$ ruby resume.rb -l ja`

The specs can also be run directly on the one sheet resume:

$ rspec resume.rb

Dependencies

  • Ruby 2.3.1
  • I18n 0.7, Prawn 2.1.0 and Prawn-Table 0.2.2 (if you don’t have the specific versions of the gems, you will be prompted to install them)
  • RSpec 3.4, if you want to run the specs
  • SimpleCov 0.11 if you want to view the coverage report locally

Presentation

I did a lightning talk about this project at the Ruby on Rails Oceania Meetup on 10 May 2016.
The slide deck can be found here.

Issues:

  • It doesn’t seem possible yet in Prawn to make an embedded image a clickable link. Until support is possible (if ever), I’ve simply pulled in images from Dropbox and overlaid a transparent text link on top to simulate clicking an image. More discussion on this issue is at this StackOverflow thread.

Social

profile for Paul Fioravanti at Stack Overflow, Q&A for professional and enthusiast programmers

Related Repositories

resume-cli

resume-cli

Cli tool to easily setup a new resume ...

Deedy-Resume

Deedy-Resume

A one page , two asymmetric column resume template in XeTeX that caters to an undergraduate Computer Science student ...

markdown-resume

markdown-resume

Generate a responsive CSS3 and HTML5 resume with Markdown, with optional PDF output. ...

markdown-resume-js

markdown-resume-js

Turn a simple markdown document into a resume in HTML and PDF ...

resume

resume

My resume as a PDF including the well commented LaTeX source and build instructions. ...


Top Contributors

paulfioravanti adz bitdeli-chef