Error found while inserting a file to Google Drive ruby API client:
Errno::EPIPE: Broken pipe
from /Users/nauval/.rbenv/versions/2.1.2/lib/ruby/2.1.0/openssl/buffering.rb:326:in `syswrite'
Work around: Tell the API client to use HTTPClient as Faraday's default adapter after the require google api
require 'google/api_client'
Faraday.default_adapter = :httpclient
Make sure to put the HTTPClient's gem in the Gemfile
gem 'httpclient', '~> 2.4.0'
taken from http://stackoverflow.com/a/25168422