Move monkey patch modules to the OpenStreetMap namespace Having them in the OSM namespace risks blocking autoloading of the lib/osm.rb code by defining the OSM constant.
Replace alias_method_chain with Module#prepend
Simplify monkey patch The log method has grown new arguments which we weren't passing on, but fortunately the exception translation is now delegated to another method so we can patch that instead.
Fix rubocop warnings
Fix most auto-correctable rubocop issues
Cleanup trailing whitespace
Fix typo that stopped monkey patch working
Correct name of ActiveRecord
Make database offline mode work
Fixed warning.
Handle Timeout::Error exceptions which are caught by ActiveRecord.
Check for wrapped timeout errors properly.
Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call.
Monkey patch rails to ensure OSM::APITimeoutError exceptions are not lost.