carrierwave

https://github.com/carrierwaveuploader/carrierwave

Ruby

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks

Mail::FieldList#insert_field

Insert the field in sorted order.

Heavily based on bisect.insort from Python, which is:
  Copyright (C) 2001-2013 Python Software Foundation.
  Licensed under <http://docs.python.org/license.html>
  From <http://hg.python.org/cpython/file/2.7/Lib/bisect.py>

Source | Google | Stack overflow

Edit

git clone [email protected]:carrierwaveuploader/carrierwave.git

cd carrierwave

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Mail--FieldList-insert_field-for-pr


# Commit to git

git add git commit -m "better docs for Mail::FieldList#insert_field"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Mail--FieldList-insert_field-for-pr

hub pull-request


# Celebrate!