ransacklib 0.1.11__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ransacklib might be problematic. Click here for more details.
- {ransacklib-0.1.11/ransacklib.egg-info → ransacklib-1.0.0}/PKG-INFO +3 -1
- {ransacklib-0.1.11 → ransacklib-1.0.0}/pyproject.toml +2 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/__init__.py +1 -1
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/parser.py +1 -1
- {ransacklib-0.1.11 → ransacklib-1.0.0/ransacklib.egg-info}/PKG-INFO +3 -1
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransacklib.egg-info/requires.txt +2 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/tests/test_parser.py +8 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/LICENSE +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/README.rst +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/exceptions.py +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/function.py +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/operator.py +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/py.typed +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransack/transformer.py +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransacklib.egg-info/SOURCES.txt +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransacklib.egg-info/dependency_links.txt +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/ransacklib.egg-info/top_level.txt +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/setup.cfg +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/tests/test_operator.py +0 -0
- {ransacklib-0.1.11 → ransacklib-1.0.0}/tests/test_transformer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ransacklib
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A modern, extensible language for manipulation with structured data
|
|
5
5
|
Author-email: "Rajmund H. Hruška" <rajmund.hruska@cesnet.cz>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -23,6 +23,8 @@ Requires-Dist: sphinx; extra == "dev"
|
|
|
23
23
|
Requires-Dist: sphinx_rtd_theme; extra == "dev"
|
|
24
24
|
Requires-Dist: mypy; extra == "dev"
|
|
25
25
|
Requires-Dist: ruff; extra == "dev"
|
|
26
|
+
Requires-Dist: build; extra == "dev"
|
|
27
|
+
Requires-Dist: twine; extra == "dev"
|
|
26
28
|
Dynamic: license-file
|
|
27
29
|
|
|
28
30
|
Welcome to ransack
|
|
@@ -112,7 +112,7 @@ class Parser:
|
|
|
112
112
|
DATE.2: /[0-9]{4}-[0-9]{2}-[0-9]{2}/
|
|
113
113
|
TIME.2: /[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?(?:[Zz]|(?:[+-][0-9]{2}:[0-9]{2}))?/
|
|
114
114
|
TIMEDELTA.2: /([0-9]+[D|d])?[0-9]{2}:[0-9]{2}:[0-9]{2}/
|
|
115
|
-
STRING: /"([^"]
|
|
115
|
+
STRING: /"([^"]*)"|\'([^\']*)\'/
|
|
116
116
|
VARIABLE: /\.?[_a-zA-Z][-_a-zA-Z0-9]*(?:\.?[_a-zA-Z][-_a-zA-Z0-9]*)*/
|
|
117
117
|
FUNCTION.2: /[_a-zA-Z][_a-zA-Z0-9]*\(/
|
|
118
118
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ransacklib
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A modern, extensible language for manipulation with structured data
|
|
5
5
|
Author-email: "Rajmund H. Hruška" <rajmund.hruska@cesnet.cz>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -23,6 +23,8 @@ Requires-Dist: sphinx; extra == "dev"
|
|
|
23
23
|
Requires-Dist: sphinx_rtd_theme; extra == "dev"
|
|
24
24
|
Requires-Dist: mypy; extra == "dev"
|
|
25
25
|
Requires-Dist: ruff; extra == "dev"
|
|
26
|
+
Requires-Dist: build; extra == "dev"
|
|
27
|
+
Requires-Dist: twine; extra == "dev"
|
|
26
28
|
Dynamic: license-file
|
|
27
29
|
|
|
28
30
|
Welcome to ransack
|
|
@@ -326,6 +326,14 @@ def test_string_with_special_chars(parser):
|
|
|
326
326
|
assert "string" in tree.pretty()
|
|
327
327
|
assert special_input in tree.pretty()
|
|
328
328
|
|
|
329
|
+
# Test empty strings
|
|
330
|
+
def test_string_empty(parser):
|
|
331
|
+
tree = parser.parse_only('""')
|
|
332
|
+
assert tree is not None
|
|
333
|
+
assert "string" in tree.pretty()
|
|
334
|
+
tree = parser.parse_only("''")
|
|
335
|
+
assert tree is not None
|
|
336
|
+
assert "string" in tree.pretty()
|
|
329
337
|
|
|
330
338
|
# Test for strings in a larger expression (within arithmetic expression)
|
|
331
339
|
def test_string_in_expression(parser):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|