Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.

Leanpub Header

Skip to main content

Fast Feedback Using Ruby

Let's use Ruby to automatically get feedback as early and regularly 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.

最低售价

$14.00

$20.00

支付金额

作者利润

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
100
页数
25,676字数
关于

关于

关于本书

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

作者

关于作者们

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 seasidetesting.com.

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

目录

目录

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.1Overview
  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

Leanpub 无条件、零风险的100%满意保证

支付后的60天内,只需简单点击两下,您便可以退书并且取回先前支付的全部金额
查看完整条款

在10美元的购买中赚取8美元,在20美元的购买中赚取16美元

我们在7.99美元或以上的购买中支付80%的版税,在0.99美元到7.98美元之间的购买中支付80%的版税减去0.5美元固定费用在10美元的销售中您可赚取8美元,在20美元的销售中可赚取16美元。因此,如果我们以20美元的价格售出5000本未退款的图书,您将赚取80,000美元

(是的,一些作者在Leanpub上已经赚取了远超过这个数额的收入。)

事实上,作者们通过在Leanpub上写作、出版和销售已经赚取了超过1400万美元

了解更多关于在Leanpub上写作的信息

免费更新。无DRM。

如果你购买了Leanpub的书,只要作者更新这本书,你就可以免费获得更新!许多作者使用Leanpub在他们编写书籍的过程中发布他们的作品。所有读者都可以获得免费更新,无论他们何时购买的书或他们支付了多少钱(包括免费)。

大多数Leanpub书籍都提供PDF(适用于计算机)、EPUB(适用于手机和平板电脑)和MOBI(适用于Kindle)格式。书籍包含的格式会显示在此页面的右上角。

最后,Leanpub的书籍没有任何DRM版权保护的限制,所以你可以轻松地在任何支持的设备上阅读它们。

了解更多关于Leanpub的电子书格式以及在哪里阅读它们

在 Leanpub 上写作和出版

作者与出版社使用 Leanpub 来出版正在写作中和已完成的书籍,就像这本书一样。你也可以使用 Leanpub 来撰写、出版和销售你的作品!Leanpub 是功能强大的平台,非常适合认真的作者。它结合了简单、优雅的写作与出版流程,以及一个可销售正在写作中的电子书的线上商店。Leanpub 是作家的神奇之笔:只需编写纯文本,然后点击按钮即可出版你的电子书。真的就是这么简单。

学习更多关于在 Leanpub 上写作的信息