The smartparens package also negates the need for ruby-electric-mode,
and doesn't play nice with cua-mode. But my use of cua-mode was due to a
bug between ECB and delete-selection-mode, which seems to now be
fixed. Hence cua-mode is out too.
The version currently bundled with emacs trunk seems to have a few
serious issues with indenting. So instead I've pulled in the older 0.9
version directly from Ruby's source code.
Ruby, PHP, JavaScript and others have closing statements for code
blocks. Highlightighting the current indentation level serves as more of
annoyance than a useful tool. The same it not true for the likes of
Python or CoffeeScript for example.
I switched from this very behavior a couple of days ago cause the
reindenting was causing my headaches every now and then. But not having
has been causing me even bigger headaches.