I have installed on OS X 10.10.3: homebrew, command line tools, then installed ruby using rbenv:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
I was getting the same thing, but with Rails 4.2.1, and running on Puma 2.11.3.
I noticed that Bundler just upgraded rack to 1.6.3. Setting the version back to 1.6.2 resolved it for me.
The issue is here: https://github.com/rails/rails/issues/20624
To solve it, change in your Gemfile:
gem 'rack', '1.6.1'