graphql-filters 1.0.5 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/graphql/filters/filterable.rb +7 -2
- data/lib/graphql/filters/version.rb +1 -1
- 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: 1b076c0b5b31bc40bebcde4c3c31d591e2db787cd0171bf038eee2cbcc82298c
|
4
|
+
data.tar.gz: 9dc3ce9aec6a0c12e7e33fe3043a2891b49e7ae39bd4c58216944f73eb7f2bc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4abcd999b76f451a79f561c1734744af837bc815eef0cee77c405d0abdcde5f55c4733cd3ba2051216b2e9d1ff5fc902e79e1be67add7872e6eb4f245e50f10d
|
7
|
+
data.tar.gz: c6221e45dd8d667e601e6608706cefdc3c90d4c09d924e7e0822617d1a8f48ada8fd281fb3cf58596cc75d7e442a5b677d3e090ac69efb0a1c69b8f4dde08daf
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,18 @@
|
|
8
8
|
### Bug fixes
|
9
9
|
)-->
|
10
10
|
|
11
|
+
## 1.0.7 2025-01-17
|
12
|
+
|
13
|
+
### Bug fixes
|
14
|
+
|
15
|
+
- Fixed `Filterable` redefining `resolve` instead of overriding it.
|
16
|
+
|
17
|
+
## 1.0.6 2025-01-17
|
18
|
+
|
19
|
+
### Bug fixes
|
20
|
+
|
21
|
+
- Fixed `NoMethodError` when using `Filterable` without `SearchObject` and not passing a filter.
|
22
|
+
|
11
23
|
## 1.0.5 2024-11-29
|
12
24
|
|
13
25
|
### Bug fixes
|
@@ -33,9 +33,14 @@ module GraphQL
|
|
33
33
|
|
34
34
|
argument :filter, inner_type.comparison_input_type, required: false
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
# Using the `def` raw here would redefine the method on the class that prepended the module, insted of inserting
|
37
|
+
# it in the ancestor chain.
|
38
|
+
Module.new do
|
39
|
+
def resolve filter: nil, **kwargs
|
40
|
+
filter ? filter.call(super(**kwargs)) : super(**kwargs)
|
41
|
+
end
|
38
42
|
end
|
43
|
+
.tap { prepend _1 }
|
39
44
|
end
|
40
45
|
end
|
41
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-filters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moku S.r.l.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|