In almost every Sinatra example I've seen, despite what it does, it always has the following two lines:
require 'rubygems'
require 'bundler/setup'
In most examples, removing the 'bundler/setup' require seems to have no breaking effect, so I'm confused about when/where I need to include this.
I hate using things without knowing exactly the reason for it being there, so I was hoping someone could explain why I need both lines and what they do?