diff --git a/CHANGES b/CHANGES index 365ed5b..dd8154c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -v1.0 - YYYY-MM-DD +v1.0 - 2020-09-25 ----------------- * Entire code base has been rewritten * see README.md for detailed changes diff --git a/README.md b/README.md index abe4cc5..dc73ff9 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ The module is published as a pip3 module. **Method 1** You can install it using: ``` -pip3 install msc-pyparser==0.3 +pip3 install msc-pyparser==1.0 ``` That will install it system-wide. @@ -189,7 +189,7 @@ The `MSCParser` class is a wrapper for Ply's `parser` object. The parser object Here is a simple example: ```python -python3 +$ python3 Python 3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. @@ -828,7 +828,7 @@ Actually, there isn't any know bug. Testing rulesets ================ -There are four set which has tested: CRS (of course), Comodo WAF rules, Atomicorp and TrustWave sets. All of them are parsable, but the comparison is a bit difficult. The reason is simple: `msc_pyparser` drops the control tokens and identations. Eg. if the rule uses mixed indentations, that will be replaced by a fix indent string (can be passed to writer class). Or if the rule uses `,` as variable separator, eg `ARGS,ARGS_NAMES`, then the written rules will have `|`. Action list will always quoted, eg: ` ...t:none` will be `... "t:none"`. +There are four set which has tested: CRS (of course), Comodo WAF rules and Atomicorp sets. All of them are parsable, but the comparison is a bit difficult. The reason is simple: `msc_pyparser` drops the control tokens and identations. Eg. if the rule uses mixed indentations, that will be replaced by a fix indent string (can be passed to writer class). Or if the rule uses `,` as variable separator, eg `ARGS,ARGS_NAMES`, then the written rules will have `|`. Action list will always quoted, eg: ` ...t:none` will be `... "t:none"`. There are four script in the `examples/` directory to help the reading and writing of each set: diff --git a/msc_pyparser.py b/msc_pyparser.py index e2c7a9f..c0b318c 100644 --- a/msc_pyparser.py +++ b/msc_pyparser.py @@ -23,7 +23,7 @@ import os.path import glob -__version__ = "1.0b" +__version__ = "1.0" class MSCLexer(object): """Lexer class""" diff --git a/setup.py b/setup.py index 9af90a7..9d44e9a 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ """, python_requires=">=3", license="""GPLv3""", - version = "1.0b", + version = "1.0", author = "Ervin Hegedus", author_email = "airween@digitalwave.hu", maintainer = "Ervin Hegedus",