souls 0.33.1 → 0.33.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f818f0b464a82d75375ca277ba34206f5e5339385b94c467c3b952902e50770
|
4
|
+
data.tar.gz: 55cc16c9dfc20aee218a9b1ed6ac647c7e41a7b793c63f2780ce6d04cecbf0ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0802ec2ea9219e9f11412d9a4c92fab058502722245749749a2c70db51d751c2b840b27eb62b9e55ebec1f4e6d58b1c1b3810282d8a83d8a30628d0dd567ad3d'
|
7
|
+
data.tar.gz: fb43c2d1c99db7f60aa76d8b3a9c16a7878f7023a511a36153c3959360ca696ce2e23e92e37a7fb93a352eb3f0588c3a53032ef28b880edd64f9cb679b852887
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.2
|
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.2
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Souls
|
2
|
+
module Worker
|
3
|
+
module Generate
|
4
|
+
class << self
|
5
|
+
def mutation(class_name: "csv_export")
|
6
|
+
file_dir = "./app/graphql/mutations/"
|
7
|
+
FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
|
8
|
+
file_path = "#{file_dir}#{class_name.singularize}_job.rb"
|
9
|
+
raise(StandardError, "Mailer already exist! #{file_path}") if File.exist?(file_path)
|
10
|
+
|
11
|
+
File.open(file_path, "w") do |f|
|
12
|
+
f.write(<<~TEXT)
|
13
|
+
module Mutations
|
14
|
+
class #{class_name.camelize}Job < BaseMutation
|
15
|
+
description "Job Description"
|
16
|
+
field :response, String, null: false
|
17
|
+
|
18
|
+
def resolve
|
19
|
+
# Define Job Here
|
20
|
+
|
21
|
+
{ response: "Job queued!" }
|
22
|
+
rescue StandardError => e
|
23
|
+
GraphQL::ExecutionError.new(e.to_s)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
TEXT
|
27
|
+
end
|
28
|
+
puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
|
29
|
+
file_path
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
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.33.
|
4
|
+
version: 0.33.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- lib/souls/worker/generate.rb
|
149
149
|
- lib/souls/worker/generate/index.rb
|
150
150
|
- lib/souls/worker/generate/mailer.rb
|
151
|
+
- lib/souls/worker/generate/mutation.rb
|
151
152
|
- lib/souls/worker/index.rb
|
152
153
|
homepage: https://souls.elsoul.nl
|
153
154
|
licenses:
|