Project edit

This commit is contained in:
alexey
2025-03-08 00:13:31 +03:00
parent f88ef52d87
commit e0d169e679
11 changed files with 288 additions and 4 deletions

View File

@@ -30,3 +30,7 @@ def check_safe_path(filename)
home_dir = Dir.home
filename.start_with?("/etc/mock") || filename.start_with?(current_dir) || filename.start_with?(home_dir)
end
def get_spec_files_in_dir(directory)
Dir.glob(File.join(directory, "**", "*")).reject { |f| File.directory?(f) }.select { |f| File.extname(f) == ".spec" }.map { |f| f.delete_prefix(directory + "/") }
end