souls 1.20.13 → 1.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19d1e3315776d2ef59dcb09b40ed89d0441b305a39e3c708fe49aa26c2641493
4
- data.tar.gz: 45f6aa63a95c14bd9401682498acdcff93959ddab79ec007ab3e037df8b09fc4
3
+ metadata.gz: 7e4b05101d56497776fb0800fdd6a1d2ef38ae0eec89786be0c7345677a2feed
4
+ data.tar.gz: 6a84090900f1976f504191ce67b6db8297cb0ad7c89997c600e290f6a548ca32
5
5
  SHA512:
6
- metadata.gz: c432b5d8200137c1b37ef9e38e4c4196a654286d92eb34348bfc639144fc680702007c38d0a27917c1d1cc4c59425a37e1bf4f443fe93625eafe452f5db2a589
7
- data.tar.gz: 1b04e1898f616fdd1d1d84bd3807a0693b7506d1f8013c9dc1b5d98261d8c7912e3a639176ff66a08a7c09c3287716a93297091fdc0ea16d61f5c0e9e2456eaf
6
+ metadata.gz: 1e04380b8016a1a4f6516dd78ecf3d1c2e25bf9c669760d803beb88198f35f0294f501d548d0186826148a84b2669a9fb813f8ae334e606f370aa6d265b87e21
7
+ data.tar.gz: dd5b18807f825a354be605b9db181d5654f060355706af5be9dc407af399a9bc4b93bef5f74365a84101b0b3a11f2cd1a1cb45513130e6962ce5ca0be705afdf
@@ -1,6 +1,6 @@
1
1
  module SOULs
2
2
  class SOULsMutation < GraphQL::Schema::RelayClassicMutation
3
- def post(url:, payload: {}, content_type: "application/json")
3
+ def souls_post(url:, payload: {}, content_type: "application/json")
4
4
  response = Faraday.post(url, payload.to_json, "Content-Type": content_type)
5
5
  response.body
6
6
  end
@@ -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
 
@@ -5,12 +5,12 @@ module SOULs
5
5
  attr_accessor :schedule
6
6
  end
7
7
 
8
- def post(url:, payload: {}, content_type: "application/json")
8
+ def souls_post(url:, payload: {}, content_type: "application/json")
9
9
  response = Faraday.post(url, payload.to_json, "Content-Type": content_type)
10
10
  response.body
11
11
  end
12
12
 
13
- def check_user_permissions(user, obj, method)
13
+ def souls_check_user_permissions(user, obj, method)
14
14
  raise(StandardError, "Invalid or Missing Token") unless user
15
15
 
16
16
  policy_class = obj.class.name + "Policy"
@@ -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} && 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.20.13".freeze
2
+ VERSION = "1.21.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.20.13
1
+ 1.21.3
@@ -1 +1 @@
1
- 1.20.13
1
+ 1.21.3
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.20.13
4
+ version: 1.21.3
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