Project

reciper

0.0
No commit activity in last 3 years
No release in over 3 years
An awesome way to write recipes for a book chapter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Reciper

Suppose you're writing a book containing some programming recipes. It would be great to have a test suite that ensures that your snippets really are really working. But why we should write a test suite if RSpec already does an awesome job doing it ?

Reciper is a collection of helpers that helps you write tests for your book recipes. It should be included on your described class and used whenever you need to copy files, copy line ranges, run tests, overwrite files, among other things.

Installation

On your Gemfile, just do this:

gem "reciper"

Run bundle install and you're ready to go!

Usage

Usage is really simple:

Recipe.new("My recipe name", "recipe_path/code", "ruby_app_template").execute do
  copy_file("file.rb", :as => "user.rb", :to => "app/models")
end