souls 1.14.3 → 1.15.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 307c03a9709bb93fa10b1c01c3aeef9195998851d3911cd82e9caf15bdf681e6
4
- data.tar.gz: 73e46b801ed06da8633ba90f26a4614adbc0bcc1421b23eab9fae4b2f46fe978
3
+ metadata.gz: 9426e9e79a7a5bf882620e9461b98eb81ad37a6be05b82b0c2e1835aa18cc2b2
4
+ data.tar.gz: 13d2e0a39a080a25fd46ea062e53729467d0a728b0008ca2ee1fe0858543a733
5
5
  SHA512:
6
- metadata.gz: 0cb923fdc7f81864b921b1c6d02ff39512ed972826281c64e8e93da4232f8c9071b48e6266f0642baec145f66d6bbc377e1c91f6573f6623f5c160d202fb57d9
7
- data.tar.gz: 727b4134dc221130f6af878677b0d6ec666748ec319aa03970b2e5093f62c33d549b1f46ca78ed2d83be918b97619a3f385ffb736fe30fafe4ee132921d552bf
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 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
@@ -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
- 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
@@ -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(String),\n")
155
+ new_line.write(" \"#{name.camelize(:lower)}\" => be_all(#{field}),\n")
156
156
  else
157
- new_line.write(" \"#{name.camelize(:lower)}\" => be_a(String),\n")
157
+ new_line.write(" \"#{name.camelize(:lower)}\" => be_a(#{field}),\n")
158
158
  end
159
159
  when "boolean"
160
- new_line.write(" \"#{name.singularize.camelize(:lower)}\" => be_in([true, false]),\n")
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
@@ -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.3".freeze
2
+ VERSION = "1.15.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.14.3
1
+ 1.15.3
@@ -1 +1 @@
1
- 1.14.3
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.14.3
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-24 00:00:00.000000000 Z
13
+ date: 2021-12-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport