souls 0.52.7 → 0.53.3

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: 49458ef831fc41a334300fd1ecfbef202bab5ace35c5e7fc89080273ef5bbdba
4
- data.tar.gz: 047a535644c464658d6b5b64e11ec94edaf9a821767e6430c68f0c01e8352654
3
+ metadata.gz: e40337225252207ee584a0792eb682563c6ff954e52f3e5da2f149556472028d
4
+ data.tar.gz: 4ea2367b590925117d927bf9e0098d11d93e0ad8e407f48dad8a630628147cb9
5
5
  SHA512:
6
- metadata.gz: c738e3c428cf46ac10c681d9039d015f0407f06b9b45fa6316ab4ed20e9a329eaf388c91c15af9110d25750df952fdc01a360a644012a93b5c0e06406c759a93
7
- data.tar.gz: 770e019d26351a18c2bae9e6594825f69476f0639cd7259d62ee2defcffeec92c133989adc9ed5931137224cb0ecde78ef36cdffc719c5b406514975b0fa07d8
6
+ metadata.gz: 15c47b58b66cf2a6765baca1027580ab3850ca8687c8e443323a1d37f1026a70c148184d86eb39d550e0f053765e63c8b53b493a700d7ceea9fdad7305fdef2c
7
+ data.tar.gz: cc5b188f99c0a82572c9a4f3abefd1ec743d3e973111a329b7765737967c90d8cee5f9cd58dcd4b8ff68c3f8ac771022142b97ca55584d87a1dc96579c972133
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![SOULs](https://storage.googleapis.com/souls/souls-ogp-vertical.jpg)](https://rubygems.org/gems/souls)
1
+ [![SOULs](https://souls.elsoul.nl/ogp.jpg)](https://souls.elsoul.nl)
2
2
 
3
3
  <p align="center">
4
4
  <a aria-label="Ruby logo" href="https://el-soul.com">
@@ -27,7 +27,7 @@ SOULs はサーバーレスフルスタックフレームワークです。柔
27
27
  SOULs バックエンドには `API` と `Worker` の 2 つのタイプがあります。
28
28
  `API` は主にデータをフロントエンドへ提供します。`Worker` は主に `タスク` の処理を行います
29
29
 
30
- ![画像](https://storage.googleapis.com/souls-bucket/imgs/souls-structure.jpg)
30
+ ![画像](https://souls.elsoul.nl/imgs/docs/SOULs.jpg)
31
31
 
32
32
  現在のバージョンでは SOULs `API` と `Worker` を Github Actions を使って Google Cloud Run へそれぞれデプロイします。
33
33
 
@@ -86,8 +86,6 @@ Check your GraphQL PlayGround
86
86
 
87
87
  (localhost:4000/playground)[localhost:4000/playground]
88
88
 
89
-
90
-
91
89
  ## Gemfile 自動更新アップデート
92
90
 
93
91
  `Gemfile`, `Gemfile.lock` を最新のバージョンに自動更新します。
@@ -96,11 +94,9 @@ Check your GraphQL PlayGround
96
94
  souls upgrade gemfile
97
95
  ```
98
96
 
99
-
100
97
  除外したい `gem` は `config/souls.rb` 内の
101
98
  `config.fixed_gems` の配列に追加します。
102
99
 
103
-
104
100
  ```ruby
105
101
  Souls.configure do |config|
106
102
  config.app = "souls-api"
@@ -113,15 +109,12 @@ Souls.configure do |config|
113
109
  end
114
110
  ```
115
111
 
116
-
117
-
118
112
  ## SOULs Serverless Application Framework Document
119
113
 
120
114
  SOULs サーバーレスアプリケーションフレームワーク
121
115
  ドキュメントはこちらから
122
- - [SOULs Document](https://souls.elsoul.nl/)
123
-
124
116
 
117
+ - [SOULs Document](https://souls.elsoul.nl/)
125
118
 
126
119
  ## Development
127
120
 
data/exe/souls CHANGED
@@ -3,7 +3,19 @@ require "souls"
3
3
  require "thor"
4
4
  begin
5
5
  souls_command = ARGV[0]
6
- require("./config/souls") unless ["new", "docker", "-v", "deploy"].include?(souls_command)
6
+ require("./config/souls") unless [
7
+ "new",
8
+ "docker",
9
+ "-v",
10
+ "deploy",
11
+ "help",
12
+ "api",
13
+ "create",
14
+ "gcloud",
15
+ "worker",
16
+ "",
17
+ nil
18
+ ].include?(souls_command)
7
19
  rescue StandardError
8
20
  raise(StandardError, "No confif! Please make `./config/souls.rb` File!")
9
21
  end
@@ -22,7 +22,8 @@ module Souls
22
22
 
23
23
  desc "get_endpoint", "Show Worker's Endpoint"
24
24
  def get_endpoint(worker_name: "")
25
- `gcloud run services list | grep #{worker_name} | awk '{print $4}'`
25
+ project_id = Souls.configuration.project_id if project_id.blank?
26
+ `gcloud run services list --project #{project_id} --platform managed | grep #{worker_name} | awk '{print $4}'`
26
27
  rescue Thor::Error => e
27
28
  raise(Thor::Error, e)
28
29
  end
@@ -36,7 +36,7 @@ module Souls
36
36
 
37
37
  new_line.write(" config.workers = [\n")
38
38
  workers.each_with_index do |worker, i|
39
- base_url = Souls::Gcloud::Run.new.get_endpoint(worker_name: worker[:name])
39
+ base_url = Souls::CloudRun.new.get_endpoint(worker_name: worker[:name])
40
40
  endpoint = Souls.configuration.endpoint
41
41
  if (i + 1) == workers.size
42
42
  new_line.write(<<-TEXT)
@@ -2,6 +2,17 @@ module Souls
2
2
  class Upgrade < Thor
3
3
  desc "gemfile", "Update Gemfile/Gemfile.lock Version"
4
4
  def gemfile
5
+ status = Paint["Checking Latest Gems...", :yellow]
6
+ Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
7
+ Whirly.status = status
8
+ update_gem
9
+ Whirly.status = "Done!"
10
+ end
11
+ end
12
+
13
+ private
14
+
15
+ def update_gem
5
16
  file_path = "./Gemfile"
6
17
  tmp_file = "./tmp/Gemfile"
7
18
  new_gems = gemfile_latest_version
@@ -68,8 +79,6 @@ module Souls
68
79
  end
69
80
  end
70
81
 
71
- private
72
-
73
82
  def gemfile_latest_version
74
83
  file_path = "./Gemfile"
75
84
  updated_gems = []
data/lib/souls/cli.rb CHANGED
@@ -1,25 +1,25 @@
1
1
  require "souls"
2
2
  module Souls
3
3
  class CLI < Thor
4
- desc "api [COMMAND]", "souls api Commands"
4
+ desc "api [COMMAND]", "SOULs API Commands"
5
5
  subcommand "api", API
6
6
 
7
- desc "gcloud [COMMAND]", "souls gcloud Commands"
7
+ desc "gcloud [COMMAND]", "SOULs Gcloud Commands"
8
8
  subcommand "gcloud", Gcloud
9
9
 
10
- desc "docker [COMMAND]", "souls docker Commands"
10
+ desc "docker [COMMAND]", "SOULs Docker Commands"
11
11
  subcommand "docker", Docker
12
12
 
13
- desc "create [COMMAND]", "souls create worker $worker_name"
13
+ desc "create [COMMAND]", "SOULs Create Worker"
14
14
  subcommand "create", Create
15
15
 
16
- desc "sync", "souls sync Commands"
16
+ desc "sync", " SOULs Sync Commands"
17
17
  subcommand "sync", Sync
18
18
 
19
- desc "upgrade", "souls upgrade Commands"
19
+ desc "upgrade", "SOULs Upgrade Commands"
20
20
  subcommand "upgrade", Upgrade
21
21
 
22
- desc "worker [COMMAND]", "souls worker Commands"
22
+ desc "worker [COMMAND]", "SOULs Worker Commands"
23
23
  subcommand "worker", Worker
24
24
 
25
25
  # rubocop:disable Style/StringHashKeys
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.52.7".freeze
2
+ VERSION = "0.53.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.31.7
1
+ 0.32.3
@@ -1 +1 @@
1
- 0.31.7
1
+ 0.32.3
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.7
4
+ version: 0.53.3
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
- date: 2021-09-16 00:00:00.000000000 Z
13
+ date: 2021-09-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -192,7 +192,7 @@ metadata:
192
192
  homepage_uri: https://souls.elsoul.nl
193
193
  source_code_uri: https://github.com/elsoul/souls
194
194
  changelog_uri: https://github.com/elsoul/souls
195
- post_install_message:
195
+ post_install_message:
196
196
  rdoc_options: []
197
197
  require_paths:
198
198
  - lib
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  requirements: []
210
210
  rubygems_version: 3.2.22
211
- signing_key:
211
+ signing_key:
212
212
  specification_version: 4
213
213
  summary: SOULs はサーバーレスフルスタックフレームワークです。柔軟な Ruby GraphQL API と Worker はルーティングの必要がありません。
214
214
  クラウド環境への自動デプロイ、CI/CD ワークフローを標準装備。開発者がビジネスロジックに集中し、楽しくコードが書けるような環境を目指しています。