Experiences in building my first gem - CodeRippa ! CodeRippa is a rubygem that takes a source code folder and converts it into a beautifully themed, syntax highlighted, bookmarked PDF.
4. Pop Quiz:
How is it that
CoffeeScript is written
in ... Coffeescript?
Short Answer: Boot strapping.
5. What does it do?
{code} ↦ CodeRippa ↦ {PDF}
" CodeRippa is my attempt to make source code
reading a more pleasurable experience, and help
programmers get better at their craft. " – Me.
11. I I was
only creating a
Stuff I learnt along the way.
12. $ code_rippa -h
Usage: code_rippa [options] input_file_or_directory
Parses input_file or directory and outputs a file named out.tex.
Unless specified, 'Made of Code' is used as the default theme.
To see all themes, type:
code_rippa -l
Examples:
1. code_rippa path_to_file.rb (uses default theme)
2. code_rippa -t rubyblue path_to_file.rb (with theme specified)
3. code_rippa -t rubyblue path_to_dir
Then run `pdflatex -interaction=batchmode out.tex` to generate the PDF output.
Options:
-t, --theme THEME Selected theme
-n, --list-syntax List all available syntax
-l, --list-themes List all available themes
-v, --version Display version number
-h, --help Display this screen
Building a command line tool in Ruby.