factory_girl
https://github.com/thoughtbot/factory_girl
Ruby
A library for setting up Ruby objects as test data.
Mail::Encodings.param_decode
Decodes a parameter value using URI Escaping.
Example:
Mail::Encodings.param_decode("This%20is%20fun", 'us-ascii') #=> "This is fun"
str = Mail::Encodings.param_decode("This%20is%20fun", 'iso-8559-1')
str.encoding #=> 'ISO-8859-1' ## Only on Ruby 1.9
str #=> "This is fun"Edit
git clone [email protected]:thoughtbot/factory_girl.git
cd factory_girl
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mail--Encodings-param_decode-for-pr
# Commit to gitgit add git commit -m "better docs for Mail::Encodings.param_decode"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mail--Encodings-param_decode-for-pr
hub pull-request
# Celebrate!