souls 0.57.1 → 0.58.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 +4 -4
- data/lib/souls/api/generate/edge_rbs.rb +2 -2
- data/lib/souls/api/generate/mutation_rbs.rb +4 -0
- data/lib/souls/api/generate/resolver_rbs.rb +4 -24
- data/lib/souls/cli/init/index.rb +32 -3
- data/lib/souls/cli/upgrade/gemfile.rb +2 -2
- data/lib/souls/utils/index.rb +0 -1
- 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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7a256a7ea37aaad89e76c32abad7e7c0232eb21c627e03f00f14ab02f2d2d37
|
4
|
+
data.tar.gz: 11506d1ba70570d6e5e7114e80b01aff816f905ae2c1c8edd4efc9299cf8bcf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd8c451629c39b3f6978946e74c5442f914c9c4d824abc1fd47e3a99fb5e99147ada481f066aa32887ab03f4ebbdfc6751df2faf06e37b756cfe372b19ba09ba
|
7
|
+
data.tar.gz: 795154142df5e334a7f66df0912216540a3ac0c713aa88061ef684e9bdf9835c132c7596936a68d8f0eb331b42abf4b209923e27f24359df58271f5eac7aab34
|
@@ -12,9 +12,9 @@ module Souls
|
|
12
12
|
f.write(<<~TEXT)
|
13
13
|
module Types
|
14
14
|
class #{singularized_class_name.camelize}Edge < BaseObject
|
15
|
-
def self.
|
15
|
+
def self.edge_type: (*untyped) -> untyped
|
16
|
+
def self.node_type: (*untyped) -> untyped
|
16
17
|
def self.global_id_field: (*untyped) -> untyped
|
17
|
-
def self.field: (*untyped) -> untyped
|
18
18
|
def self.connection_type: ()-> untyped
|
19
19
|
end
|
20
20
|
end
|
@@ -102,7 +102,11 @@ module Souls
|
|
102
102
|
module Base
|
103
103
|
module #{class_name.camelize}
|
104
104
|
class Update#{class_name.camelize} < BaseMutation
|
105
|
+
String: String
|
106
|
+
Boolean: Boolean
|
107
|
+
Integer: Integer
|
105
108
|
def resolve: ({
|
109
|
+
id: String,
|
106
110
|
TEXT
|
107
111
|
end
|
108
112
|
File.open(file_path, "a") do |f|
|
@@ -10,12 +10,15 @@ module Souls
|
|
10
10
|
file_path = "#{file_dir}/#{singularized_class_name}_search.rbs"
|
11
11
|
raise(Thor::Error, "Mutation RBS already exist! #{file_path}") if File.exist?(file_path)
|
12
12
|
|
13
|
-
params = Souls.get_relation_params(class_name: singularized_class_name)
|
14
13
|
File.open(file_path, "w") do |f|
|
15
14
|
f.write(<<~TEXT)
|
16
15
|
class Base
|
17
16
|
end
|
17
|
+
module SearchObject
|
18
|
+
def self.module: (Symbol) -> untyped
|
19
|
+
end
|
18
20
|
class #{singularized_class_name.camelize}Search < Base
|
21
|
+
include SearchObject
|
19
22
|
def self.scope: () ?{ () -> nil } -> [Hash[Symbol, untyped]]
|
20
23
|
def self.type: (*untyped) -> String
|
21
24
|
def self.option: (:filter, type: untyped, with: :apply_filter) -> String
|
@@ -25,35 +28,12 @@ module Souls
|
|
25
28
|
def self.types: (*untyped) -> String
|
26
29
|
def decode_global_key: (String value) -> Integer
|
27
30
|
def apply_filter: (untyped scope, untyped value) -> untyped
|
28
|
-
def normalize_filters: (untyped value, ?Array[untyped] branches) -> Array[untyped]
|
29
31
|
|
30
32
|
class #{singularized_class_name.camelize}Filter
|
31
33
|
String: String
|
32
34
|
Boolean: Boolean
|
33
35
|
Integer: Integer
|
34
|
-
TEXT
|
35
|
-
end
|
36
|
-
File.open(file_path, "a") do |f|
|
37
|
-
params[:params].each_with_index do |param, i|
|
38
|
-
type = Souls.rbs_type_check(param[:type])
|
39
|
-
type = "[#{type}]" if param[:array]
|
40
|
-
rbs_type = Souls.rbs_type_check(param[:type])
|
41
|
-
if i.zero?
|
42
|
-
f.write(" def self.argument: (:OR, [self], required: false) -> String\n")
|
43
|
-
else
|
44
|
-
f.write(" | (:#{param[:column_name]}, #{type}, required: false) -> #{rbs_type}\n")
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
File.open(file_path, "a") do |f|
|
50
|
-
f.write(<<~TEXT)
|
51
36
|
end
|
52
|
-
end
|
53
|
-
module Types
|
54
|
-
class BaseBaseInputObject
|
55
|
-
end
|
56
|
-
end
|
57
37
|
TEXT
|
58
38
|
end
|
59
39
|
end
|
data/lib/souls/cli/init/index.rb
CHANGED
@@ -13,6 +13,7 @@ module Souls
|
|
13
13
|
mother_config_init(app_name: app_name)
|
14
14
|
download_github_actions(app_name: app_name)
|
15
15
|
initial_config_init(app_name: app_name, service_name: service_name)
|
16
|
+
system("cd #{app_name} && souls add_submodule")
|
16
17
|
souls_api_credit(app_name: app_name, service_name: service_name)
|
17
18
|
end
|
18
19
|
|
@@ -113,6 +114,34 @@ module Souls
|
|
113
114
|
puts(e)
|
114
115
|
end
|
115
116
|
|
117
|
+
def get_latest_gem(app_name)
|
118
|
+
file_path = "./#{app_name}/Gemfile"
|
119
|
+
File.open(file_path, "w") do |f|
|
120
|
+
f.write(<<~TEXT)
|
121
|
+
source "https://rubygems.org"
|
122
|
+
|
123
|
+
gem "activesupport", "6.1.4.1"
|
124
|
+
gem "foreman", "0.87.2"
|
125
|
+
gem "google-cloud-pubsub", "2.8.1"
|
126
|
+
gem "paint", "2.2.1"
|
127
|
+
gem "parser", "3.0.2.0"
|
128
|
+
gem "pg", "1.2.3"
|
129
|
+
gem "rake", "13.0.6"
|
130
|
+
gem "rspec", "3.10.0"
|
131
|
+
gem "rubocop", "1.21.0"
|
132
|
+
gem "sinatra-activerecord", "2.0.23"
|
133
|
+
gem "solargraph", "0.43.2"
|
134
|
+
gem "souls", "#{Souls::VERSION}"
|
135
|
+
gem "steep", "0.46.0"
|
136
|
+
gem "thor", "1.1.0"
|
137
|
+
gem "tty-prompt", "0.23.1"
|
138
|
+
gem "whirly", "0.3.0"
|
139
|
+
TEXT
|
140
|
+
end
|
141
|
+
rescue StandardError => e
|
142
|
+
puts(e)
|
143
|
+
end
|
144
|
+
|
116
145
|
def download_souls(app_name: "souls", service_name: "api")
|
117
146
|
version = Souls.get_latest_version_txt(service_name: service_name).join(".")
|
118
147
|
file_name = "#{service_name}-v#{version}.tgz"
|
@@ -128,12 +157,14 @@ module Souls
|
|
128
157
|
system("tar -zxvf ./#{sig_name} -C #{app_name}")
|
129
158
|
|
130
159
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/.rubocop.yml")
|
131
|
-
|
160
|
+
get_latest_gem(app_name)
|
132
161
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile.dev")
|
133
162
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile")
|
134
163
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Steepfile")
|
164
|
+
system("cd #{app_name} && git init")
|
135
165
|
system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/gitignore")
|
136
166
|
system("cd #{app_name} && mv gitignore .gitignore")
|
167
|
+
system("cd #{app_name} && bundle")
|
137
168
|
FileUtils.rm(sig_name)
|
138
169
|
end
|
139
170
|
|
@@ -163,8 +194,6 @@ module Souls
|
|
163
194
|
endroll = <<~TEXT
|
164
195
|
Easy to Run
|
165
196
|
$ cd #{app_name}
|
166
|
-
$ bundle
|
167
|
-
$ souls add_submodule
|
168
197
|
$ souls check
|
169
198
|
$ cd apps/api && souls s
|
170
199
|
Go To : http://localhost:4000
|
@@ -14,7 +14,7 @@ module Souls
|
|
14
14
|
|
15
15
|
def update_gem
|
16
16
|
file_path = "./Gemfile"
|
17
|
-
tmp_file = "./
|
17
|
+
tmp_file = "./config/Gemfile"
|
18
18
|
new_gems = gemfile_latest_version
|
19
19
|
logs = []
|
20
20
|
message = Paint["\nAlready Up to date!", :green]
|
@@ -70,7 +70,7 @@ module Souls
|
|
70
70
|
end
|
71
71
|
FileUtils.rm("./Gemfile")
|
72
72
|
FileUtils.rm("./Gemfile.lock")
|
73
|
-
FileUtils.mv("./
|
73
|
+
FileUtils.mv("./config/Gemfile", "./Gemfile")
|
74
74
|
system("bundle update")
|
75
75
|
success = Paint["\n\nSuccessfully Updated These Gems!\n", :green]
|
76
76
|
puts(success)
|
data/lib/souls/utils/index.rb
CHANGED
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.37.3
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.37.3
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: souls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.58.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- POPPIN-FUMI
|
8
8
|
- KishiTheMechanic
|
9
9
|
- James Neve
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-09-
|
13
|
+
date: 2021-09-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -200,7 +200,7 @@ metadata:
|
|
200
200
|
homepage_uri: https://souls.elsoul.nl
|
201
201
|
source_code_uri: https://github.com/elsoul/souls
|
202
202
|
changelog_uri: https://github.com/elsoul/souls
|
203
|
-
post_install_message:
|
203
|
+
post_install_message:
|
204
204
|
rdoc_options: []
|
205
205
|
require_paths:
|
206
206
|
- lib
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
218
|
rubygems_version: 3.2.22
|
219
|
-
signing_key:
|
219
|
+
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: SOULs はサーバーレスフルスタックフレームワークです。柔軟な Ruby GraphQL API と Worker はルーティングの必要がありません。
|
222
222
|
クラウド環境への自動デプロイ、CI/CD ワークフローを標準装備。開発者がビジネスロジックに集中し、楽しくコードが書けるような環境を目指しています。
|