# Capitalize random words. replace /\b(random|words)\b/i do |word| word.upcase end # Shorten URLs. replace /\bhttp:\/\/([^ ]+)/ do |url| $bitly.shorten(url).short_url end
In keeping with the traditions of hackathons, this agent is horribly fragile. It only works with FedOne's console-based wave client, and it doesn't handle annotations correctly.
Some earlier—and more robust—wave-related projects:
- Pick Several: A gadget which implements approval voting. Written using GWT. Includes a reusable library for writing GWT-based wave gadgets.
- BugLinky: A robot which links bug numbers to a bug tracker. Includes a reusable library for simple pattern-matching, text replacement and annotation.
Many thanks to GTUG and to Google for organizing this hackathon!