souls 1.14.2 → 1.15.2
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/create/template/functions_app.rb +0 -1
- data/lib/souls/cli/create/template/functions_gemfile.rb +0 -1
- data/lib/souls/cli/gcloud/functions/index.rb +14 -0
- data/lib/souls/cli/generate/resolver_rbs.rb +17 -15
- 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: 69ade83bc2c7c2a894dc61fd17bce6aa7f3dd13828c159f576908f127eb5c0f1
|
4
|
+
data.tar.gz: 4b8b1c3a17d317dc37fbce09ae7233d6d18951d2083c3bf50348be0fc48c337e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b492fb820040cf136f4705191576b9b05ba2037e10b5009c1d8ab3b4eaa5d48d740ed082dbc21587d2e3bba005889f0168ba5945bd28abaccce3993b19828fc
|
7
|
+
data.tar.gz: fcf1ba18b3202b959b3ad3483aa0d84b91196cd0d543b94ba952e8bd7189120b1d6150abddc6c0d08653a33eb2425dc525f782acf940c33d0957f9a87a386123
|
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)
|
@@ -14,6 +14,20 @@ module Souls
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
desc "describe", "Describe SOULs Functions"
|
18
|
+
def describe
|
19
|
+
require(Souls.get_mother_path.to_s + "/config/souls")
|
20
|
+
project_id = Souls.configuration.project_id
|
21
|
+
system("gcloud functions describe souls_functions --project=#{project_id}")
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "url", "Get SOULs Functions URL"
|
25
|
+
def url
|
26
|
+
require(Souls.get_mother_path.to_s + "/config/souls")
|
27
|
+
project_id = Souls.configuration.project_id
|
28
|
+
system("gcloud functions describe souls_functions --project=#{project_id}| grep url")
|
29
|
+
end
|
30
|
+
|
17
31
|
desc "dev", "Check SOULs Functions dev"
|
18
32
|
def dev
|
19
33
|
Dir.chdir(Souls.get_functions_path.to_s) do
|
@@ -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
|
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.2
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.15.2
|
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.2
|
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-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|