technoweenie/faraday — pull request #200 by matthewcalebsmith (2012-10-15 21:15:10+00:00)
Title: insert/insert_after optionally takes an array for index

This modifies builder's insert and insert_after to allow you to pass an array as the index. This allows you to insert before or after an array of other middlewares. See the tests in test/middleware_stack_test.rb for its exact behavior.

I made this commit awhile ago, but it should merge fine into master without any conflicts. Even still I can update it if necessary.

Please let me know what you think and I am certainly open to feedback. Thanks!