Commit graph

14 commits

Author SHA1 Message Date
Tom Hughes
f8f7054fc2 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.
2017-06-02 16:33:27 +01:00
Tom Hughes
f940a154f3 Replace alias_method_chain with Module#prepend 2017-06-01 22:45:28 +01:00
Tom Hughes
c129a8eec5 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.
2016-12-02 09:42:05 +00:00
Tom Hughes
8fe1899596 Fix rubocop warnings 2016-01-19 09:51:24 +00:00
Tom Hughes
ef7f3d800c Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456 Cleanup trailing whitespace 2015-02-20 08:56:16 +00:00
Tom Hughes
8abe7ec6ed Fix typo that stopped monkey patch working 2010-07-19 12:36:30 +01:00
Tom Hughes
c38de8027f Correct name of ActiveRecord 2010-06-15 17:12:55 +01:00
Tom Hughes
8af14faa49 Make database offline mode work 2010-06-15 10:07:39 +01:00
Tom Hughes
ee5735d550 Fixed warning. 2010-01-13 13:41:13 +00:00
Tom Hughes
70bb55b35e Handle Timeout::Error exceptions which are caught by ActiveRecord. 2010-01-11 09:55:55 +00:00
Tom Hughes
4f6dc55683 Check for wrapped timeout errors properly. 2009-05-21 21:55:30 +00:00
Shaun McDonald
d4954bc7b1 Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call. 2009-05-21 14:05:09 +00:00
Tom Hughes
e3cbeeae94 Monkey patch rails to ensure OSM::APITimeoutError exceptions are not lost. 2009-05-21 09:57:21 +00:00