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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f76e28c783be7bc90c848f465dbe290d3215e74e17570f12f9d2de5029e104e8
4
- data.tar.gz: 2bc9881804137be14f088294c00ef0a381e4a07f0c2efd9400d30ef9c2f0d2a2
3
+ metadata.gz: e4c44c55c15ade9472e7683e8929ac05e69df73da70a670888ba6882799c336e
4
+ data.tar.gz: ca4865a5a2b629d531ef7e3ef93f899330be5cd0b3854f998fd8ff01d985afd9
5
5
  SHA512:
6
- metadata.gz: def0b6e8264c1f155a8cb30ce7e1855c6f5d020de3f60053a71706b77a4b15826517a09a37bfb855e1993aceb0608b182e44a10cdc3a9d5e99f35ba46a8b7fbb
7
- data.tar.gz: 42dab3e125f206ac3fecad232e8ec013d14b330b1357fce42f4a598b62acd3c46f4943929ab338f3620e22d05ac3c4304a944759a9cf090598761436c605d230
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
- require 'active_support/concern'
1
+ require_relative '../../../input_types/object_comparison_input_type'
2
2
 
3
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
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
- def get_comparison_input_type(*)
16
- GraphQL::Filters::InputTypes::ObjectComparisonInputType[self]
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
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Filters
3
- VERSION = '1.1.4'.freeze
3
+ VERSION = '1.1.5'.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.4
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-07-17 00:00:00.000000000 Z
12
+ date: 2025-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord