graphql-filters 1.1.4 → 1.1.5
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 +6 -0
- data/lib/graphql/filters/dsl/graphql/schema/interface.rb +10 -14
- 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: e4c44c55c15ade9472e7683e8929ac05e69df73da70a670888ba6882799c336e
|
4
|
+
data.tar.gz: ca4865a5a2b629d531ef7e3ef93f899330be5cd0b3854f998fd8ff01d985afd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4975b8a331db108674f279c08863382164ccc2df2e004bf435e8d6ee428a499ae7c2e963dca6c34876dd8f175843590ba1b7ca7ec6351c7d5ae5f1e39df9d2c2
|
7
|
+
data.tar.gz: 8ffcbcd8615883bc5a9f35757443006bc08debc157015f414724f4aff45b978de35adc8a8687575c12eb677f4183c1ce8b16e44d54fa8c2d5a3b8275ec234a2b
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,12 @@
|
|
8
8
|
### Bug fixes
|
9
9
|
)-->
|
10
10
|
|
11
|
+
## 1.1.5 2025-08-18
|
12
|
+
|
13
|
+
### Bug fixes
|
14
|
+
|
15
|
+
- Using `class_methods` wasn't compatible with the inheritance mechanism of interfaces. Adding the methods to `DefinitionMethods` directly actually makes them available to interfaces as intended.
|
16
|
+
|
11
17
|
## 1.1.4 2025-07-17
|
12
18
|
|
13
19
|
### New features
|
@@ -1,21 +1,17 @@
|
|
1
|
-
|
1
|
+
require_relative '../../../input_types/object_comparison_input_type'
|
2
2
|
|
3
3
|
monkey_patch = Module.new do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
@comparison_input_type = new_comparison_input_type
|
10
|
-
else
|
11
|
-
@comparison_input_type ||= get_comparison_input_type
|
12
|
-
end
|
4
|
+
def comparison_input_type new_comparison_input_type=nil
|
5
|
+
if new_comparison_input_type.present?
|
6
|
+
@comparison_input_type = new_comparison_input_type
|
7
|
+
else
|
8
|
+
@comparison_input_type ||= get_comparison_input_type
|
13
9
|
end
|
10
|
+
end
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
end
|
12
|
+
def get_comparison_input_type(*)
|
13
|
+
GraphQL::Filters::InputTypes::ObjectComparisonInputType[self]
|
18
14
|
end
|
19
15
|
end
|
20
16
|
|
21
|
-
GraphQL::Schema::Interface.include monkey_patch
|
17
|
+
GraphQL::Schema::Interface::DefinitionMethods.include monkey_patch
|
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.1.
|
4
|
+
version: 1.1.5
|
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: 2025-
|
12
|
+
date: 2025-08-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|