- fixed usage of ruby 1.9+ apis