def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\ruby.exe"),
                    event.deep_get("OriginalFileName", default="") == "ruby.exe",
                ]
            ),
            " -e" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
