souls 0.33.0 → 0.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/souls/cli/gcloud/iam/index.rb +2 -2
- data/lib/souls/init.rb +1 -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/generate/index.rb +1 -0
- data/lib/souls/worker/generate/mutation.rb +35 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d646bd85b172e8de520a7df064670d8097407fa85a07b5b3149480b15e497a9
|
4
|
+
data.tar.gz: 75b4ea6db4e92031a9e303c2c7cb0edb8f5c8e3f328db4ebc531d4cd965d2eb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d6fc03dba103a44c1d441866dec676c46595a63141c6ae6c241f4e6abd88a0aeadac26cca63ee96823e05add2ff148953cb32c0990df58477ce8d6563929b1d
|
7
|
+
data.tar.gz: 0e5649148bf8d07ff4636adc8f59745f8496244a99dc1ee65ed83b5e29b2a5aae18178c39283ee40fed5b0f22ff8c785f793640be25d919140d5c98f02211f6c
|
@@ -18,7 +18,6 @@ module Souls
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def export_key_to_console
|
21
|
-
github_repo = Souls.configuration.github_repo || "elsoul/souls"
|
22
21
|
file_path = "config/keyfile.json"
|
23
22
|
puts(Paint["======= below(ここから)=======", :cyan])
|
24
23
|
text = []
|
@@ -28,9 +27,10 @@ module Souls
|
|
28
27
|
end
|
29
28
|
end
|
30
29
|
key = text.join(",").gsub(/^,/, "").chomp!
|
30
|
+
github_repo = `git remote show origin -n | grep 'Fetch URL:' | awk '{print $3}'`.strip
|
31
31
|
puts(Paint[key, :white])
|
32
32
|
puts(Paint["======= above(ここまで)=======", :cyan])
|
33
|
-
github_secret_url = "
|
33
|
+
github_secret_url = "#{github_repo}/settings/secrets/actions"
|
34
34
|
souls_doc_url = "https://souls.elsoul.nl/docs/tutorial/zero-to-deploy/#43-github-シークレットキーの登録"
|
35
35
|
txt1 = <<~TEXT
|
36
36
|
|
data/lib/souls/init.rb
CHANGED
@@ -17,7 +17,7 @@ module Souls
|
|
17
17
|
else
|
18
18
|
"bash"
|
19
19
|
end
|
20
|
-
system("echo '
|
20
|
+
system("echo '\nalias api=\'cd apps/api\'' >> ~/.#{rc}")
|
21
21
|
system("echo 'alias mother=\'...\'' >> ~/.#{rc}")
|
22
22
|
system("echo 'alias worker=\'cd apps/worker\'' >> ~/.#{rc}")
|
23
23
|
puts(Paint["run `source ~/.#{rc}` to reflect your .#{rc}", :yellow])
|
@@ -72,7 +72,6 @@ module Souls
|
|
72
72
|
config.app = "#{app_name}"
|
73
73
|
config.project_id = "#{app_name}"
|
74
74
|
config.strain = "mother"
|
75
|
-
config.github_repo = "elsoul/souls"
|
76
75
|
config.fixed_gems = ["excluded_gem"]
|
77
76
|
end
|
78
77
|
TEXT
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.4
|
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.4
|
@@ -0,0 +1,35 @@
|
|
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
|
+
end
|
27
|
+
TEXT
|
28
|
+
end
|
29
|
+
puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
|
30
|
+
file_path
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
8
8
|
- KishiTheMechanic
|
9
9
|
- James Neve
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
13
|
date: 2021-08-27 00:00:00.000000000 Z
|
@@ -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:
|
@@ -156,7 +157,7 @@ metadata:
|
|
156
157
|
homepage_uri: https://souls.elsoul.nl
|
157
158
|
source_code_uri: https://github.com/elsoul/souls
|
158
159
|
changelog_uri: https://github.com/elsoul/souls
|
159
|
-
post_install_message:
|
160
|
+
post_install_message:
|
160
161
|
rdoc_options: []
|
161
162
|
require_paths:
|
162
163
|
- lib
|
@@ -172,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
173
|
version: '0'
|
173
174
|
requirements: []
|
174
175
|
rubygems_version: 3.2.22
|
175
|
-
signing_key:
|
176
|
+
signing_key:
|
176
177
|
specification_version: 4
|
177
178
|
summary: SOULs はサーバーレスフルスタックフレームワークです。柔軟な Ruby GraphQL API と Worker はルーティングの必要がありません。
|
178
179
|
クラウド環境への自動デプロイ、CI/CD ワークフローを標準装備。開発者がビジネスロジックに集中し、楽しくコードが書けるような環境を目指しています。
|