def _addRubyProvides(self, path, m, pkgFiles, macros, prov):
        flags = self._getRubyFlagsFromPath(path, self.rubyVersion)
        flags = [(x, deps.FLAG_SENSE_REQUIRED) for x in sorted(list(flags))]
        dep = deps.Dependency(prov, flags)
        for pkg, _ in pkgFiles:
            self._addDepToMap(path, pkg.providesMap, deps.RubyDependencies, dep)