Leanpub Header

Skip to main content

Fast Feedback Using Ruby

Let's use Ruby to automatically get feedback as early as possible. Whether running automated tests or creating image files from raw data, Ruby can be used to automate these tasks. Furthermore, it can also be used to automate running tasks whenever a file changes. Does that sound like a good idea? Then this book is for you.

Minimum price

$11.00

$15.00

You pay

$15.00

Author earns

$12.00
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
0
Pages
0Words
About

About

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, using guard.

Author

About the Author

Stephan Kämper

Stehpan is a traveller (not necessarily in a geographical sense) who seeks, observes … and occasionally finds.

He studied physics, worked in oceanography, survived cancer, lives at the seaside, and blogs at https://seasidetesting.com/.

Most used languages (in alphabetical order): English, German, Ruby.

Contents

Table of Contents

Acknowledgements

Preface

  1. Who is this book for?
  2. Assumptions
  3. Icons used in the book
  4. Setup & Environment
  5. Using Filefiles

1Introduction

2First experiments

  1. 2.1A task to solve
  2. 2.2A general setup for projects
  3. 2.3The first HTML generator

3Rake

  1. 3.1An overview
  2. 3.2The simple text transformation as a Rake task

4Guard

  1. 4.1Guard installation
  2. 4.2Running Guard – having a Guardfile & a plug-in
  3. 4.3Example Guard usage

5Combining Rake and Guard

  1. 5.1The directory task
  2. 5.2Rake’s FileList
  3. 5.3A task dependency
  4. 5.4A rule to describe how to generate the HTML files

6Rake details

  1. 6.1How Rake finds the Rakefile in a directory hierarchy
  2. 6.2Name spaces
  3. 6.3Task Names
  4. 6.4Task bodies and code blocks
  5. 6.5Task dependencies
  6. 6.6Task parameters
  7. 6.7Rake troubles

7Guard details

  1. 7.1The Guardfile DSL
  2. 7.2A selection of plug-ins

8Testing Rake tasks – overview

  1. 8.1You don’t test them
  2. 8.2Non-Automated Testing
  3. 8.3Cucumber
  4. 8.4MiniTest or RSpec + Refactored Rake Tasks
  5. 8.5‘Redefine’ Rake Methods
  6. 8.6Some General Remarks

9Testing Rake tasks

  1. 9.1Legacy Rake tasks

Epilogue

The Leanpub 60 Day 100% Happiness Guarantee

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

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

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. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub