philiprehberger-json_path 0.1.4 → 0.1.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +21 -3
- data/lib/philiprehberger/json_path/version.rb +1 -1
- data/lib/philiprehberger/json_path.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78a07561ecdca899e8715c239ebaaa0e7ed9892a557445bcceb03b3cbb7f61a6
|
|
4
|
+
data.tar.gz: 3e418c526ccb1fff468d02485c7b76a071de30b84059c1205b9478e0d683c235
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40bd26003e395e6ca24f52cf469df2004096cecb5113365b65f5fab8153614bd8c0fa62acd49f11bfbc9da9971b56b6ba8aa839536796336a24ba0a47ea90b4d
|
|
7
|
+
data.tar.gz: 1694b53c1f359b143eeb54a336c3e1612044408a7ebd9fb4d4b036ca6829777ace260a44c23f86d1b5ebfbade802a8be4508a5116aee0bc863dc805457945e92
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.6] - 2026-03-31
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Standardize README badges, support section, and license format
|
|
14
|
+
|
|
15
|
+
## [0.1.5] - 2026-03-24
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Standardize README code examples to use double-quote require statements
|
|
19
|
+
|
|
10
20
|
## [0.1.4] - 2026-03-24
|
|
11
21
|
|
|
12
22
|
### Fixed
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/philiprehberger/rb-json-path/actions/workflows/ci.yml)
|
|
4
4
|
[](https://rubygems.org/gems/philiprehberger-json_path)
|
|
5
|
-
[](https://github.com/philiprehberger/rb-json-path/commits/main)
|
|
6
6
|
|
|
7
7
|
JSONPath expression evaluator with dot notation, wildcards, slices, and filters
|
|
8
8
|
|
|
@@ -27,7 +27,7 @@ gem install philiprehberger-json_path
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
29
|
```ruby
|
|
30
|
-
require
|
|
30
|
+
require "philiprehberger/json_path"
|
|
31
31
|
|
|
32
32
|
data = {
|
|
33
33
|
'store' => {
|
|
@@ -101,6 +101,24 @@ bundle exec rspec
|
|
|
101
101
|
bundle exec rubocop
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
+
## Support
|
|
105
|
+
|
|
106
|
+
If you find this project useful:
|
|
107
|
+
|
|
108
|
+
⭐ [Star the repo](https://github.com/philiprehberger/rb-json-path)
|
|
109
|
+
|
|
110
|
+
🐛 [Report issues](https://github.com/philiprehberger/rb-json-path/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
|
|
111
|
+
|
|
112
|
+
💡 [Suggest features](https://github.com/philiprehberger/rb-json-path/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement)
|
|
113
|
+
|
|
114
|
+
❤️ [Sponsor development](https://github.com/sponsors/philiprehberger)
|
|
115
|
+
|
|
116
|
+
🌐 [All Open Source Projects](https://philiprehberger.com/open-source-packages)
|
|
117
|
+
|
|
118
|
+
💻 [GitHub Profile](https://github.com/philiprehberger)
|
|
119
|
+
|
|
120
|
+
🔗 [LinkedIn Profile](https://www.linkedin.com/in/philiprehberger)
|
|
121
|
+
|
|
104
122
|
## License
|
|
105
123
|
|
|
106
|
-
MIT
|
|
124
|
+
[MIT](LICENSE)
|
|
@@ -54,13 +54,13 @@ module Philiprehberger
|
|
|
54
54
|
when /\A\[\*\]/
|
|
55
55
|
tokens << { type: :wildcard }
|
|
56
56
|
remaining = remaining[3..]
|
|
57
|
-
when /\A\[(
|
|
57
|
+
when /\A\[(-?\d+):(-?\d+)\]/
|
|
58
58
|
tokens << { type: :slice, start: Regexp.last_match(1).to_i, end: Regexp.last_match(2).to_i }
|
|
59
59
|
remaining = remaining[Regexp.last_match(0).length..]
|
|
60
|
-
when /\A\[:(
|
|
60
|
+
when /\A\[:(-?\d+)\]/
|
|
61
61
|
tokens << { type: :slice, start: 0, end: Regexp.last_match(1).to_i }
|
|
62
62
|
remaining = remaining[Regexp.last_match(0).length..]
|
|
63
|
-
when /\A\[(
|
|
63
|
+
when /\A\[(-?\d+):\]/
|
|
64
64
|
tokens << { type: :slice, start: Regexp.last_match(1).to_i, end: nil }
|
|
65
65
|
remaining = remaining[Regexp.last_match(0).length..]
|
|
66
66
|
when /\A\[\?\(@\.(\w+)\s*(==|!=|>|>=|<|<=)\s*([^\]]+)\)\]/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: philiprehberger-json_path
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- philiprehberger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Evaluate JSONPath expressions against Ruby hashes and arrays. Supports
|
|
14
14
|
dot notation, array indexing, wildcards, slices, and filter expressions for querying
|