souls 0.58.2 → 0.58.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/api/generate/mutation_rbs.rb +4 -0
- data/lib/souls/api/generate/resolver_rbs.rb +4 -24
- data/lib/souls/cli/upgrade/gemfile.rb +2 -2
- 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
|
@@ -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
|
@@ -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/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.37.
|
1
|
+
0.37.3
|
@@ -1 +1 @@
|
|
1
|
-
0.37.
|
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.58.
|
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 ワークフローを標準装備。開発者がビジネスロジックに集中し、楽しくコードが書けるような環境を目指しています。
|