How about adding something like this to the rvm/rbenv hooks:
```
Rake::Task.tasks.each do |t| 
  t.enhance do 
    [...]
  end
end
```
and then adding the hook as dependency/prerequisite or so...