jsonpointer 3.2.0__tar.gz → 3.2.1__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.
- {jsonpointer-3.2.0/jsonpointer.egg-info → jsonpointer-3.2.1}/PKG-INFO +5 -4
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/README.md +4 -3
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/bin/jsonpointer +2 -1
- {jsonpointer-3.2.0 → jsonpointer-3.2.1/jsonpointer.egg-info}/PKG-INFO +5 -4
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/jsonpointer.py +1 -1
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/tests.py +11 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/AUTHORS +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/LICENSE.txt +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/MANIFEST.in +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/jsonpointer.egg-info/SOURCES.txt +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/jsonpointer.egg-info/dependency_links.txt +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/jsonpointer.egg-info/top_level.txt +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/setup.cfg +0 -0
- {jsonpointer-3.2.0 → jsonpointer-3.2.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jsonpointer
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.1
|
|
4
4
|
Summary: Identify specific nodes in a JSON document (RFC 6901)
|
|
5
5
|
Home-page: https://github.com/stefankoegl/python-json-pointer
|
|
6
6
|
Author: Stefan Kögl
|
|
@@ -42,7 +42,8 @@ python-json-pointer
|
|
|
42
42
|
|
|
43
43
|
[](https://pypi.python.org/pypi/jsonpointer/)
|
|
44
44
|
[](https://pypi.python.org/pypi/jsonpointer/)
|
|
45
|
-
[](https://github.com/stefankoegl/python-json-pointer/actions/workflows/test.yaml)
|
|
46
|
+
[](https://coveralls.io/github/stefankoegl/python-json-pointer?branch=master)
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
Resolve JSON Pointers in Python
|
|
@@ -56,5 +57,5 @@ See source code for examples
|
|
|
56
57
|
* Repository: https://github.com/stefankoegl/python-json-pointer.git
|
|
57
58
|
* Documentation: https://python-json-pointer.readthedocs.org/
|
|
58
59
|
* PyPI: https://pypi.python.org/pypi/jsonpointer
|
|
59
|
-
*
|
|
60
|
-
* Coveralls: https://coveralls.io/
|
|
60
|
+
* GitHub Actions: https://github.com/stefankoegl/python-json-pointer/actions
|
|
61
|
+
* Coveralls: https://coveralls.io/github/stefankoegl/python-json-pointer
|
|
@@ -3,7 +3,8 @@ python-json-pointer
|
|
|
3
3
|
|
|
4
4
|
[](https://pypi.python.org/pypi/jsonpointer/)
|
|
5
5
|
[](https://pypi.python.org/pypi/jsonpointer/)
|
|
6
|
-
[](https://github.com/stefankoegl/python-json-pointer/actions/workflows/test.yaml)
|
|
7
|
+
[](https://coveralls.io/github/stefankoegl/python-json-pointer?branch=master)
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
Resolve JSON Pointers in Python
|
|
@@ -17,5 +18,5 @@ See source code for examples
|
|
|
17
18
|
* Repository: https://github.com/stefankoegl/python-json-pointer.git
|
|
18
19
|
* Documentation: https://python-json-pointer.readthedocs.org/
|
|
19
20
|
* PyPI: https://pypi.python.org/pypi/jsonpointer
|
|
20
|
-
*
|
|
21
|
-
* Coveralls: https://coveralls.io/
|
|
21
|
+
* GitHub Actions: https://github.com/stefankoegl/python-json-pointer/actions
|
|
22
|
+
* Coveralls: https://coveralls.io/github/stefankoegl/python-json-pointer
|
|
@@ -55,7 +55,8 @@ def parse_pointer(args):
|
|
|
55
55
|
if args.pointer is not None:
|
|
56
56
|
ptr = args.pointer
|
|
57
57
|
else:
|
|
58
|
-
|
|
58
|
+
# 2026-10-11: Trim file line endings without changing member names.
|
|
59
|
+
ptr = args.pointer_file.read().rstrip("\r\n")
|
|
59
60
|
|
|
60
61
|
elif args.POINTER is not None:
|
|
61
62
|
ptr = args.POINTER
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jsonpointer
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.1
|
|
4
4
|
Summary: Identify specific nodes in a JSON document (RFC 6901)
|
|
5
5
|
Home-page: https://github.com/stefankoegl/python-json-pointer
|
|
6
6
|
Author: Stefan Kögl
|
|
@@ -42,7 +42,8 @@ python-json-pointer
|
|
|
42
42
|
|
|
43
43
|
[](https://pypi.python.org/pypi/jsonpointer/)
|
|
44
44
|
[](https://pypi.python.org/pypi/jsonpointer/)
|
|
45
|
-
[](https://github.com/stefankoegl/python-json-pointer/actions/workflows/test.yaml)
|
|
46
|
+
[](https://coveralls.io/github/stefankoegl/python-json-pointer?branch=master)
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
Resolve JSON Pointers in Python
|
|
@@ -56,5 +57,5 @@ See source code for examples
|
|
|
56
57
|
* Repository: https://github.com/stefankoegl/python-json-pointer.git
|
|
57
58
|
* Documentation: https://python-json-pointer.readthedocs.org/
|
|
58
59
|
* PyPI: https://pypi.python.org/pypi/jsonpointer
|
|
59
|
-
*
|
|
60
|
-
* Coveralls: https://coveralls.io/
|
|
60
|
+
* GitHub Actions: https://github.com/stefankoegl/python-json-pointer/actions
|
|
61
|
+
* Coveralls: https://coveralls.io/github/stefankoegl/python-json-pointer
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
# Will be parsed by setup.py to determine package metadata
|
|
34
34
|
__author__ = 'Stefan Kögl <stefan@skoegl.net>'
|
|
35
|
-
__version__ = '3.2.
|
|
35
|
+
__version__ = '3.2.1'
|
|
36
36
|
__website__ = 'https://github.com/stefankoegl/python-json-pointer'
|
|
37
37
|
__license__ = 'Modified BSD License'
|
|
38
38
|
|
|
@@ -514,6 +514,17 @@ class CommandLineTests(unittest.TestCase):
|
|
|
514
514
|
self.assertEqual(proc.returncode, 0, proc.stderr)
|
|
515
515
|
self.assertEqual(proc.stdout, self.A_OUT + self.B_OUT)
|
|
516
516
|
|
|
517
|
+
# 2026-10-11: A pointer file's trailing spaces are part of its member name.
|
|
518
|
+
def test_pointer_file_preserves_member_whitespace(self):
|
|
519
|
+
self._write('space.json', '{"a ": "expected", "a": "wrong"}')
|
|
520
|
+
for newline in ('', '\n', '\r\n'):
|
|
521
|
+
with self.subTest(newline=newline):
|
|
522
|
+
with open(os.path.join(self.dir, 'space.txt'), 'w', newline='') as f:
|
|
523
|
+
f.write('/a ' + newline)
|
|
524
|
+
proc = self._run('-f', 'space.txt', 'space.json')
|
|
525
|
+
self.assertEqual(proc.returncode, 0, proc.stderr)
|
|
526
|
+
self.assertEqual(proc.stdout, '"expected"\n')
|
|
527
|
+
|
|
517
528
|
def test_pointer_file_single_file(self):
|
|
518
529
|
proc = self._run('-f', 'ptr.txt', 'a.json')
|
|
519
530
|
self.assertEqual(proc.returncode, 0, proc.stderr)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|