public
Description: Generate random short, non-offensive words. Good for human-readable confirmation codes.
Homepage:
Clone URL: git://github.com/dancroak/webster.git
name age message
file .gitignore Sun Oct 26 11:03:24 -0700 2008 creating short README [dancroak]
file LICENSE Loading commit data...
file README.textile
file Rakefile
file init.rb Fri Nov 28 16:03:14 -0800 2008 adding should_be_webster_word shoulda macro [dancroak]
directory lib/
directory shoulda_macros/
directory test/
file webster.gemspec
README.textile

Webster

Generate random short words. Good for human-readable confirmation codes.

Install

sudo gem install dancroak-webster —source=http://gems.github.com

Usage

require ‘rubygems’ require ‘webster’ webster = Webster.new webster.random_word => “spoonless”

Shoulda macro

context “Subscription#activation_code” do setup do subscription = Factory :subscription @word = subscription.set_activation_code end should_be_webster_word “@word” end

Authors

Webster was written for Umbrella Today? by thoughtbot. It was extracted into a stand-alone Ruby gem by Dan Croak & Jared Carroll.

License

MIT License, same terms as Ruby