souls 1.21.0 → 1.21.4

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: e639aa175360aa6f57910310bbc58207ad3bc09cf206553691e3f083fdeb38d1
4
- data.tar.gz: e9cc51c8898575c7770075953e1b2b96252f22cfb66c5bc15b3d88d0b5d49fa0
3
+ metadata.gz: b7b2f32c521176dadc7f3a709c93860b002e619abb7fc6453c8c5a91c0a93fa3
4
+ data.tar.gz: 87db4e9357f1eff27234ee063e886bfc8ffc1814d155a3bceb820192561403d9
5
5
  SHA512:
6
- metadata.gz: 401cb1d21baff127d966965e55e0ee748e6641353697adfb34076e2872fa5044a9aaf0bb04d774870839323f1f09fccdf83aa8cd8c74847a37f43da17ad51d1d
7
- data.tar.gz: 166a6df0a30dc04fe2daa0de866bef1b8fdfa30eafb2ef93d0f387ac2c13d53616ea03b005392ac142a2a75953f11301df68af0d497a5f7595a2595487516923
6
+ metadata.gz: 51e12c13ee2e81d8b0537318be10fd7feb72f001a94e01bdb32535f6b882dff4e3a65e2252fb61a567fa56a1f9cb1238de35fca8d0a15d492f7e35aca60e5a67
7
+ data.tar.gz: 9877d64d9578cb267fd61048762b037fc42a9a6e2100d46fa4dcda2e87644659cd9aff9b8378ea857252a9b111ea95aff36a35f4b32946011bb663f5f0b3b1b5
@@ -27,9 +27,9 @@ module SOULs
27
27
  raise(Pundit::NotAuthorizedError, "permission error!") unless permission
28
28
  end
29
29
 
30
- def souls_fb_auth(token:)
30
+ def souls_fb_auth(token: "")
31
31
  FirebaseIdToken::Certificates.request!
32
- sleep(3) if ENV["RACK_ENV"] == "development"
32
+ sleep(3)
33
33
  user = FirebaseIdToken::Signature.verify(token)
34
34
  raise(ArgumentError, "Invalid or Missing Token") if user.blank?
35
35
 
@@ -1,3 +1,4 @@
1
1
  FirebaseIdToken.configure do |config|
2
2
  config.project_ids = [ENV["SOULS_GCP_PROJECT_ID"]]
3
+ config.redis = Redis.new
3
4
  end
@@ -21,6 +21,7 @@ module SOULs
21
21
  steepfile(worker_name:)
22
22
  souls_helper_rbs(worker_name:)
23
23
  system("cd #{file_dir} && bundle")
24
+ system("cd #{file_dir} && mv .env.sample .env")
24
25
  souls_worker_credit(worker_name:)
25
26
  end
26
27
  true
@@ -137,10 +138,10 @@ end
137
138
 
138
139
  steps:
139
140
  - uses: actions/checkout@v2
140
- - name: Set up Ruby 3.0
141
+ - name: Set up Ruby 3.1
141
142
  uses: ruby/setup-ruby@v1
142
143
  with:
143
- ruby-version: "3.0"
144
+ ruby-version: 3.1
144
145
 
145
146
  - name: Checkout the repository
146
147
  uses: actions/checkout@v2
@@ -201,7 +202,7 @@ end
201
202
  --set-env-vars="SOULS_DB_HOST=${{ secrets.SOULS_DB_HOST }}" \\
202
203
  --set-env-vars="TZ=${{ secrets.TZ }}" \\
203
204
  --set-env-vars="SOULS_SECRET_KEY_BASE=${{ secrets.SOULS_SECRET_KEY_BASE }}" \\
204
- --set-env-vars="SOULS_PROJECT_ID=${{ secrets.SOULS_GCP_PROJECT_ID }}"
205
+ --set-env-vars="SOULS_GCP_PROJECT_ID=${{ secrets.SOULS_GCP_PROJECT_ID }}"
205
206
  TEXT
206
207
  end
207
208
  SOULs::Painter.create_file(file_path.to_s)
@@ -62,6 +62,7 @@ module SOULs
62
62
  file_path = ".env"
63
63
  File.open(file_path, "w") do |line|
64
64
  line.write(<<~TEXT)
65
+ RUBY_YJIT_ENABLE=1
65
66
  GOOGLE_AUTH_SUPPRESS_CREDENTIALS_WARNINGS=1
66
67
  SOULS_DB_HOST=#{instance_ip}
67
68
  SOULS_DB_PW=#{db_password}
@@ -77,6 +78,7 @@ module SOULs
77
78
  file_path = ".env.production"
78
79
  File.open(file_path, "w") do |line|
79
80
  line.write(<<~TEXT)
81
+ RUBY_YJIT_ENABLE=1
80
82
  SOULS_DB_HOST="/cloudsql/#{project_id}:#{region}:#{instance_name}"
81
83
  SOULS_DB_PW=#{db_password}
82
84
  SOULS_DB_USER=postgres
@@ -13,13 +13,17 @@ module SOULs
13
13
  exit
14
14
  end
15
15
  file_dir = "./#{app_name}"
16
- raise(StandardError, "Directory already exists and is not empty") if Dir.exist?(file_dir) && !Dir.empty?(file_dir)
16
+ if Dir.exist?(file_dir) && !Dir.empty?(file_dir)
17
+ SOULs::Painter.error("Directory already exists and is not empty")
18
+ return
19
+ end
17
20
 
18
21
  service_name = "api"
19
22
  download_souls(app_name:, service_name:)
20
23
  mother_config_init(app_name:)
21
24
  download_github_actions(app_name:)
22
25
  initial_config_init(app_name:, service_name:)
26
+ system("cd #{app_name}/apps/api && mv .env.sample .env")
23
27
  system("cd #{app_name} && git init --initial-branch=main")
24
28
 
25
29
  system(" cd #{app_name} && rbs collection init && rbs collection install ")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module SOULs
2
- VERSION = "1.21.0".freeze
2
+ VERSION = "1.21.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.21.0
1
+ 1.21.4
@@ -1 +1 @@
1
- 1.21.0
1
+ 1.21.4
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.21.0
4
+ version: 1.21.4
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-17 00:00:00.000000000 Z
13
+ date: 2022-01-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport