souls 1.21.1 → 1.21.5

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: 3a89158c6e9fd0e559f441dda8eba11f2cc1462ab98207485f2fe55f0accf1ad
4
- data.tar.gz: ab20ea92d14380afdd1d4bdce5b5b9348e31fd385a47a941a2d3a3852ec7aa5a
3
+ metadata.gz: da74fd1f249bf93d37466e7871c56fd5f13a287bfa37a84f74b01130f9e354a9
4
+ data.tar.gz: 1b12042fb2aff0c9db27d243c0394c41627a0142c9c9b47f263674429966f6f3
5
5
  SHA512:
6
- metadata.gz: 55683cfe2682abcf038f3b661e91fc7a6371ed423ce7e40be53fcb045bc00b14b1b4ed8b8f12481bd1c4be2a29aa8cc96b4124abf0058221d429d011cedc21a2
7
- data.tar.gz: 5f98b5668e7e29d641c79db082a14d4fc13b0d8732898078e85f14ce4731d060285a74339391238e23877fde9c308e9151ecf817d372ef82de1e2f16f580fb2d
6
+ metadata.gz: 95c4ed5426ae611ae9c09f710dc86051b78b30db59468a94ef7b4874906551f8c085eda316942f6f3b666f10429da092e5275817276abb8e32923469ab1f0303
7
+ data.tar.gz: 917901a03e337ac0e74ba5f6c8b06f0539da11a257cc05c134d8cc2fce6d39bfdf0cbbcc90c71664158c236e4854a133663a5e037fd17f5fd469e5022999bfeb
@@ -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
@@ -140,28 +141,31 @@ end
140
141
  - name: Set up Ruby 3.1
141
142
  uses: ruby/setup-ruby@v1
142
143
  with:
144
+ bundler-cache: true
143
145
  ruby-version: 3.1
144
146
 
145
147
  - name: Checkout the repository
146
148
  uses: actions/checkout@v2
147
149
 
148
- - name: GCP Authenticate
149
- uses: google-github-actions/setup-gcloud@master
150
+ - id: auth
151
+ uses: google-github-actions/auth@v0
150
152
  with:
151
- version: "323.0.0"
152
- project_id: ${{ secrets.SOULS_GCP_PROJECT_ID }}
153
- service_account_key: ${{ secrets.SOULS_GCP_SA_KEY }}
154
- export_default_credentials: true
153
+ credentials_json: ${{ secrets.SOULS_GCP_SA_KEY }}
154
+
155
+ - name: Set up Cloud SDK
156
+ uses: google-github-actions/setup-gcloud@v0
155
157
 
156
158
  - name: Build and test with Rake
157
159
  env:
158
160
  PGHOST: 127.0.0.1
159
161
  PGUSER: postgres
160
162
  RACK_ENV: test
163
+ RUBY_YJIT_ENABLE: 1
161
164
  SOULS_GCP_PROJECT_ID: ${{ secrets.SOULS_GCP_PROJECT_ID }}
162
165
  run: |
163
166
  sudo apt-get -yqq install libpq-dev
164
167
  cd apps/#{worker_name}
168
+ rm .env
165
169
  gem install bundler
166
170
  bundle install --jobs 4 --retry 3
167
171
  bundle exec rake db:create RACK_ENV=test
@@ -201,7 +205,8 @@ end
201
205
  --set-env-vars="SOULS_DB_HOST=${{ secrets.SOULS_DB_HOST }}" \\
202
206
  --set-env-vars="TZ=${{ secrets.TZ }}" \\
203
207
  --set-env-vars="SOULS_SECRET_KEY_BASE=${{ secrets.SOULS_SECRET_KEY_BASE }}" \\
204
- --set-env-vars="SOULS_PROJECT_ID=${{ secrets.SOULS_GCP_PROJECT_ID }}"
208
+ --set-env-vars="SOULS_GCP_PROJECT_ID=${{ secrets.SOULS_GCP_PROJECT_ID }}" \\
209
+ --set-env-vars="RUBY_YJIT_ENABLE=1"
205
210
  TEXT
206
211
  end
207
212
  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.1".freeze
2
+ VERSION = "1.21.5".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.21.1
1
+ 1.21.5
@@ -1 +1 @@
1
- 1.21.1
1
+ 1.21.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.21.1
4
+ version: 1.21.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: 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