souls 1.9.17 → 1.10.0

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: b1df1462b5d987180801fe9cb33ddfc141aa90a3b0d9d6524f66eef180e1f15c
4
- data.tar.gz: a70527d82c1c3d9df604ac1cdeeac013d888a2e99de53bca9fe822246803c28e
3
+ metadata.gz: b6c497eec55aae48fa1912a49afaf7be8bf0dcd168d470f636e59c6e66673952
4
+ data.tar.gz: 8f65a33d00b9748c03b533e534c8b11a737445c8be576050d6ed6c394c652274
5
5
  SHA512:
6
- metadata.gz: 978080dbe7f7c4f38410ab8fa9f31c42f5974d344d864325946e70fa53c3859575cd28655d42e08c3bbecbfd395f98925b6576240ec12b7405bb215683fda00a
7
- data.tar.gz: 2c1a068964008ed9c0bb52cc5f902d82f77f5c908c3ea9c570bbd855a9f9f330226eec733e240f23ac370c5aadd5a334c2628fa1de44c20349b15627eaeee2b6
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 < Base
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 Base
15
+ class BaseResolver
16
16
  end
17
- class #{singularized_class_name.camelize}Search < Base
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.9.17".freeze
2
+ VERSION = "1.10.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.9.17
1
+ 1.10.0
@@ -1 +1 @@
1
- 1.9.17
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.9.17
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-01 00:00:00.000000000 Z
13
+ date: 2021-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport