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 Fri Dec 12 06:56:32 -0800 2008 adding jared to contributors, README, and License [dancroak]
file README.textile Fri Jan 09 07:00:18 -0800 2009 updating README to reflect return to Webster as... [dancroak]
file Rakefile Fri Jan 09 11:10:59 -0800 2009 bumping the gemspec to 0.4.9 [dancroak]
file init.rb Fri Nov 28 16:03:14 -0800 2008 adding should_be_webster_word shoulda macro [dancroak]
directory lib/ Thu Jan 08 14:55:36 -0800 2009 converted Webster from a module into a class, r... [jareCare]
directory shoulda_macros/ Fri Jan 09 10:55:02 -0800 2009 refactored test to use shoulda macro [jareCare]
directory test/ Fri Jan 09 10:55:02 -0800 2009 refactored test to use shoulda macro [jareCare]
file webster.gemspec Fri Jan 09 11:10:59 -0800 2009 bumping the gemspec to 0.4.9 [dancroak]
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