josh/nack — pull request #27 by mildmojo (2012-07-09 05:03:20+00:00)
Title: Prevent Rack config script scope leakage, ensure methods are sent to Rack::Builder.

This request addresses issue #26.

`Nack::Builder#method_missing` misses calls to `Rack::Builder` methods when their names collide with methods defined in scopes upstream of `Nack::Builder`. I've added a test and fixture to show the problem, removed `nack/builder.rb`, and converted `Nack::Server` to use `Rack::Builder` directly.

I hit this bug when one of my Rails apps failed to load in [Pow](https://github.com/37signals/pow/).

I haven't included the rubygems fallback when Rack is required in `nack/server.rb`. We can totally change this around if it's important. I'm interested to know the reason why Nack::Builder was originally added, too.