Recipe 19.1. Automatically Running Unit Tests
Credit: Pat Eyler
Problem
You want to make it easy to run your project's unit test suite. You also want the tests to run automatically before you do a new release of your project.
Solutio...
Recipe 19.2. Automatically Generating Documentation
Credit: Stefan Lang
Problem
You want to automatically create HTML pages from the RDoc formatted comments in your code, and from other RDoc formatted files.
Solution
Within your Rak...
Recipe 19.3. Cleaning Up Generated Files
Credit: Stefan Lang
Problem
You want to clean up files that aren't actually part of your project: generated files, backup files, and so on.
Solution
Within your Rakefile, require the
rake/clean...
Recipe 19.4. Automatically Building a Gem
Credit: Stefan Lang
Problem
You want to automatically build a gem package for your application or library whenever you do a release.
Solution
Require the rake/gempackagetask library within y...
Recipe 19.5. Gathering Statistics About Your Code
Credit: Stefan Lang
Problem
You want to gather statistics about your Ruby project, like the total number of lines of code.
Solution
Here's a class that parses Ruby source files and g...
Recipe 19.6. Publishing Your Documentation
Credit: Stefan Lang
Problem
You want to automatically update your project's web site on RubyForge (or some other site) with generated documentation or custom pages.
Solution
As seen in Reci...
Recipe 19.7. Running Multiple Tasks in Parallel
Problem
Your build process takes too long to run. Rake finishes copying one set of files only to start copying another set. You could save time by running these tasks in parallel, instead of ...
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.