Fixing bundle install
on macOS if it fails with cannot load such file -- rubygems/format (LoadError)
On macOS, chances are that bundle install …
fails with the following error:
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- rubygems/format (LoadError)
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.2.3/lib/bundler/source.rb:5:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.2.3/lib/bundler/dsl.rb:21:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/bundler-1.2.3/lib/bundler/dsl.rb:6:in `new'