Whatever the nature of projects landing on globaldev's lap, there's always a common motive: helping our members find that special someone easier. We've learnt that sometimes it's the little ideas that make a big difference. We've also learnt that sometimes those ideas aren't quite as little or simple as we'd first expect.
One of our recent enhancements was to enable auto-login functionality from all email comms. A seemingly trivial job of parsing content, appending login tokens to any relevant site links and a bit of cryptographic fun on the side.
However, after a quick awakening regarding:
- our large store of custom email assets;
- the various email sourcing apps to update (each with their own content rendering phases); and
- the not so straight-forward concept of URL manipulation
auto_loginify_linkfunctions everywhere was not going to cut it.
That's where a little birdie flew in. Our latest public release, UrlyBird is a nifty little gem that makes the process of modifying any URI-like object in place nice and easy. Simply pass UrlyBird your content, tell him your preferences (e.g. Need to filter by hostname or extension? Would you like links in anchors only or is this a plain text version?) and hand him a block of things you'd like to do with any relevant matches.
In actionThe above will print:
All in one fell swoop!
UrlyBird has been successfully supporting our link rendering needs to date and is now available to all via RubyGems (
gem install urlybird). You can find the code up on GitHub here. Improvements are always welcome. If you have any queries or contributions, we'd love to hear from you.