josscrowcroft/money.js — pull request #1 by rvagg (2011-10-15 12:03:50+00:00)
Title: Ender integration

Hi Joss, thanks for a clever library, and the curencybot data is just fantastic.

Included in this pull request is Ender integration for you to consider. Next time you publish to NPM, the package.json will let Ender know that it's available for inclusion so it'll show up under "Ender tagged results" when someone does an `ender search `. And when someone runs an Ender build and includes 'money' in the build command they get it nicely integrated into Ender.

I went with the 'forex' name for `$.forex` because I thought 'fx' would be quite likely to conflict with an effects package. Let me know if you would rather something else.

I also included a `$.forex.loadLatest()` that'll work in an Ender build that has Reqwest in it too for AJAX. Of course, it'll fetch the latest currencybot data and there's also an optional callback function you can provide that will be executed when the data is received and loaded.

I've also hacked your docs a bit to show Ender usage, I hope you don't mind me doing that.

Have a look and let me know what you think and if you'd like any changes.

Cheers