title: Faraday::Error: :hashie is not registered on Faraday::Middleware
body: <p>I am creating a wrapper gem for a RESTful API. I am getting following error when I try to add <code>hashie</code> middleware as per the <a href="https://github.com/lostisland/faraday_middleware#dependencies" rel="nofollow noreferrer">documentation</a>:</p>
  
  <pre><code>Magpress::Login::#call#test_0001_should return valid JWT token:
  Faraday::Error: :hashie is not registered on Faraday::Middleware
      /home/amit/.rvm/gems/ruby-2.2.2@magpress/gems/faraday-0.10.0/lib/faraday.rb:184:in `lookup_middleware'
      /home/amit/.rvm/gems/ruby-2.2.2@magpress/gems/faraday-0.10.0/lib/faraday/rack_builder.rb:204:in `use_symbol'
      /home/amit/.rvm/gems/ruby-2.2.2@magpress/gems/faraday-0.10.0/lib/faraday/rack_builder.rb:84:in `use'
      /home/amit/projects/bt/magpress/lib/magpress/client.rb:24:in `block in connection'
      /home/amit/.rvm/gems/ruby-2.2.2@magpress/gems/faraday-0.10.0/lib/faraday/connection.rb:91:in `initialize'
      /home/amit/.rvm/gems/ruby-2.2.2@magpress/gems/faraday-0.10.0/lib/faraday.rb:70:in `new'
      /home/amit/.rvm/gems/ruby-2.2.2@magpress/gems/faraday-0.10.0/lib/faraday.rb:70:in `new'
      /home/amit/projects/bt/magpress/lib/magpress/client.rb:18:in `connection'
      /home/amit/projects/bt/magpress/lib/magpress/base.rb:7:in `initialize'
      /home/amit/projects/bt/magpress/test/login_spec.rb:13:in `new'
      /home/amit/projects/bt/magpress/test/login_spec.rb:13:in `block (3 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>Here is how I delcared dependencies in <code>.gemspec</code>.</p>
  
  <pre><code>...
    spec.add_dependency "faraday"
    spec.add_dependency "faraday_middleware"
    spec.add_dependency "hashie"
  ....
  </code></pre>
  
  <p>and the class that uses faraday and it's middleware</p>
  
  <pre><code>require 'faraday'
  require 'faraday_middleware'
  require 'hashie'
  module Magpress
    class Client
      def connection(url)
        conn = ::Faraday.new(url) do |faraday|
          faraday.request :json
  
          faraday.response :json, :content_type =&gt; /\bjson$/
  
          # faraday.use :instrumentation
          faraday.use :hashie # FaradayMiddleware::Mashify
          faraday.adapter Faraday.default_adapter
        end   
        conn
      end
    end
  end
  </code></pre>
  
  <p>farady and middlware gem versions</p>
  
  <pre><code>amit@amit:~/projects/bt/magpress$ gem list | grep faraday
  faraday (0.10.0)
  faraday_middleware (0.10.1)
  </code></pre>
  
  <p>What could be wrong here?</p>
  
  <p>If I replace <code>:hashie</code> with <code>FaradayMiddleware::Mashify</code>, the errors goes away but the <code>response.body</code> returns instance of vanilla <code>Hash</code> instead of 
  <code>Hashie::Mash</code></p>