souls 0.54.4 → 0.54.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/api/generate/manager.rb +1 -1
- data/lib/souls/api/generate/mutation.rb +10 -10
- data/lib/souls/api/generate/query.rb +3 -3
- data/lib/souls/api/index.rb +3 -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
- data/lib/souls/worker/index.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f7095a375672b1a1c6afa3f952f08884b88aad0c121963fd70708052ef2332
|
4
|
+
data.tar.gz: 3827ecad5d12367fa018bf7bc5d073e6172d69bfaa0063dea0e22a43db2e9ee5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b152892d353af386cd550ef0c872362b8dc9e71590c63f84ad5e992f821cdebd70d6c1a988f67b0ddd34d787e0c6b1a221383f1ac42523ef04385c63095a4f
|
7
|
+
data.tar.gz: 624356116448f8a84790fec1eaedc237ba61bda08a0e9d0f18d4fddf6d44b2ba2c1e15fbdb23c2bfb30db568a10b61b5669fa25a3fed6b5d635842eedc892375
|
@@ -55,13 +55,13 @@ module Souls
|
|
55
55
|
if @user_exist
|
56
56
|
new_line.write(<<-TEXT)
|
57
57
|
|
58
|
-
def resolve
|
58
|
+
def resolve args
|
59
59
|
args[:user_id] = context[:user].id
|
60
60
|
TEXT
|
61
61
|
else
|
62
62
|
new_line.write(<<-TEXT)
|
63
63
|
|
64
|
-
def resolve
|
64
|
+
def resolve args
|
65
65
|
TEXT
|
66
66
|
end
|
67
67
|
break
|
@@ -109,7 +109,7 @@ module Souls
|
|
109
109
|
|
110
110
|
{ #{class_name}_edge: { node: data } }
|
111
111
|
rescue StandardError => error
|
112
|
-
GraphQL::ExecutionError.new
|
112
|
+
GraphQL::ExecutionError.new(error.message)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
end
|
@@ -149,14 +149,14 @@ module Souls
|
|
149
149
|
if @user_exist
|
150
150
|
new_line.write(<<-TEXT)
|
151
151
|
|
152
|
-
def resolve
|
152
|
+
def resolve args
|
153
153
|
args[:user_id] = context[:user].id
|
154
154
|
_, args[:id] = SoulsApiSchema.from_global_id(args[:id])
|
155
155
|
TEXT
|
156
156
|
else
|
157
157
|
new_line.write(<<-TEXT)
|
158
158
|
|
159
|
-
def resolve
|
159
|
+
def resolve args
|
160
160
|
_, args[:id] = SoulsApiSchema.from_global_id(args[:id])
|
161
161
|
TEXT
|
162
162
|
end
|
@@ -204,7 +204,7 @@ module Souls
|
|
204
204
|
#{class_name}.update args
|
205
205
|
{ #{class_name}_edge: { node: ::#{class_name.camelize}.find(args[:id]) } }
|
206
206
|
rescue StandardError => error
|
207
|
-
GraphQL::ExecutionError.new
|
207
|
+
GraphQL::ExecutionError.new(error.message)
|
208
208
|
end
|
209
209
|
end
|
210
210
|
end
|
@@ -237,13 +237,13 @@ module Souls
|
|
237
237
|
field :#{class_name}, Types::#{class_name.camelize}Type, null: false
|
238
238
|
argument :id, String, required: true
|
239
239
|
|
240
|
-
def resolve
|
240
|
+
def resolve args
|
241
241
|
_, data_id = SoulsApiSchema.from_global_id args[:id]
|
242
242
|
#{class_name} = ::#{class_name.camelize}.find data_id
|
243
243
|
#{class_name}.update(is_deleted: true)
|
244
244
|
{ #{class_name}: ::#{class_name.camelize}.find(data_id) }
|
245
245
|
rescue StandardError => error
|
246
|
-
GraphQL::ExecutionError.new
|
246
|
+
GraphQL::ExecutionError.new(error.message)
|
247
247
|
end
|
248
248
|
end
|
249
249
|
end
|
@@ -266,13 +266,13 @@ module Souls
|
|
266
266
|
field :#{class_name}, Types::#{class_name.camelize}Type, null: false
|
267
267
|
argument :id, String, required: true
|
268
268
|
|
269
|
-
def resolve
|
269
|
+
def resolve args
|
270
270
|
_, data_id = SoulsApiSchema.from_global_id args[:id]
|
271
271
|
#{class_name} = ::#{class_name.camelize}.find data_id
|
272
272
|
#{class_name}.destroy
|
273
273
|
{ #{class_name}: #{class_name} }
|
274
274
|
rescue StandardError => error
|
275
|
-
GraphQL::ExecutionError.new
|
275
|
+
GraphQL::ExecutionError.new(error.message)
|
276
276
|
end
|
277
277
|
end
|
278
278
|
end
|
@@ -26,7 +26,7 @@ module Souls
|
|
26
26
|
def resolve
|
27
27
|
::#{class_name.camelize}.all
|
28
28
|
rescue StandardError => error
|
29
|
-
GraphQL::ExecutionError.new
|
29
|
+
GraphQL::ExecutionError.new(error.message)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -49,11 +49,11 @@ module Souls
|
|
49
49
|
type Types::#{class_name.camelize}Type, null: false
|
50
50
|
argument :id, String, required: true
|
51
51
|
|
52
|
-
def resolve
|
52
|
+
def resolve args
|
53
53
|
_, data_id = SoulsApiSchema.from_global_id args[:id]
|
54
54
|
::#{class_name.camelize}.find(data_id)
|
55
55
|
rescue StandardError => error
|
56
|
-
GraphQL::ExecutionError.new
|
56
|
+
GraphQL::ExecutionError.new(error.message)
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
data/lib/souls/api/index.rb
CHANGED
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.33.
|
1
|
+
0.33.5
|
@@ -1 +1 @@
|
|
1
|
-
0.33.
|
1
|
+
0.33.5
|
data/lib/souls/worker/index.rb
CHANGED
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: 0.54.
|
4
|
+
version: 0.54.5
|
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-09-
|
13
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|