Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created February 8, 2009 01:26
Show Gist options
  • Save vangberg/60131 to your computer and use it in GitHub Desktop.
Save vangberg/60131 to your computer and use it in GitHub Desktop.
1. I copy http://github.com/ichverstehe/foo/commit/17a5a5d55cb28ea1440be1f704497a588694aab3
2. In jello.rb L17 pasteboard.gets sets @current = http://github.com/ichverstehe/foo/commit/17a5a5d55cb28ea1440be1f704497a588694aab3
3. I have shortener enabled, so after all moulds have been ran, the pasteboard now contains http://tr.im/f7v7?github
4. The loop is repeated, and at jello.rb L17 pasteboard.gets sets @last to @current, which is still the original github-url, and thus pasteboard.gets (which is http://tr.im/..) != @last and the moulds are walked through once more.
On the other hand, if Pasteboard#puts updates @current (which is logically correct, as the current pasteboard *is* whatever #puts sets it to) each copy will only get one time through the moulds.
Doesn't matter much, except, for my Growl mould, where I really prefer only getting one notification :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment