souls 0.33.3 → 0.33.7
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/README.md +2 -4
- data/exe/souls +2 -0
- data/lib/souls/api/generate/migration.rb +14 -0
- 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/mutation.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a6f4928cb5e49f41978f3820bdb8d7382e8433b0af9ca9910dd46fef8192c71
|
4
|
+
data.tar.gz: 36933a33337761ef2a04487ca141036f000c0312e0ffa8bbad819a118bfa2cac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7fb6c262cddaa13bfd101456ba195e37503894f1c0de81b0a5c77d58e9993bd4b5f241c8a37b2a6a2a47ea201c11cc7d71afb53d37240a1c44d9c692b7ddb48
|
7
|
+
data.tar.gz: b6b5de2a7db9ae4796b2881d0a15573b380ac6adfa63b100944d7b700e480c145ac9bf7a2ca32eb67f324a8c8b7deae5c422859a815be8f16d9c79c2df9269c3
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ SOULs フレームワークでは [Monorepo](https://en.wikipedia.org/wiki/Monor
|
|
36
36
|
SOULs creates 3 types of framework.
|
37
37
|
|
38
38
|
1. API - GraphQL (Ruby) - Simple API - Cloud Run
|
39
|
-
2. Worker - Google Pub/Sub Worker API (Ruby) - Cloud Run
|
39
|
+
2. Worker - Google Pub/Sub Messaging Worker API (Ruby) - Cloud Run
|
40
40
|
3. Frontend - React Application (TypeScript) - Firebase
|
41
41
|
|
42
42
|
## Dependency
|
@@ -53,7 +53,6 @@ SOULs creates 3 types of framework.
|
|
53
53
|
- [Google Cloud Pub/Sub](https://cloud.google.com/pubsub)
|
54
54
|
- [Google Cloud Storage](https://cloud.google.com/run)
|
55
55
|
- [Google Cloud IAM](https://cloud.google.com/iam)
|
56
|
-
- [Google Cloud DNS](https://cloud.google.com/dns)
|
57
56
|
- [Google Cloud Container Registry](https://cloud.google.com/container-registry)
|
58
57
|
- [Google Firebase](https://firebase.google.com/)
|
59
58
|
- [Google Cloud Scheduler](https://cloud.google.com/scheduler)
|
@@ -90,7 +89,7 @@ And Create Your APP
|
|
90
89
|
`Gemfile`, `Gemfile.lock` を最新のバージョンに自動更新します。
|
91
90
|
|
92
91
|
```
|
93
|
-
souls
|
92
|
+
souls upgrade gemfile
|
94
93
|
```
|
95
94
|
|
96
95
|
|
@@ -103,7 +102,6 @@ Souls.configure do |config|
|
|
103
102
|
config.app = "souls-api"
|
104
103
|
config.project_id = "souls-api"
|
105
104
|
config.strain = "api"
|
106
|
-
config.github_repo = "elsoul/souls"
|
107
105
|
config.fixed_gems = ["selenium-webdriver", "pg"]
|
108
106
|
end
|
109
107
|
```
|
data/exe/souls
CHANGED
@@ -5,6 +5,20 @@ module Souls
|
|
5
5
|
def create_migration(class_name: "user")
|
6
6
|
pluralized_class_name = class_name.underscore.pluralize
|
7
7
|
system("rake db:create_migration NAME=create_#{pluralized_class_name}")
|
8
|
+
file_path = Dir["db/migrate/*create_#{pluralized_class_name}.rb"].first
|
9
|
+
File.open(file_path, "w") do |f|
|
10
|
+
f.write(<<~TEXT)
|
11
|
+
class Create#{pluralized_class_name.camelize} < ActiveRecord::Migration[6.1]
|
12
|
+
def change
|
13
|
+
create_table :#{pluralized_class_name} do |t|
|
14
|
+
|
15
|
+
t.boolean :is_deleted, null: false, default: false
|
16
|
+
t.timestamps
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
TEXT
|
21
|
+
end
|
8
22
|
end
|
9
23
|
|
10
24
|
def add_column(class_name: "user")
|
@@ -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.7
|
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.7
|
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.7
|
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-08-
|
13
|
+
date: 2021-08-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|