souls 1.18.5 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/app/graphql/types/index.rb +0 -2
- data/lib/souls/cli/init/index.rb +2 -2
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +1 -3
- data/lib/souls/app/graphql/types/mutation_object.rb +0 -35
- data/lib/souls/app/graphql/types/query_object.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02be7d892a5a7f988aa1d288eff6b847276d9462308d202752efc05e67b3accb
|
4
|
+
data.tar.gz: 8ada002457f6c26f80d6fca80b104f5f6c92916a4582d8a95ff8e24523b80f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bab193ff10c201eacbdbdfc99bb986f090c82e07be29390bd95c36a4dee4a8f0ec07c970aff7721d5bebe67140ed68b79dc2a284614a5c233f568a077539ec1c
|
7
|
+
data.tar.gz: 965f2d31ed0964ccfd2b6ebb00dc67de567ac17c13beb07c5452acf27b1d57119d4ea0b7dee1c5e0577a820affd59b8c2bdbf857cdcdaccd535c424682aeab3f
|
data/lib/souls/cli/init/index.rb
CHANGED
@@ -169,7 +169,7 @@ module SOULs
|
|
169
169
|
FileUtils.rm(sig_name)
|
170
170
|
end
|
171
171
|
|
172
|
-
def souls_api_credit(
|
172
|
+
def souls_api_credit(app_name)
|
173
173
|
line = Paint["====================================", :yellow]
|
174
174
|
puts("\n")
|
175
175
|
puts(line)
|
@@ -194,7 +194,7 @@ module SOULs
|
|
194
194
|
puts(line)
|
195
195
|
endroll = <<~TEXT
|
196
196
|
Easy to Run
|
197
|
-
$ cd apps/api
|
197
|
+
$ cd #{app_name}/apps/api
|
198
198
|
$ souls s
|
199
199
|
Go To : http://localhost:4000
|
200
200
|
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.19.0
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.19.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.19.0
|
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
|
-
unless FileUtils.pwd.split("/").last == "souls"
|
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
|
-
unless FileUtils.pwd.split("/").last == "souls"
|
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
|