Added required parameters to on_apply and other on_.. functions

This is needed for ruby versions newer the 1.8.7

Signed-off-by: Bert Hajee <hajee@moretIA.com>
Make spec work on more versions

Signed-off-by: Bert Hajee <hajee@moretIA.com>