graphql-filters 1.1.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0b28acc6c4730e753e3e174df0aea3de56f880f939cb02717ff2ffb062c0f09
4
- data.tar.gz: 66272adf7ae4a935e8cae8e1cb0cd59cd70db704aeef3b72d302f49ac609af3f
3
+ metadata.gz: 9de45caa48df962f83a478a420a0cde866d340c4304839313643fc8857910a28
4
+ data.tar.gz: d661a80a465ab0aeac17aa3db0aef2c37187945ee9725926bb25b962571d5b34
5
5
  SHA512:
6
- metadata.gz: d4cbd8dde6d42c8d4c4a8222998e59490fdb1c933c42397522228134d42f5b9d5d017204834450add10540781af6511d3427fbbf305bc7b166c56fdee7499d66
7
- data.tar.gz: 97fbc4e66823b7a07243f2ecd9c21146118f0e2ffd143e42c4b5601bddc232204b071f38035cd6d23e4bbcefc3df8c167ea56437001f6cfa7802394c0dfbe7f8
6
+ metadata.gz: 02d63e576868301e6df02cd60ac7754c083e11b7e4d2419ceee9ba86389cf2d000a5a7d75e27b41efb2ca70b30630596fed65671a4701faebd482f6cb24b221f
7
+ data.tar.gz: efc2a57e8899e2ca4dfa5bc0b64f7383846431dcb5a5c492932b5d1ea9980d98bc6c8f654afcffcd14cd6a6174e2d85560acdf2806145de90d6242bd3e4c51c7
data/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@
8
8
  ### Bug fixes
9
9
  )-->
10
10
 
11
+ ## 1.1.2 2025-05-16
12
+
13
+ ### Bug fixes
14
+
15
+ - Using `definition_methods` broke something in newer versions of the `graphql` gem. We now use `ActiveSupport::Concern`.
16
+
17
+ ## 1.1.1 2025-05-16
18
+
19
+ ### Bug fixes
20
+
21
+ - Relaxed the constraint on the `graphql` gem. It doesn't use semantic versioning, so the constraint was useless.
22
+
11
23
  ## 1.1.0 2025-04-14
12
24
 
13
25
  ### New features
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
 
30
30
  spec.add_dependency 'activerecord'
31
31
  spec.add_dependency 'activesupport'
32
- spec.add_dependency 'graphql', '~> 2.0.0'
32
+ spec.add_dependency 'graphql'
33
33
  spec.add_dependency 'graphql-models_connect', '>= 1.1.0'
34
34
  spec.add_dependency 'ostruct'
35
35
  end
@@ -1,13 +1,21 @@
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
1
+ require 'active_support/concern'
2
+
3
+ monkey_patch = Module.new do
4
+ extend ActiveSupport::Concern
5
+
6
+ class_methods do
7
+ def comparison_input_type new_comparison_input_type=nil
8
+ if new_comparison_input_type.present?
9
+ @comparison_input_type = new_comparison_input_type
10
+ else
11
+ @comparison_input_type ||= get_comparison_input_type
12
+ end
7
13
  end
8
- end
9
14
 
10
- def get_comparison_input_type(*)
11
- GraphQL::Filters::InputTypes::ObjectComparisonInputType[self]
15
+ def get_comparison_input_type(*)
16
+ GraphQL::Filters::InputTypes::ObjectComparisonInputType[self]
17
+ end
12
18
  end
13
19
  end
20
+
21
+ GraphQL::Schema::Interface.include monkey_patch
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Filters
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.1.2'.freeze
4
4
  end
5
5
  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.1.0
4
+ version: 1.1.2
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-04-14 00:00:00.000000000 Z
12
+ date: 2025-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: graphql
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 2.0.0
48
+ version: '0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 2.0.0
55
+ version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: graphql-models_connect
58
58
  requirement: !ruby/object:Gem::Requirement