github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

erbmicha / comic-curse

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Ruby on Rails plugin that adds the 'comic_curse' method to any String object which replaces curse words with %$#@! or whatever is defined — Read more

  cancel

http://www.erbmicha.com/comic-curse

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fixed bug in the regexp definition 
erbmicha (author)
Fri Apr 11 08:13:32 -0700 2008
commit  f5c3390ed0556edff0f467b52a197101c96dc262
tree    bf3a8a9afccceef1d161a59508f807111e42e111
parent  a082bd63efdb752b2eb7c0ad3b841aa3759da23f
comic-curse /
name age
history
message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
directory assets/
directory config/
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server