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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8308615df78c8c6ebe073fdbab2cd67b62cd2b793eb50a34f3849d74f6c22424
4
- data.tar.gz: 36b68ae49c525c4ad70a20ca7da086298c3563a3ef039e1cfb5749710a988146
3
+ metadata.gz: 69ade83bc2c7c2a894dc61fd17bce6aa7f3dd13828c159f576908f127eb5c0f1
4
+ data.tar.gz: 4b8b1c3a17d317dc37fbce09ae7233d6d18951d2083c3bf50348be0fc48c337e
5
5
  SHA512:
6
- metadata.gz: 2a4bdc4ab3b391b6a863a3a993301953adacdbe2fa3415b896c4b9ada0f55d12a038a27039bb2cdb928f8401e0f40667fda34c0172f4f1c727e4784100201a78
7
- data.tar.gz: fa8dddbc20ea584a313074acf14194d0ac4628c01aaf29927def9b14a82d04aa547b9ac77190be3b8450115b6131269cf8bff43504a7c42c9ba319ce7fc2111d
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 2 types of App.
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)
@@ -145,7 +145,7 @@ end
145
145
  - name: Set up Ruby 3.0
146
146
  uses: ruby/setup-ruby@v1
147
147
  with:
148
- ruby-version: 3.0
148
+ ruby-version: "3.0"
149
149
 
150
150
  - name: Checkout the repository
151
151
  uses: actions/checkout@v2
@@ -4,7 +4,6 @@ module Template
4
4
  require "functions_framework"
5
5
  require "sinatra/base"
6
6
  require "dotenv/load"
7
- require "souls"
8
7
 
9
8
  class App < Sinatra::Base
10
9
  get "/souls-functions-get/:name" do
@@ -6,7 +6,6 @@ module Template
6
6
  gem "dotenv", "2.7.6"
7
7
  gem "functions_framework", "~> 0.7"
8
8
  gem "sinatra", "2.1.0"
9
- gem "souls", "#{Souls::VERSION}"
10
9
 
11
10
  GEMFILE
12
11
  end
@@ -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
- class BaseResolver
16
- end
17
- class #{singularized_class_name.camelize}Search < BaseResolver
18
- include SearchObject
19
- def self.scope: () ?{ () -> nil } -> [Hash[Symbol, untyped]]
20
- def self.type: (*untyped) -> String
21
- def self.option: (:filter, type: untyped, with: :apply_filter) -> String
22
- def self.description: (String) -> String
23
- def self.types: (*untyped) -> String
24
- def decode_global_key: (String value) -> Integer
25
- def apply_filter: (untyped scope, untyped value) -> untyped
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
- class #{singularized_class_name.camelize}Filter < Souls::Types::BaseInputObject
28
- String: String
29
- Boolean: Boolean
30
- Integer: Integer
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
@@ -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.23"
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.14.2".freeze
2
+ VERSION = "1.15.2".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.14.2
1
+ 1.15.2
@@ -1 +1 @@
1
- 1.14.2
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.14.2
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-24 00:00:00.000000000 Z
13
+ date: 2021-12-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport