souls 1.21.10 → 1.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 182f9d4646667b3f0f4c8898eeda83bad785121e60f3cd61884423b5dc49c6ff
4
- data.tar.gz: 2e008b33b65c65fe03dedadea27585eed4cfe7ed44c4c29947c71eac4c7e0e8a
3
+ metadata.gz: e488c771723eb66d4b9de21015bb16a09e0bf3ba4498b82567f1ece92c752ede
4
+ data.tar.gz: 84d6225add9aedcdc34c5a107fdcc637e42d345c7492204b777b840638400eb0
5
5
  SHA512:
6
- metadata.gz: 542150eb3f93979798f4933f70c7b743c57d24f88f2a71ae7a52a0dcf3158758d5400f879bd3ab2b3ff283e9357cf62cf2ecc4a12890e8bb89d4ec342ca06284
7
- data.tar.gz: d2bc75fa2d3b5f9fd988182f9e2e43d5ac24d9d10e18c95169389f7b9ff090d32f516eef1ed3364f23bac494ab8c6d6246b23545fb997920bf832c244c80982c
6
+ metadata.gz: 9a7963ed66a2e554f0ce697536c25a2497d4b934b2d740b3d3717ee281210121de7d1056a6de94874ad920f0f80a59bab89485707aab00ff884f9b53dc6ca2ef
7
+ data.tar.gz: 572c355891e7e888af258a9677473622c9afb6eec87b49acf069828723a8c24ba9eca1f309db94c7ecb42ae26b983fa34837583f881deac90a2864424e3b1b04
@@ -28,11 +28,16 @@ module SOULs
28
28
  end
29
29
 
30
30
  def souls_fb_auth(token: "")
31
+ raise(ArgumentError, "Invalid or Missing Token") if token.blank?
32
+
31
33
  FirebaseIdToken::Certificates.request!
32
- sleep(3)
33
34
  user = FirebaseIdToken::Signature.verify(token)
34
- raise(ArgumentError, "Invalid or Missing Token") if user.blank?
35
-
35
+ if user.blank?
36
+ Retryable.retryable(tries: 20, on: ArgumentError) do
37
+ user = FirebaseIdToken::Signature.verify(token)
38
+ raise(ArgumentError, "Invalid or Missing Token") if user.blank?
39
+ end
40
+ end
36
41
  user
37
42
  end
38
43
 
@@ -15,7 +15,7 @@ module SOULs
15
15
  url = SOULs::CloudRun.new.get_endpoint(service)
16
16
  system(
17
17
  "gcloud scheduler jobs create http #{app_name}-awake \
18
- --schedule '#{cron}' --uri #{url} --project=#{project_id} --http-method GET"
18
+ --schedule '#{cron}' --uri '#{url}' --project=#{project_id} --http-method GET"
19
19
  )
20
20
  end
21
21
 
@@ -25,7 +25,6 @@ module SOULs
25
25
  initial_config_init(app_name:, service_name:)
26
26
  system("cd #{app_name}/apps/api && mv .env.sample .env")
27
27
  system("cd #{app_name} && git init --initial-branch=main")
28
-
29
28
  system(" cd #{app_name} && rbs collection init && rbs collection install ")
30
29
  souls_api_credit(app_name)
31
30
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "1.21.10".freeze
2
+ VERSION = "1.23.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.21.10
1
+ 1.23.0
@@ -1 +1 @@
1
- 1.21.10
1
+ 1.23.0
data/lib/souls.rb CHANGED
@@ -9,6 +9,7 @@ require "whirly"
9
9
  require "tty-prompt"
10
10
  require "thor"
11
11
  require "resolv"
12
+ require "retryable"
12
13
  require "google/cloud/pubsub"
13
14
 
14
15
  module SOULs
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: 1.21.10
4
+ version: 1.23.0
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: 2022-01-19 00:00:00.000000000 Z
13
+ date: 2022-03-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 7.0.1
21
+ version: 7.0.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 7.0.1
28
+ version: 7.0.2.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: foreman
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -72,16 +72,16 @@ dependencies:
72
72
  name: graphql
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - "<="
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: 1.13.2
77
+ version: 2.0.2
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - "<="
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: 1.13.2
84
+ version: 2.0.2
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: paint
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -138,20 +138,34 @@ dependencies:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: 2.8.3
141
+ - !ruby/object:Gem::Dependency
142
+ name: retryable
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 3.0.5
148
+ type: :runtime
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 3.0.5
141
155
  - !ruby/object:Gem::Dependency
142
156
  name: thor
143
157
  requirement: !ruby/object:Gem::Requirement
144
158
  requirements:
145
159
  - - ">="
146
160
  - !ruby/object:Gem::Version
147
- version: 1.1.0
161
+ version: 1.2.1
148
162
  type: :runtime
149
163
  prerelease: false
150
164
  version_requirements: !ruby/object:Gem::Requirement
151
165
  requirements:
152
166
  - - ">="
153
167
  - !ruby/object:Gem::Version
154
- version: 1.1.0
168
+ version: 1.2.1
155
169
  description: |-
156
170
  Ruby Serverless Framework 'SOULs' | Ruby サーバーレスフレームワーク SOULs.
157
171
  Powered by Ruby GraphQL, RBS/Steep, Active Record, RSpec, RuboCop, and Google Cloud.
@@ -299,7 +313,7 @@ licenses:
299
313
  - Apache-2.0
300
314
  metadata:
301
315
  rubygems_mfa_required: 'true'
302
- post_install_message:
316
+ post_install_message:
303
317
  rdoc_options: []
304
318
  require_paths:
305
319
  - lib
@@ -314,8 +328,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
328
  - !ruby/object:Gem::Version
315
329
  version: '0'
316
330
  requirements: []
317
- rubygems_version: 3.3.3
318
- signing_key:
331
+ rubygems_version: 3.3.7
332
+ signing_key:
319
333
  specification_version: 4
320
334
  summary: Ruby Serverless Framework 'SOULs' | Ruby サーバーレスフレームワーク SOULs. Powered by
321
335
  Ruby GraphQL, RBS/Steep, Active Record, RSpec, RuboCop, and Google Cloud.