- Introduces AfterDo::AlternativeNaming to have all methods (
after
,before
,remove_all_callbacks
) prefixed withad_
to avoid naming conflicts for instance in ActionCable - get all core functionality into AfterDo::Core so people can write their own interfaces with own method names
- Hand new arguments to callbacks, namely method name and return value (for after). New Order of block arguments for before is:
arguments, method_name, object
, for after it is:arguments, method_name, return_value, object
. To migrate to this version you need to change blocks that either use*args
and then accessargs
or calls that doarg_1, arg_2, object
as the third argument is now the method name. You can change them toarg_1, arg_2, *, object
. - Dropped explicit rubinius support, it should work but dropped testing. If you need it please get in touch.
- improve error reporting
- run warning free with -w
- Work properly with inheritance (callbacks are just called if
super
is really invoked) - Work properly with modules (callbacks on module methods are executed when the methods are called)