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.
$ git clone https://github.com/paulfioravanti/resume.git $ cd resume $ bundle install
- Generate the resume in the following languages:
$ bin/resume -l it
$ bin/resume -l ja
$ bin/resume -h to see all the options.
Run the specs:
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
If I sent my resume to you directly, it would have been generated from this
$ bin/rake resume
- CLI app:
$ ruby resume.rb
$ ruby resume.rb -l it
$ ruby resume.rb -l ja
:it:$ ruby resume.rb -l it
:jp:$ ruby resume.rb -l ja`
The specs can also be run directly on the one sheet resume:
$ rspec resume.rb
- 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
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.
- 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.