Ruth was David’s great-grandmother, but she was a Moabite, so descended from Lot, Abraham’s nephew. Was she technically a Gentile?
I believe so, since all Jews are directly deccended from Abraham. Many orthodox Jews do not consider David a full Jew.