souls 1.9.17 → 1.10.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6c497eec55aae48fa1912a49afaf7be8bf0dcd168d470f636e59c6e66673952
|
4
|
+
data.tar.gz: 8f65a33d00b9748c03b533e534c8b11a737445c8be576050d6ed6c394c652274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 681dd439e9da5f57011eb049952f3ccdf78a21827f21e1e376f21103a87177569824c6edb805d1fca7f9cd0aa89390c500dc21f7f1046fe401c472f7de27ec41
|
7
|
+
data.tar.gz: 05c940c0e58cf77cc90749a432a2860c2c98afa134956a5e6d06f24a405b394a7c5bedbacfb10e6b77862b116961fae2d90726fb89c32e76d54ede485752aeec
|
@@ -24,7 +24,7 @@ module Souls
|
|
24
24
|
File.open(file_path, "w") do |f|
|
25
25
|
f.write(<<~TEXT)
|
26
26
|
module Resolvers
|
27
|
-
class #{class_name.camelize}Search <
|
27
|
+
class #{class_name.camelize}Search < BaseResolver
|
28
28
|
include SearchObject.module(:graphql)
|
29
29
|
scope { ::#{class_name.camelize}.all }
|
30
30
|
type Types::#{class_name.camelize}Type.connection_type, null: false
|
@@ -78,8 +78,6 @@ module Souls
|
|
78
78
|
end
|
79
79
|
|
80
80
|
option :filter, type: #{class_name.camelize}Filter, with: :apply_filter
|
81
|
-
option :first, type: types.Int, with: :apply_first
|
82
|
-
option :skip, type: types.Int, with: :apply_skip
|
83
81
|
|
84
82
|
def apply_filter(scope, value)
|
85
83
|
branches = normalize_filters(value).inject { |a, b| a.or(b) }
|
@@ -12,15 +12,13 @@ module Souls
|
|
12
12
|
|
13
13
|
File.open(file_path, "w") do |f|
|
14
14
|
f.write(<<~TEXT)
|
15
|
-
class
|
15
|
+
class BaseResolver
|
16
16
|
end
|
17
|
-
class #{singularized_class_name.camelize}Search <
|
17
|
+
class #{singularized_class_name.camelize}Search < BaseResolver
|
18
18
|
include SearchObject
|
19
19
|
def self.scope: () ?{ () -> nil } -> [Hash[Symbol, untyped]]
|
20
20
|
def self.type: (*untyped) -> String
|
21
21
|
def self.option: (:filter, type: untyped, with: :apply_filter) -> String
|
22
|
-
| (:first, type: untyped, with: :apply_first) -> String
|
23
|
-
| (:skip, type: untyped, with: :apply_skip) -> String
|
24
22
|
def self.description: (String) -> String
|
25
23
|
def self.types: (*untyped) -> String
|
26
24
|
def decode_global_key: (String value) -> Integer
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.10.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-12-
|
13
|
+
date: 2021-12-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|