souls 1.19.7 → 1.20.1
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/functions.rb +3 -3
- data/lib/souls/cli/create/templates/{functions_env_yaml.rb → functions/functions_env_yaml.rb} +0 -0
- data/lib/souls/cli/create/templates/{go → functions/go}/function.rb +0 -0
- data/lib/souls/cli/create/templates/{go → functions/go}/go.rb +0 -0
- data/lib/souls/cli/create/templates/{nodejs → functions/nodejs}/index.rb +0 -0
- data/lib/souls/cli/create/templates/{nodejs → functions/nodejs}/package.rb +0 -0
- data/lib/souls/cli/create/templates/{python → functions/python}/main.rb +0 -0
- data/lib/souls/cli/create/templates/{python → functions/python}/requirements.rb +0 -0
- data/lib/souls/cli/create/templates/{ruby → functions/ruby}/app.rb +0 -0
- data/lib/souls/cli/create/templates/{ruby → functions/ruby}/gemfile.rb +0 -0
- data/lib/souls/cli/gcloud/functions/index.rb +13 -1
- data/lib/souls/cli/sync/pubsub.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 +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7abfda2bb67e15978fb6af67078942a8bb2eb568dfed04fe36fd5f3d6d88933f
|
4
|
+
data.tar.gz: 48e6d07e1a981f009e24b199a3ec03d512f8e94c620181cbf4c2791e8f8fe348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f961e6e69b3d6ac029f4c78e6bb4d85669770e330a82fd281df5f879fcdf968272ba5dbfe131249bd1a6300bfe44a7866b7156528efb36b0115095d72cde27
|
7
|
+
data.tar.gz: 3e220bf805647ceed5e20cb7c80a979d0d8a76e82dd012fc3aca93ebf5602e46cb3ca20a868461b3192409e31a6037b17a37d5228eff31c5b0ab6bde69c98dbb
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require_relative "./templates/functions_env_yaml"
|
1
|
+
require_relative "./templates/functions/functions_env_yaml"
|
2
2
|
|
3
|
-
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/*/*.rb"].map do |f|
|
3
|
+
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/functions/*/*.rb"].map do |f|
|
4
4
|
require f
|
5
5
|
end
|
6
6
|
|
@@ -62,7 +62,7 @@ module SOULs
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def get_runtime_create_method(runtime:)
|
65
|
-
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/#{runtime}/*"].map do |n|
|
65
|
+
Dir["#{SOULs::SOULS_PATH}/lib/souls/cli/create/templates/functions/#{runtime}/*"].map do |n|
|
66
66
|
n.split("/").last.gsub(".rb", "")
|
67
67
|
end
|
68
68
|
end
|
data/lib/souls/cli/create/templates/{functions_env_yaml.rb → functions/functions_env_yaml.rb}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,9 +11,21 @@ module SOULs
|
|
11
11
|
end
|
12
12
|
|
13
13
|
runtime = current_dir.match(/cf-(\D+\d+)-/)[1]
|
14
|
+
runtime_lang = current_dir.match(/^cf-(\D+)\d+-/)
|
15
|
+
entry_point =
|
16
|
+
case runtime_lang
|
17
|
+
when "nodejs"
|
18
|
+
current_dir.underscore.camelize(:lower)
|
19
|
+
when "python"
|
20
|
+
current_dir.underscore
|
21
|
+
when "go"
|
22
|
+
current_dir.underscore.camelize
|
23
|
+
else
|
24
|
+
current_dir
|
25
|
+
end
|
14
26
|
system(
|
15
27
|
"
|
16
|
-
gcloud functions deploy #{current_dir} --project=#{project_id} \
|
28
|
+
gcloud functions deploy #{current_dir} --entry-point='#{entry_point}' --project=#{project_id} \
|
17
29
|
--runtime #{runtime} --trigger-http --allow-unauthenticated --env-vars-file .env.yaml
|
18
30
|
"
|
19
31
|
)
|
@@ -36,7 +36,7 @@ module SOULs
|
|
36
36
|
souls_topics = topic_names.select { |n| n.include?("souls-#{worker_name}") }
|
37
37
|
|
38
38
|
souls_topics.each do |name|
|
39
|
-
file_name = name.
|
39
|
+
file_name = name.underscore
|
40
40
|
value = worker_file_names[file_name.to_sym] || 0
|
41
41
|
worker_file_names[file_name.to_sym] = value - 1
|
42
42
|
end
|
@@ -108,7 +108,7 @@ module SOULs
|
|
108
108
|
end
|
109
109
|
workers.delete("base_query")
|
110
110
|
workers.each do |file|
|
111
|
-
response[
|
111
|
+
response["souls_#{worker_name.underscore}_#{file}".to_sym] = 1
|
112
112
|
end
|
113
113
|
response
|
114
114
|
end
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.20.1
|
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.20.1
|
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.
|
4
|
+
version: 1.20.1
|
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: 2022-01-
|
13
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -190,15 +190,15 @@ files:
|
|
190
190
|
- lib/souls/cli/console/index.rb
|
191
191
|
- lib/souls/cli/create/functions.rb
|
192
192
|
- lib/souls/cli/create/index.rb
|
193
|
-
- lib/souls/cli/create/templates/functions_env_yaml.rb
|
194
|
-
- lib/souls/cli/create/templates/go/function.rb
|
195
|
-
- lib/souls/cli/create/templates/go/go.rb
|
196
|
-
- lib/souls/cli/create/templates/nodejs/index.rb
|
197
|
-
- lib/souls/cli/create/templates/nodejs/package.rb
|
198
|
-
- lib/souls/cli/create/templates/python/main.rb
|
199
|
-
- lib/souls/cli/create/templates/python/requirements.rb
|
200
|
-
- lib/souls/cli/create/templates/ruby/app.rb
|
201
|
-
- lib/souls/cli/create/templates/ruby/gemfile.rb
|
193
|
+
- lib/souls/cli/create/templates/functions/functions_env_yaml.rb
|
194
|
+
- lib/souls/cli/create/templates/functions/go/function.rb
|
195
|
+
- lib/souls/cli/create/templates/functions/go/go.rb
|
196
|
+
- lib/souls/cli/create/templates/functions/nodejs/index.rb
|
197
|
+
- lib/souls/cli/create/templates/functions/nodejs/package.rb
|
198
|
+
- lib/souls/cli/create/templates/functions/python/main.rb
|
199
|
+
- lib/souls/cli/create/templates/functions/python/requirements.rb
|
200
|
+
- lib/souls/cli/create/templates/functions/ruby/app.rb
|
201
|
+
- lib/souls/cli/create/templates/functions/ruby/gemfile.rb
|
202
202
|
- lib/souls/cli/db/create_migration.rb
|
203
203
|
- lib/souls/cli/db/create_migration_rbs.rb
|
204
204
|
- lib/souls/cli/db/index.rb
|