souls 1.18.6 → 1.18.7

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: aa2251464a8273c041836b1cce9d46b933cceeb09f2f700087b1a170db16c283
4
- data.tar.gz: 9bcbbd4198df7b759126b998ccfc10830783f78524e0b742df3fd8b6402ae548
3
+ metadata.gz: 9ba7212e2d7d1c73165ed8553dba888fea1c6f226ad30e254a25ae3ced4d7dc7
4
+ data.tar.gz: 3f68bafc18eea1a804b70845f178beeb1e6f5109f42faaf46d4ff62b19e2f436
5
5
  SHA512:
6
- metadata.gz: d233bc008f2f0e2263d6c91362bc5900a7c1c7a47ec326376c5e1372e43007c59d13d774c4bc0a0216bd4635a2b6f9c5796d9171d83f38da962e47a13f52c583
7
- data.tar.gz: 3d84364a1495a6ca673b41473f0c5b581c24ff52a67f56ca442a2f2d5e2c4f02c4d16ac8267465d21b0ef6b79ee3be12862a7a533730fd99a72455e14b508459
6
+ metadata.gz: 7e71361fcac9edada98174ae15dfe437b6e97e99fcf80ac04a1a7c6113ecc253d541bc32dd5c948f43ab7a48cd0c1e4d39114c8eceb43c038f6025498d6b96f8
7
+ data.tar.gz: 57731b1cd54704fbeda4b74a749a8faf01a767fb857cdd89f43e6622f17eff9aec63120aadb611b66d0813f7b73c4da23c734b935d3610dc5f2300e6fd880cef
@@ -6,8 +6,6 @@ require_relative "base_interface"
6
6
  require_relative "base_object"
7
7
  require_relative "base_scalar"
8
8
  require_relative "base_union"
9
- require_relative "mutation_object"
10
- require_relative "query_object"
11
9
 
12
10
  module SOULs
13
11
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "1.18.6".freeze
2
+ VERSION = "1.18.7".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.18.6
1
+ 1.18.7
@@ -1 +1 @@
1
- 1.18.6
1
+ 1.18.7
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.18.6
4
+ version: 1.18.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -167,8 +167,6 @@ files:
167
167
  - lib/souls/app/graphql/types/base_scalar.rb
168
168
  - lib/souls/app/graphql/types/base_union.rb
169
169
  - lib/souls/app/graphql/types/index.rb
170
- - lib/souls/app/graphql/types/mutation_object.rb
171
- - lib/souls/app/graphql/types/query_object.rb
172
170
  - lib/souls/app/index.rb
173
171
  - lib/souls/app/utils/firebase_id_token.rb
174
172
  - lib/souls/app/utils/painter.rb
@@ -1,35 +0,0 @@
1
- module SOULs
2
- module Types
3
- class MutationObject < SOULs::Types::BaseObject
4
- if (FileUtils.pwd.split("/").last != "souls") && File.exist?("./db/schema.rb")
5
- get_tables.each do |t|
6
- %w[create update delete destroy_delete].each do |a|
7
- field "#{a}_#{t.singularize.underscore}".to_sym,
8
- mutation: Object.const_get(
9
- "Mutations::Base::#{t.singularize.camelize}::#{a.camelize}#{t.singularize.camelize}"
10
- )
11
- end
12
- end
13
- managers =
14
- Dir["./app/graphql/mutations/managers/*_manager/*.rb"].map do |file|
15
- dir_name = file.scan(%r{managers/(.+?)_manager}).flatten[0]
16
- file_name = file.scan(%r{/([^/]+)/?$}).flatten[0].gsub(".rb", "")
17
- {
18
- class: dir_name,
19
- name: file_name
20
- }
21
- end
22
- managers.each do |file|
23
- field file[:name].underscore.to_s.to_sym,
24
- mutation: Object.const_get(
25
- "Mutations::Managers::#{
26
- file[:class].singularize.camelize
27
- }Manager::#{
28
- file[:name].singularize.camelize
29
- }"
30
- )
31
- end
32
- end
33
- end
34
- end
35
- end
@@ -1,18 +0,0 @@
1
- module SOULs
2
- module Types
3
- class QueryObject < SOULs::Types::BaseObject
4
- if (FileUtils.pwd.split("/").last != "souls") && File.exist?("./db/schema.rb")
5
- add_field(GraphQL::Types::Relay::NodeField)
6
- add_field(GraphQL::Types::Relay::NodesField)
7
- get_tables.each do |t|
8
- field t.singularize.underscore.to_s.to_sym, resolver: Object.const_get("Queries::#{t.singularize.camelize}")
9
- field "#{t.singularize.underscore}_search".to_sym,
10
- resolver: Object.const_get("Resolvers::#{t.singularize.camelize}Search")
11
- field t.pluralize.underscore.to_s.to_sym,
12
- Object.const_get("Types::#{t.singularize.camelize}Type").connection_type,
13
- null: true
14
- end
15
- end
16
- end
17
- end
18
- end