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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eef7cd565e70dfb4a040f2ff59c1c52b1419ea2edd0a3e47ff72bd31a27df54f
4
- data.tar.gz: d6c85ac5fb93ecdaa41bdf81f66f90949c1a04e1027cc2bf7af200f71b7d7afb
3
+ metadata.gz: 67f7095a375672b1a1c6afa3f952f08884b88aad0c121963fd70708052ef2332
4
+ data.tar.gz: 3827ecad5d12367fa018bf7bc5d073e6172d69bfaa0063dea0e22a43db2e9ee5
5
5
  SHA512:
6
- metadata.gz: 03a9e2e99b87528271665deabc8abff05b139863a4da93a7fc03a92b9ea78a34f8dc91cecf89c0e5fb1f45f188fdf807cea0b9dbe590c7df647f50201a506ed3
7
- data.tar.gz: 9b84af82597b9bff3d155da20cabf70d2acb1e9b6117a5f3362dc7d5f19b5f300fb96c3b2732e4da592b205c6a15acac01282bb29f518600b881e94b168b9095
6
+ metadata.gz: 77b152892d353af386cd550ef0c872362b8dc9e71590c63f84ad5e992f821cdebd70d6c1a988f67b0ddd34d787e0c6b1a221383f1ac42523ef04385c63095a4f
7
+ data.tar.gz: 624356116448f8a84790fec1eaedc237ba61bda08a0e9d0f18d4fddf6d44b2ba2c1e15fbdb23c2bfb30db568a10b61b5669fa25a3fed6b5d635842eedc892375
@@ -20,7 +20,7 @@ module Souls
20
20
 
21
21
  field :response, String, null: false
22
22
 
23
- def resolve(**args)
23
+ def resolve(args)
24
24
  # Define Here
25
25
  rescue StandardError => e
26
26
  GraphQL::ExecutionError.new(e.to_s)
@@ -55,13 +55,13 @@ module Souls
55
55
  if @user_exist
56
56
  new_line.write(<<-TEXT)
57
57
 
58
- def resolve **args
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 **args
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 error
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 **args
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 **args
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 error
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 **args
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 error
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 **args
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 error
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 error
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 **args
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 error
56
+ GraphQL::ExecutionError.new(error.message)
57
57
  end
58
58
  end
59
59
  end
@@ -7,7 +7,8 @@ module Souls
7
7
 
8
8
  desc "update [COMMAND]", "souls api update Commands"
9
9
  subcommand "update", Update
10
-
11
- map g: :generate
10
+ # rubocop:disable Style/StringHashKeys
11
+ map "g" => :generate
12
+ # rubocop:enable Style/StringHashKeys
12
13
  end
13
14
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.54.4".freeze
2
+ VERSION = "0.54.5".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.33.4
1
+ 0.33.5
@@ -1 +1 @@
1
- 0.33.4
1
+ 0.33.5
@@ -5,6 +5,8 @@ module Souls
5
5
  desc "generate [COMMAND]", "souls worker generate Commands"
6
6
  subcommand "generate", Generate
7
7
 
8
- map g: :generate
8
+ # rubocop:disable Style/StringHashKeys
9
+ map "g" => :generate
10
+ # rubocop:enable Style/StringHashKeys
9
11
  end
10
12
  end
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
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-22 00:00:00.000000000 Z
13
+ date: 2021-09-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport