graphql-filters 1.0.7 → 1.1.0
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 +12 -0
- data/graphql-filters.gemspec +2 -1
- data/lib/graphql/filters/dsl/graphql/schema/interface.rb +13 -0
- data/lib/graphql/filters/version.rb +1 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b28acc6c4730e753e3e174df0aea3de56f880f939cb02717ff2ffb062c0f09
|
4
|
+
data.tar.gz: 66272adf7ae4a935e8cae8e1cb0cd59cd70db704aeef3b72d302f49ac609af3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4cbd8dde6d42c8d4c4a8222998e59490fdb1c933c42397522228134d42f5b9d5d017204834450add10540781af6511d3427fbbf305bc7b166c56fdee7499d66
|
7
|
+
data.tar.gz: 97fbc4e66823b7a07243f2ecd9c21146118f0e2ffd143e42c4b5601bddc232204b071f38035cd6d23e4bbcefc3df8c167ea56437001f6cfa7802394c0dfbe7f8
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,18 @@
|
|
8
8
|
### Bug fixes
|
9
9
|
)-->
|
10
10
|
|
11
|
+
## 1.1.0 2025-04-14
|
12
|
+
|
13
|
+
### New features
|
14
|
+
|
15
|
+
- Added integration with interfaces.
|
16
|
+
|
17
|
+
## 1.0.8 2025-01-22
|
18
|
+
|
19
|
+
### Bug fixes
|
20
|
+
|
21
|
+
- Explicitly declared the dependency from `ostruct`.
|
22
|
+
|
11
23
|
## 1.0.7 2025-01-17
|
12
24
|
|
13
25
|
### Bug fixes
|
data/graphql-filters.gemspec
CHANGED
@@ -30,5 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'activerecord'
|
31
31
|
spec.add_dependency 'activesupport'
|
32
32
|
spec.add_dependency 'graphql', '~> 2.0.0'
|
33
|
-
spec.add_dependency 'graphql-models_connect'
|
33
|
+
spec.add_dependency 'graphql-models_connect', '>= 1.1.0'
|
34
|
+
spec.add_dependency 'ostruct'
|
34
35
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
GraphQL::Schema::Interface.definition_methods do
|
2
|
+
def comparison_input_type new_comparison_input_type=nil
|
3
|
+
if new_comparison_input_type.present?
|
4
|
+
@comparison_input_type = new_comparison_input_type
|
5
|
+
else
|
6
|
+
@comparison_input_type ||= get_comparison_input_type
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def get_comparison_input_type(*)
|
11
|
+
GraphQL::Filters::InputTypes::ObjectComparisonInputType[self]
|
12
|
+
end
|
13
|
+
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.1.0
|
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-04-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -55,6 +55,20 @@ dependencies:
|
|
55
55
|
version: 2.0.0
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: graphql-models_connect
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.1.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.1.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: ostruct
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
59
73
|
requirements:
|
60
74
|
- - ">="
|
@@ -89,6 +103,7 @@ files:
|
|
89
103
|
- lib/graphql/filters/dsl.rb
|
90
104
|
- lib/graphql/filters/dsl/graphql/schema/enum.rb
|
91
105
|
- lib/graphql/filters/dsl/graphql/schema/field.rb
|
106
|
+
- lib/graphql/filters/dsl/graphql/schema/interface.rb
|
92
107
|
- lib/graphql/filters/dsl/graphql/schema/list.rb
|
93
108
|
- lib/graphql/filters/dsl/graphql/schema/member.rb
|
94
109
|
- lib/graphql/filters/dsl/graphql/schema/non_null.rb
|