twitter/twitter-text-rb — pull request #27 by ryalnd (2011-12-13 22:17:04+00:00)
Title: Option to include '@' symbol as part of a link

Currently, `auto_link_usernames_or_lists` places the `@` symbol outside of `` tags.

To more closely match twitter's auto-linking behavior for usernames and lists, this patch adds the option `:include_symbol` that allows `@` to be included as part of the link, rather than before it.

This patch also includes some fixes to `spec_helper.rb` to prevent errors on failing specs; if needed that could be submitted as a separate patch.