souls 1.14.3 → 1.15.3
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/resolver_rbs.rb +17 -15
- 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: 9426e9e79a7a5bf882620e9461b98eb81ad37a6be05b82b0c2e1835aa18cc2b2
|
4
|
+
data.tar.gz: 13d2e0a39a080a25fd46ea062e53729467d0a728b0008ca2ee1fe0858543a733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 794e8d507e9b99ffab00a394378a622c66b80eaa65ec8f34c7971125cf69201388a613e068b42141d30888c6cb3010e5bfaba371ab0bfa2fa9fabd6849d5cb4e
|
7
|
+
data.tar.gz: 07cd0a2b67d421a339f1fafec23d68a6d67ae35b79e4ddd36448eb0c77df40204b6a72f6fe738e38c983ca28def1df8005ac43df0d45443f5c73338a75c58210
|
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
|
@@ -12,22 +12,24 @@ module Souls
|
|
12
12
|
|
13
13
|
File.open(file_path, "w") do |f|
|
14
14
|
f.write(<<~TEXT)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
15
|
+
module Resolvers
|
16
|
+
class BaseResolver
|
17
|
+
end
|
18
|
+
class #{singularized_class_name.camelize}Search < BaseResolver
|
19
|
+
include SearchObject
|
20
|
+
def self.scope: () ?{ () -> nil } -> [Hash[Symbol, untyped]]
|
21
|
+
def self.type: (*untyped) -> String
|
22
|
+
def self.option: (:filter, type: untyped, with: :apply_filter) -> String
|
23
|
+
def self.description: (String) -> String
|
24
|
+
def self.types: (*untyped) -> String
|
25
|
+
def decode_global_key: (String value) -> Integer
|
26
|
+
def apply_filter: (untyped scope, untyped value) -> untyped
|
26
27
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
class #{singularized_class_name.camelize}Filter
|
29
|
+
String: String
|
30
|
+
Boolean: Boolean
|
31
|
+
Integer: Integer
|
32
|
+
end
|
31
33
|
end
|
32
34
|
end
|
33
35
|
TEXT
|
@@ -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.
|
1
|
+
1.15.3
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.15.3
|
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.
|
4
|
+
version: 1.15.3
|
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
|