plugins/ruby: fixed bindings for Ruby 1.9