Make ruby discovery generic