import os
from .core import LogFileOutput, MapperOutput, computed  # noqa: F401
from .core.plugins import mapper, reducer, make_response, make_metadata  # noqa: F401
from .mappers import get_active_lines  # noqa: F401
from .util import defaults, parse_table  # noqa: F401

__here__ = os.path.dirname(os.path.abspath(__file__))
VERSION = "1.9.0"
NAME = "falafel"

with open(os.path.join(__here__, "RELEASE")) as f:
    RELEASE = f.read().strip()

with open(os.path.join(__here__, "COMMIT")) as f:
    COMMIT = f.read().strip()


def get_nvr():
    return "{0}-{1}-{2}".format(NAME, VERSION, RELEASE)

@@ -592,8 +592,413 @@
 ELEASE)%0A
+%0ARULES_STATUS = %7B%7D%0A%22%22%22%0AMapping of dictionaries containing nvr and commitid for each rule repo included%0Ain this instance%0A%0A%7B%22rule_repo_1%22: %7B%22version%22: nvr(), %22commit%22: sha1%7D%7D%0A%22%22%22%0A%0A%0Adef add_status(name, nvr, commit):%0A    %22%22%22%0A    Rule repositories should call this method in their package __init__ to%0A    register their version information.%0A    %22%22%22%0A    RULES_STATUS%5Bname%5D = %7B%22version%22: nvr, %22commit%22: commit%7D%0A

Allow rule repos to provide version information