add optional hostname and pid components
Fully support Rails 3.1 adaptors, fix :line info

In most Rails 3.1 adaptors, exec_query() is used more often than
execute(). exec_query() wasn't being monkey-patched by marginalia, so
most queries weren't annotated.

Line info wasn't very helpful before because every request would have
the same line info because the line info was being generated once per
request, not once per query. This change makes it so the call stack is
examined on each query.

Also, make it so components with an empty value aren't included in
commonent. For example, if controller or action isn't set (e.g. during
a rake task) they won't be mentioned at all.
Make tests pass.
Merge pull request #12 from codekitchen/master

add optional hostname and PID components
Merge remote-tracking branch 'airbnb/rails31'

Conflicts:
	test/query_comments_test.rb
Only bump version to 1.1.1
Either instrument execute or exec_query, not both
Revert "Either instrument execute or exec_query, not both"

This reverts commit 20d07f628171abec143fb8f64bba7142f5a0cf42.
Prevent double instrumentation

Some adapters (MySQL most notably) call execute from exec_query,
which results in a double comment being added. Check if a comment is
already appended before annotating with a duplicate.
Version bump
Add license into gemspec

So that tools like LicenseFinder can find licenses across gems easier
actually check to see if the class defines the execute/exec_query methods

defined?(<symbol>) doesn't seem to do anything.
Merge pull request #21 from github/fix-execute-check

actually check to see if the class defines the execute/exec_query methods
Merge pull request #20 from kuahyeow/patch-1

Add license into gemspec
Bump gem version in prep for 1.1.3 release
make rubyversion rbenv and rvm compatible

Also bump to latest 1.9.3
Remove Gemfile.lock file
Instrument sqlite3 instead of sqlite
Merge pull request #25 from arthurnn/ruby_version

make rubyversion rbenv and rvm compatible
Merge pull request #26 from arthurnn/remove_lock

Remove Gemfile.lock file