Fast Feedback Using Ruby
Fast Feedback Using Ruby
$11.00
Minimum price
$15.00
Suggested price
Fast Feedback Using Ruby

Last updated on 2016-03-05

About the Book

The book describes various ways of getting feedback — and fast feedback — using Ruby tools, such as plain Ruby scripts and Rake tasks. It also shows a way to automatically execute these tools.

Table of Contents

  • Acknowledgements
  • Preface
    • Who is this book for?
    • Assumptions
    • Icons used in the book
    • Setup & Environment
    • Using Filefiles
  • 1. Introduction
  • 2. First experiments
    • 2.1 A task to solve
    • 2.2 A general setup for projects
    • 2.3 The first HTML generator
  • 3. Rake
    • 3.1 An overview
    • 3.2 The simple text transformation as a Rake task
  • 4. Guard
    • 4.1 Guard installation
    • 4.2 Running Guard – having a Guardfile & a plug-in
    • 4.3 Example Guard usage
  • 5. Combining Rake and Guard
    • 5.1 The directory task
    • 5.2 Rake’s FileList
    • 5.3 A task dependency
    • 5.4 A rule to describe how to generate the HTML files
  • 6. Rake details
    • 6.1 How Rake finds the Rakefile in a directory hierarchy
    • 6.2 Name spaces
    • 6.3 Task Names
    • 6.4 Task bodies and code blocks
    • 6.5 Task dependencies
    • 6.6 Task parameters
    • 6.7 Rake troubles
  • 7. Guard details
    • 7.1 The Guardfile DSL
    • 7.2 A selection of plug-ins
  • 8. Testing Rake tasks – overview
    • 8.1 You don’t test them
    • 8.2 Non-Automated Testing
    • 8.3 Cucumber
    • 8.4 MiniTest or RSpec + Refactored Rake Tasks
    • 8.5 ‘Redefine’ Rake Methods
    • 8.6 Some General Remarks
  • 9. Testing Rake tasks
    • 9.1 Legacy Rake tasks
  • Epilogue

About the Author

Stephan
Stephan Kämper

I test & write software, studied physics. I like the ocean, mountain hiking & art.

Languages (in alphabetical order): English, German, Ruby

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub