aetrion/dnsimple-ruby — pull request #11 by freelancing-god (2011-12-30 04:15:25+00:00)
Title: Add API Token support, plus general tweaking and DRYing up.

I got a little carried away here - there's a bit to read through... here's the main stuff:

* API Token support
* All API calls are managed by DNSimple::Client. This means that 401 checks and debugging output can be done in one place.
* All classes using DNSimple::Client now have one level of indentation instead of two - the DNSimple namespace isn't declared in each one, as it already exists when each of those files are required.
* There's a common base class for all data object models - DNSimple::Base, which provides the standard initialiser.
* The two situations where aliases were being defined have been shifted to constants, so each check for an alias isn't making the hash be defined yet again.
* Pulled out Jeweler - I don't mind it, but Bundler doesn't get in the way as much, and keeps things simpler.
* Removed .rvmrc and .bundle - they're environment settings for each developer to make their own choices about.
* Added lib/dnsimple-ruby.rb, which requires 'dnsimple' - no need for an explicit :require statement in Gemfiles.

Hopefully you're cool with all of this :)