graphql-filters 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9344189bc4ae82f67f66db0a205d932500cdf8f318588e6129a64bd2374fbbac
4
- data.tar.gz: d9e10df965526be218a0459234e7f79bb7626859d5f29af61ed1502559444ae5
3
+ metadata.gz: cc4c3d2727cdf9d6767658acca81bed6a8b9d56aa129050fbdd84d69a0ab4454
4
+ data.tar.gz: 9d76544c44e8890950caf45a390f078b1af0c2f0f5a689f0535b07e230e6a63b
5
5
  SHA512:
6
- metadata.gz: f51fe336718070181df965eaab2c072cba21bd596d50c3faff28c342fdfe193996f8f3599d7a53c9940bedd8e327f5098d3abccc28b19c5e2ac8376b4d0aebca
7
- data.tar.gz: 987109d5d12d53ebce9d9811f6d392a23bd23104443098ac56e9a19e428c2e725110845b120bd6d81e65a0b3cff104cbf7c25648af63a211fe4704beb7f0b573
6
+ metadata.gz: e44a35f54fa1dbc70bde801e3c13c22dde64324ab17dcd24335529f35236a0269df551f0f24a41fa75c64227bc6d2b690c4e899ed11586a0ec748b2324fe7540
7
+ data.tar.gz: f036f44b1124d4b692bcd7e29f8b43b0ead9d5e6bdfe997e69a2a90dbf63ecd06ed68980a93167b82dd2b5dce48a904469501c78fd401fe791e83a23e171945d
data/CHANGELOG.md CHANGED
@@ -8,6 +8,13 @@
8
8
  ### Bug fixes
9
9
  )-->
10
10
 
11
+ ## 1.0.3 2024-10-09
12
+
13
+ ### Bug fixes
14
+
15
+ - Made dependency to Rails more lax
16
+ - Extracted the pairing of models and GraphQL types into [a separate gem](https://github.com/moku-io/graphql-models_connect)
17
+
11
18
  ## 1.0.2 2023-07-24
12
19
 
13
20
  ### Bug fixes
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Moku S.r.l., Riccardo Agatea
3
+ Copyright (c) 2023-2024 Moku S.r.l., Riccardo Agatea
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Filters
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'.freeze
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  require 'active_support/configurable'
2
2
  require 'active_support/core_ext/module/delegation'
3
3
  require 'graphql'
4
+ require 'models_connect'
4
5
  require_relative 'filters/version'
5
6
  require_relative 'filters/utility/cached_class'
6
7
 
@@ -20,7 +21,6 @@ end
20
21
 
21
22
  # These need to be here, after the definition of GraphQL::Filters
22
23
 
23
- require_relative 'models_connect'
24
24
  require_relative 'filters/activerecord_patch'
25
25
  require_relative 'filters/dsl'
26
26
  require_relative 'filters/filterable'
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moku S.r.l.
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-07-24 00:00:00.000000000 Z
12
+ date: 2024-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 7.0.0
20
+ version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 7.0.0
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activesupport
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 7.0.0
34
+ version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 7.0.0
41
+ version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: graphql
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +53,20 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 2.0.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: graphql-models_connect
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
56
70
  description: Provide a fully typed interface to filter lists in a GraphQL API.
57
71
  email:
58
72
  - info@moku.io
@@ -93,9 +107,6 @@ files:
93
107
  - lib/graphql/filters/input_types/string_comparison_input_type.rb
94
108
  - lib/graphql/filters/utility/cached_class.rb
95
109
  - lib/graphql/filters/version.rb
96
- - lib/graphql/models_connect.rb
97
- - lib/graphql/models_connect/dsl.rb
98
- - lib/graphql/models_connect/dsl/graphql/schema/object.rb
99
110
  homepage: https://github.com/moku-io/graphql-filters
100
111
  licenses:
101
112
  - MIT
@@ -118,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
129
  - !ruby/object:Gem::Version
119
130
  version: '0'
120
131
  requirements: []
121
- rubygems_version: 3.4.6
132
+ rubygems_version: 3.5.20
122
133
  signing_key:
123
134
  specification_version: 4
124
135
  summary: Provide a fully typed interface to filter lists in a GraphQL API.
@@ -1,27 +0,0 @@
1
- require 'active_support/concern'
2
-
3
- monkey_patch = Module.new do
4
- extend ActiveSupport::Concern
5
-
6
- class_methods do
7
- def model_class new_model_class=nil
8
- if new_model_class.nil?
9
- @model_class ||= default_model_class
10
- else
11
- @model_class = new_model_class
12
- end
13
- end
14
-
15
- def default_model_class
16
- raise 'You must set an explicit model for anonymous graphql classes' if name.nil?
17
-
18
- default_model_name = name.delete_suffix 'Type'
19
-
20
- raise "No default model found for #{name}" unless const_defined? default_model_name
21
-
22
- const_get default_model_name
23
- end
24
- end
25
- end
26
-
27
- GraphQL::Schema::Object.prepend monkey_patch
@@ -1,3 +0,0 @@
1
- Dir['dsl/**/*.rb', base: __dir__].each do |filename|
2
- require_relative filename
3
- end
@@ -1,15 +0,0 @@
1
- require 'active_support/configurable'
2
- require 'active_support/core_ext/module/delegation'
3
- require 'graphql'
4
-
5
- module GraphQL
6
- module ModelsConnect
7
- include ActiveSupport::Configurable
8
-
9
- singleton_class.delegate(*config.keys, to: :config)
10
- end
11
- end
12
-
13
- # These need to be here, after the definition of GraphQL::ModelsConnect
14
-
15
- require_relative 'models_connect/dsl'