graphql-filters 1.1.1 → 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: 1d399441a0d115f6f12a81f8c02b58d812565fcbb2f6643950fb47011961fc30
4
- data.tar.gz: 0c6254f218d5ee41a0b69677148fccffc43952e35ce970457954f94f9f1689e3
3
+ metadata.gz: 9de45caa48df962f83a478a420a0cde866d340c4304839313643fc8857910a28
4
+ data.tar.gz: d661a80a465ab0aeac17aa3db0aef2c37187945ee9725926bb25b962571d5b34
5
5
  SHA512:
6
- metadata.gz: 7f3d352f14eaddf2d43d1cbf0c78a213adeb2bde8b2f8322905521d530864f4980f41490d1482fdbaadddd86865d0539ce69604c83427a3737e1a997171d9098
7
- data.tar.gz: 5fd54c27598465b72b77b7cf31678d167180ddc2833bfb93d8aac43a8ee8dadbf01a3ad8639ab7888921a3f96d1dd6b48e35fd221a2278b591e080164aa0cf2b
6
+ metadata.gz: 02d63e576868301e6df02cd60ac7754c083e11b7e4d2419ceee9ba86389cf2d000a5a7d75e27b41efb2ca70b30630596fed65671a4701faebd482f6cb24b221f
7
+ data.tar.gz: efc2a57e8899e2ca4dfa5bc0b64f7383846431dcb5a5c492932b5d1ea9980d98bc6c8f654afcffcd14cd6a6174e2d85560acdf2806145de90d6242bd3e4c51c7
data/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@
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
+
11
17
  ## 1.1.1 2025-05-16
12
18
 
13
19
  ### Bug fixes
@@ -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.1'.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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moku S.r.l.