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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1b47e28c2adf758f84a32496804bb599f505117d939614361a1653a504867ee
4
- data.tar.gz: 052040ba9f653ab2c7c7c398ed2dd082f6fb3e371738a60792f029c4e261da2b
3
+ metadata.gz: 0d646bd85b172e8de520a7df064670d8097407fa85a07b5b3149480b15e497a9
4
+ data.tar.gz: 75b4ea6db4e92031a9e303c2c7cb0edb8f5c8e3f328db4ebc531d4cd965d2eb9
5
5
  SHA512:
6
- metadata.gz: bbb253ebe930a4953e8e469bef9766a26adcfcffff85c1535bccbe8f8c38ed4db64125032b9e24c642245b5b19ff6849c716af08de3d4473167a357659a871a5
7
- data.tar.gz: c7e72bf2018d6b6a985cd913f9d034d1899ea86890901ae20e7751dca801b7b4d401d148b9f99a9de986dc666886bd52ef9501c93ad1767f465f1ed64a5058c2
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 = "https://github.com/#{github_repo}/settings/secrets/actions"
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 'alias api=\'cd apps/api\'' >> ~/.#{rc}")
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.33.0".freeze
2
+ VERSION = "0.33.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.12.4
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.12.4
@@ -1 +1,2 @@
1
1
  require_relative "./mailer"
2
+ require_relative "./mutation"
@@ -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.0
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 ワークフローを標準装備。開発者がビジネスロジックに集中し、楽しくコードが書けるような環境を目指しています。