redmine 2.5.0 and ruby 1.8 compatibility

i got your plugin working with redmine 2.5.0 with this changes.