If you get something like this when running bundle install
...
Network error while fetching https://rubygems.org/quick/Marshal.4.8/xxx-x.x.x.gemspec.rz (execution expired)
...this solution might work for you.
First, make sure you have tried all the troubleshoot solutions here.