filter_param 0.1.1 → 0.1.2
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/README.md +3 -3
- data/lib/filter_param/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5de400285fef06e40c4fecfce5809f779e3e7f6a834bb3ed3eaed0ead52efd23
|
4
|
+
data.tar.gz: bbceeed1263674b164f83fab40cc222dda49c82a347324b179daacf0e2c5a174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea27449e9a1101a71516961bfaccf3a4c985b0a8ea7407e2a2fe0085a84b8ac0c8d2027a23ab76de0c518513b24cc85211704deddb02bb8a2c189bc66e107efc
|
7
|
+
data.tar.gz: 9641a2b718c5ca9acb27dfcb4341f68c0f4d053f477d641259077a6d1c0dab8fc14a5e98bbc5a908b04231cc802dc09aaed013549980fa03c0e7d88ccc8e6bdf
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
Quickly implement record filtering in your APIs using a filter expression inspired by [SCIM Query](https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.2):
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
https://{some origin}/users?filter=
|
11
|
-
not (active eq false and (birth_date gt '1991-01-01' or birth_date eq null))
|
10
|
+
https://{some origin}/users?filter=first_name eq 'John' and last_name pr and
|
11
|
+
not (active eq false and (birth_date gt '1991-01-01' or birth_date eq null))
|
12
12
|
```
|
13
13
|
|
14
14
|
**TL;DR** See [ sample usage for Rails here ](#rails-usage).
|
@@ -161,7 +161,7 @@ rel.to_sql
|
|
161
161
|
| Environment Variable | Values | Example |
|
162
162
|
| ----------- | ----------- |----------- |
|
163
163
|
| `DB_ADAPTER` | **Default: :sqlite**. `sqlite`,`mysql2`, or `postgresql` | ```DB_ADAPTER=postgresql bundle exec rspec```<br/><br/> ```DB_ADAPTER=postgresql ./bin/console``` |
|
164
|
-
| `RAILS_VERSION` | **Default:
|
164
|
+
| `RAILS_VERSION` | **Default: 8-0** <br/><br/> `6-0`,`6-1`,`7-0`,`7-1`, `7-2`, `8-0` |```RAILS_VERSION=8-0 ./bin/setup```<br/><br/>```RAILS_VERSION=8-0 bundle exec rspec```<br/><br/> ```RAILS_VERSION=8-0 ./bin/console```|
|
165
165
|
|
166
166
|
|
167
167
|
<br/><br/>
|
data/lib/filter_param/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filter_param
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uy Jayson B
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '6.0'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '8.1'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '6.0'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '8.1'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: activesupport
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '6.0'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '8.1'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '6.0'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '8.1'
|
67
67
|
description: Filter records using a SCIM inspired filter expression
|
68
68
|
email:
|
69
69
|
- uy.json.dev@gmail.com
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
139
|
+
rubygems_version: 3.4.6
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: SCIM-style API filter for ActiveRecord-based apps
|