souls 1.15.1 → 1.15.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/souls/cli/create/index.rb +1 -1
- data/lib/souls/cli/delete/connection.rb +1 -1
- data/lib/souls/cli/delete/edge_rbs.rb +1 -1
- data/lib/souls/cli/gcloud/iam/index.rb +2 -1
- data/lib/souls/cli/gcloud/index.rb +2 -0
- data/lib/souls/cli/generate/rspec_query.rb +4 -6
- data/lib/souls/cli/init/index.rb +5 -10
- data/lib/souls/cli/upgrade/gemfile.rb +4 -4
- 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: 12a593050a6b6c1391aab8a44b683fa111a2cc678282b9c1c50c7ef64a760f57
|
4
|
+
data.tar.gz: 8aefcd4ae91e63e57d6ee53db421d0fdbc2ac3433d0044e9781e7bf6b99ebb49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e435137e14c0bee0d4740a915e777bb5a3291f829dd4dffa3185fc2fc990064fe195fd1eeb0af970aff59892445fa1fb5dd6d6c830a7840203bae0b10d32e439
|
7
|
+
data.tar.gz: 7aa3ffef5c90f4e5334a1aea4dd14f4a1d784648520c4ea566fd88dbabf5f380d07a34a19cd9ae3c526486e6e5c1b7b9070f1db5e4c450eb64f9411c82b678f0
|
@@ -6,7 +6,7 @@ module Souls
|
|
6
6
|
singularized_class_name = class_name.underscore.singularize
|
7
7
|
file_path = "#{file_dir}#{singularized_class_name}_connection.rb"
|
8
8
|
FileUtils.rm_f(file_path)
|
9
|
-
|
9
|
+
Souls::Painter.delete_file(file_path)
|
10
10
|
file_path
|
11
11
|
end
|
12
12
|
end
|
@@ -7,7 +7,7 @@ module Souls
|
|
7
7
|
singularized_class_name = class_name.underscore.singularize
|
8
8
|
file_path = "#{file_dir}#{singularized_class_name}_edge.rbs"
|
9
9
|
FileUtils.rm_f(file_path)
|
10
|
-
|
10
|
+
Souls::Painter.delete_file(file_path)
|
11
11
|
file_path
|
12
12
|
end
|
13
13
|
end
|
@@ -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
|
@@ -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(
|
155
|
+
new_line.write(" \"#{name.camelize(:lower)}\" => be_all(#{field}),\n")
|
156
156
|
else
|
157
|
-
new_line.write(" \"#{name.camelize(:lower)}\" => be_a(
|
157
|
+
new_line.write(" \"#{name.camelize(:lower)}\" => be_a(#{field}),\n")
|
158
158
|
end
|
159
159
|
when "boolean"
|
160
|
-
new_line.write(" \"#{name.
|
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
|
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
|
|
@@ -78,7 +73,7 @@ module Souls
|
|
78
73
|
config.region = "asia-northeast1"
|
79
74
|
config.endpoint = "/endpoint"
|
80
75
|
config.strain = "api"
|
81
|
-
config.fixed_gems = ["spring"]
|
76
|
+
config.fixed_gems = ["spring", "grpc"]
|
82
77
|
config.workers = []
|
83
78
|
end
|
84
79
|
TEXT
|
@@ -126,7 +121,7 @@ module Souls
|
|
126
121
|
f.write(<<~TEXT)
|
127
122
|
source "https://rubygems.org"
|
128
123
|
|
129
|
-
gem "activesupport", "
|
124
|
+
gem "activesupport", "7.0.0"
|
130
125
|
gem "foreman", "0.87.2"
|
131
126
|
gem "google-cloud-pubsub", "2.9.0"
|
132
127
|
gem "paint", "2.2.1"
|
@@ -134,11 +129,11 @@ module Souls
|
|
134
129
|
gem "pg", "1.2.3"
|
135
130
|
gem "rake", "13.0.6"
|
136
131
|
gem "rspec", "3.10.0"
|
137
|
-
gem "rubocop", "1.
|
132
|
+
gem "rubocop", "1.24.1"
|
138
133
|
gem "sinatra-activerecord", "2.0.25"
|
139
134
|
gem "solargraph", "0.44.0"
|
140
135
|
#{souls_gem}
|
141
|
-
gem "steep", "0.
|
136
|
+
gem "steep", "0.47.0"
|
142
137
|
gem "thor", "1.1.0"
|
143
138
|
gem "tty-prompt", "0.23.1"
|
144
139
|
gem "whirly", "0.3.0"
|
@@ -17,8 +17,8 @@ module Souls
|
|
17
17
|
tmp_file = "./config/Gemfile"
|
18
18
|
new_gems = gemfile_latest_version
|
19
19
|
logs = []
|
20
|
-
message =
|
21
|
-
return "Already Up to date!" &&
|
20
|
+
message = "Already Up to date!"
|
21
|
+
return "Already Up to date!" && Souls::Painter.warning(message) if new_gems[:gems].blank?
|
22
22
|
|
23
23
|
@i = 0
|
24
24
|
File.open(file_path, "r") do |f|
|
@@ -72,8 +72,7 @@ module Souls
|
|
72
72
|
FileUtils.rm("./Gemfile.lock")
|
73
73
|
FileUtils.mv("./config/Gemfile", "./Gemfile")
|
74
74
|
system("bundle update")
|
75
|
-
success
|
76
|
-
puts(success)
|
75
|
+
Souls::Painter.success("\n\nSuccessfully Updated These Gems!\n")
|
77
76
|
logs.each do |line|
|
78
77
|
puts(line)
|
79
78
|
end
|
@@ -89,6 +88,7 @@ module Souls
|
|
89
88
|
f.each_line do |line|
|
90
89
|
from_dev = true if line.include?("group")
|
91
90
|
next unless line.include?("gem ")
|
91
|
+
next if line.include?("require: ")
|
92
92
|
|
93
93
|
gem = line.gsub("gem ", "").gsub("\"", "").gsub("\n", "").gsub(" ", "").split(",")
|
94
94
|
url = URI("https://rubygems.org/api/v1/versions/#{gem[0]}/latest.json")
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.15.
|
1
|
+
1.15.5
|
@@ -1 +1 @@
|
|
1
|
-
1.15.
|
1
|
+
1.15.5
|
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.15.
|
4
|
+
version: 1.15.5
|
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:
|
13
|
+
date: 2022-01-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|