Too much complex
Add this line to your application's Gemfile:
gem 'faraday-cage'
And then execute:
$ bundle
Or install it yourself as:
$ gem install faraday-cage