This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Michael Erb (author)
Fri Apr 11 08:13:32 -0700 2008
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
assets/ | ||
| |
config/ | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
ComicCurse
==========
A plugin that adds a 'comic_curse' method to String objects. The method replaces
curse words in the String with a default or defined 'safe' string. The curse
words are kept in a YAML file (RAILS_ROOT/config/curse_words.yml) and are
hashed according to language. You can set one or many or all languages to be
used in the RAILS_ROOT/config/environment.rb file.
Installation should set you up with the defaults.
Feel free to email me any additions you have to the curse_words.yml file. I didn't
spend too much time researching all the possibilities :o)
Example
=======
"bad words like fuck are replaced".comic_curse => "bad words like %$#@! are replaced"
or
"bad words like fuck are replaced".comic_curse('*****') => "bad words like ***** are replaced"
Copyright (c) 2008 Michael Erb <michael [at] erbmicha [dot] com>, released under the MIT license












