Skip to content

Instantly share code, notes, and snippets.

View practicingruby's full-sized avatar

Gregory Brown practicingruby

View GitHub Profile
@practicingruby
practicingruby / gist:86920
Created March 27, 2009 21:53
ACKNOWLEDGEMENTS
Over the course of writing Ruby Best Practices, I was thoroughly supported by my
friends, family, and fellow hackers. I want to thank each and every one of the folks
who've helped out with this book, because it would not have existed without them.
This book did not have a typical technical review process, but instead was supported
by an excellent advisory board who participated in group discussion and the occasional
review as each chapter was released. These folks not only helped catch technical errors,
but helped me sketch out the overall vision for how the book should come together as
well. Participants included James Britt, Francis Hwang, Hart Larew, Chris Lee, Jeremy McAnally
and Aaron Patterson.
Acknowledgements:
Over the course of writing Ruby Best Practices, I was thoroughly supported by
my friends, family, and fellow hackers. I want to thank each and every one of
the folks who've helped out with this book, because it would not have existed
without them.
This book did not have a typical technical review process, but instead was
supported by an excellent advisory board who participated in group discussion
and the occasional review as each chapter was released. These folks not only
Rock
Paper
Scissors
Shoot!
You: Rock
You: Paper
You: Scissors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sandal:prawn $ rake examples
Running Examples
Ran in 13.546971 s
sandal:prawn $ rake19 examples
Running Examples
Ran in 15.534324 s
sandal:prawn $ rake
Prawn specs: Running on Ruby Version: 1.8.6
............................................................................................................................................................................................................
Finished in 10.222839 seconds.
204 tests, 340 assertions, 0 failures, 0 errors
sandal:prawn $ rake19
Prawn specs: Running on Ruby Version: 1.9.1
Started
sjis_str = File.open("file_in_sjis.txt", "r:shift_jis") { |f| f.read }
Prawn::Document.generate("sjis.pdf") do
font "#{Prawn::BASEDIR}/data/fonts/gkai00mp.ttf"
text sjis_str
end
sandal:prawn $ rake examples
Running Examples
Ran in 39.902182 s
sandal:prawn $ rake19 examples
Running Examples
Ran in 14.463586 s
sandal:prawn $ rake test
Prawn specs: Running on Ruby Version: 1.8.6
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
Started
..........................................................................................................................................................................................................
Finished in 33.949722 seconds.
202 tests, 338 assertions, 0 failures, 0 errors
# AS COMPARED TO: