plugins/ruby: handle boolean return values correctly