Ruth the Moabite went with Naomi, and it says that "Ruth clinged to her." She was following the progenitor of her nation of whom it says, "Lot went with him," with Abraham. Lot and Ruth come to realize Noach's blessing that "Yafeth will dwell in the tents of Shem." The case of Ruth shows that the blessing Davka refers to the places of power. That is the tent of Shem. Don't think "Moavi" and not "Moavit,", that law came to stop a prevalent matter. The Moavi and the Ammoni, they "went with him," because of Noach's blessing.
The tent of Shem once was the kingship, Malchut. Then the tent became the priesthood, the background of the sadducees, the J2 cohanim. That did not end well. In our time, the tent of Shem are the positions of power in Medinat Yisrael, and, to lesser degree, the rabbanut. Beware, be careful, but know that it will end well. Ruth was sincere, as was Lot. Yafeth will sincerely dwell in the tents of Shem.
Tonight is Yom Yerushalayim. Julius Wellhausen was born on this date, 170 years ago, 104 years before the rise of the Medina. I imagine he would have liked this Dvar Torah.