stympy/faker — pull request #52 by thedeeno (2012-01-30 06:03:44+00:00)
Title: Lorem randomization (closing issue #1)

This patch makes it easier to generate random text (and resolves #1). The following Lorem methods (the plurals) can accept a range or array in addition to integer for it's count parameter.

```ruby
# extended methods
Lorem::characters
Lorem::words
Lorem::sentences
Lorem::paragraphs

# usage - random number from range
Lorem::words(2..5)
> 2, 3, 4, or 5 words

# usage - random number from set
Lorem::words([1, 4, 6])
> 1, 4, or 6 words
```

Additionally, this test makes it easier to bootstrap the test env (which I had to do by hand the fist time).

Tests included and passing.