souls 1.15.0 → 1.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/souls/cli/create/index.rb +1 -1
- data/lib/souls/cli/gcloud/iam/index.rb +2 -1
- data/lib/souls/cli/gcloud/index.rb +2 -0
- data/lib/souls/cli/generate/rspec_query.rb +4 -6
- data/lib/souls/cli/init/index.rb +2 -7
- 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
- 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: eeb3766e85122dbfd878149c888df2a20a03b0bc03ae6083b67fb6a446d4802a
|
4
|
+
data.tar.gz: 0f274f0fb03d08e0c7fccd8afc3ccfd7eb4cc34aea78abce3314cc14ecc7a940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f52fb319f2a0ac180aa182b39727f7b2a60188b650442784e454112bd0a9f728ad5187b0f4d545544865ee38c035c1a607eb308f0c69a26c028a3df013360a5
|
7
|
+
data.tar.gz: 95c588bfeb8098872527f994c7278b278db19f687b82618e461a24c4188084bb5d327608e6c16532549834fa019b3962956e17b99c48a002dc3f23248a88862c
|
data/README.md
CHANGED
@@ -52,10 +52,11 @@ Powered by Ruby GraphQL, RBS/Steep, Active Record, RSpec, RuboCop, and Google Cl
|
|
52
52
|
|
53
53
|
![SOULs Architecture](https://souls.elsoul.nl/imgs/docs/SOULs-architecture.jpg)
|
54
54
|
|
55
|
-
SOULs creates
|
55
|
+
SOULs creates 3 types of App.
|
56
56
|
|
57
57
|
1. API - GraphQL (Ruby) - Simple API - Cloud Run
|
58
58
|
2. Worker - Google Pub/Sub Messaging Worker API (Ruby) - Cloud Run
|
59
|
+
3. Functions - Google Cloud Functions
|
59
60
|
|
60
61
|
## Ruby type checking
|
61
62
|
The SOULs framework uses RBS / Steep, which appeared in Ruby 3.0.
|
@@ -85,6 +86,7 @@ It is a development environment where you can immediately notice the mistakes th
|
|
85
86
|
## Cloud Infrastructure
|
86
87
|
|
87
88
|
- [Google Cloud Run](https://cloud.google.com/run)
|
89
|
+
- [Google Cloud Functions](https://cloud.google.com/functions)
|
88
90
|
- [Google Cloud SQL](https://cloud.google.com/sql)
|
89
91
|
- [Google Cloud Pub/Sub](https://cloud.google.com/pubsub)
|
90
92
|
- [Google Cloud Storage](https://cloud.google.com/run)
|
@@ -101,7 +101,8 @@ module Souls
|
|
101
101
|
"roles/storage.objectAdmin",
|
102
102
|
"roles/cloudscheduler.admin",
|
103
103
|
"roles/appengine.appCreator",
|
104
|
-
"roles/logging.admin"
|
104
|
+
"roles/logging.admin",
|
105
|
+
"roles/cloudtranslate.admin"
|
105
106
|
]
|
106
107
|
roles.each do |role|
|
107
108
|
add_service_account_role(role: role)
|
@@ -60,6 +60,8 @@ module Souls
|
|
60
60
|
system("gcloud services enable vpcaccess.googleapis.com")
|
61
61
|
system("gcloud services enable cloudscheduler.googleapis.com")
|
62
62
|
system("gcloud services enable cloudresourcemanager.googleapis.com")
|
63
|
+
system("gcloud services enable translate.googleapis.com")
|
64
|
+
system("gcloud services enable firestore.googleapis.com")
|
63
65
|
end
|
64
66
|
end
|
65
67
|
end
|
@@ -150,16 +150,14 @@ module Souls
|
|
150
150
|
next
|
151
151
|
else
|
152
152
|
case type
|
153
|
-
when "text", "date", "datetime"
|
153
|
+
when "bigint", "integer", "float", "string", "text", "date", "datetime"
|
154
154
|
if array_true
|
155
|
-
new_line.write(" \"#{name.camelize(:lower)}\" => be_all(
|
155
|
+
new_line.write(" \"#{name.camelize(:lower)}\" => be_all(#{field}),\n")
|
156
156
|
else
|
157
|
-
new_line.write(" \"#{name.camelize(:lower)}\" => be_a(
|
157
|
+
new_line.write(" \"#{name.camelize(:lower)}\" => be_a(#{field}),\n")
|
158
158
|
end
|
159
159
|
when "boolean"
|
160
|
-
new_line.write(" \"#{name.
|
161
|
-
when "string", "bigint", "integer", "float"
|
162
|
-
new_line.write(" \"#{name.singularize.camelize(:lower)}\" => be_a(#{field}),\n")
|
160
|
+
new_line.write(" \"#{name.camelize(:lower)}\" => be_in([true, false]),\n")
|
163
161
|
end
|
164
162
|
end
|
165
163
|
end
|
data/lib/souls/cli/init/index.rb
CHANGED
@@ -22,12 +22,7 @@ module Souls
|
|
22
22
|
initial_config_init(app_name: app_name, service_name: service_name)
|
23
23
|
system("cd #{app_name} && git init --initial-branch=main")
|
24
24
|
|
25
|
-
system(
|
26
|
-
"
|
27
|
-
cd #{app_name} &&
|
28
|
-
git submodule add -f https://github.com/ruby/gem_rbs_collection.git vendor/rbs/gem_rbs_collection
|
29
|
-
"
|
30
|
-
)
|
25
|
+
system(" cd #{app_name} && rbs collection init && rbs collection install ")
|
31
26
|
souls_api_credit(app_name)
|
32
27
|
end
|
33
28
|
|
@@ -135,7 +130,7 @@ module Souls
|
|
135
130
|
gem "rake", "13.0.6"
|
136
131
|
gem "rspec", "3.10.0"
|
137
132
|
gem "rubocop", "1.22.3"
|
138
|
-
gem "sinatra-activerecord", "2.0.
|
133
|
+
gem "sinatra-activerecord", "2.0.25"
|
139
134
|
gem "solargraph", "0.44.0"
|
140
135
|
#{souls_gem}
|
141
136
|
gem "steep", "0.46.0"
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.15.
|
1
|
+
1.15.4
|
@@ -1 +1 @@
|
|
1
|
-
1.15.
|
1
|
+
1.15.4
|
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: 1.15.
|
4
|
+
version: 1.15.4
|
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-12-
|
13
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|