Use bundler for dependencies
DelegateClass does not respond to #loop anymore in 2.1
Leave file in the same mode as it was before opening