Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Generate random short, non-offensive words. Good for human-readable confirmation codes.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
shoulda_macros
test refactored test to use shoulda macro
.gitignore
LICENSE adding jared to contributors, README, and License
README.md
Rakefile
VERSION Version bump to 0.5.0
init.rb
webster.gemspec Regenerated gemspec for version 0.5.0

README.md

Webster

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

Install

gem install webster

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 and Jared Carroll.

License

MIT License, same terms as Ruby

Something went wrong with that request. Please try again.