souls 0.38.1 → 0.38.5

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: 1ecd3c1ff3fea63551eac2dffc02d5c87e836a7d9bd05d1c909240eecc5ca514
4
- data.tar.gz: c78a8c86252bd6698d4f1133372b7c6bb007ae07a1eca39903869b5cea09365f
3
+ metadata.gz: 57e0cfc8aff16ebc5d9fd873249ce97234b93abe6f95705841fc24cd8cbf7a95
4
+ data.tar.gz: 86e60dbfea5ec5b8fba12b9e6cac9818420f7648253681d94cb46e6b64da84cb
5
5
  SHA512:
6
- metadata.gz: 7bf97f23b98639ce40cdc0dc886fb47e8ce65ae6ba4236243f38211b4b4d5a06da8c5de63f36c3090b843ca448267b4dc189d5faf2b7ce08ba5242e3f2a13af3
7
- data.tar.gz: 77608557255ab48e8a89f8267709fcdd7f3d7e4c7b4274203fc7a92943fbefed424fcbb8edfdf18a339e9fc0ca87b1d0c644fbcedd59e52106414c8a55265b33
6
+ metadata.gz: 52fa18a4e2d590e1970436d7bb0c96cadf6f814aba9eff998408491431fb94dc7fe5037b4fb281ddbc79b0d6d256ba2c1e1040a8c1fd9879fee075b66c727958
7
+ data.tar.gz: cb59910b2cd27a5866c17a061f5621e9406bf4672cf4f53badda89d46516db6b98d6e76d7bab7f53c6cc2a363c29771561955d9625be1d1b87553d15b4ba12ec
@@ -122,7 +122,7 @@ end
122
122
  RACK_ENV: test
123
123
  run: |
124
124
  sudo apt-get -yqq install libpq-dev
125
- cd apps/worker
125
+ cd apps/#{worker_name}
126
126
  gem install bundler
127
127
  bundle install --jobs 4 --retry 3
128
128
  bundle exec rake db:create RACK_ENV=test
@@ -62,7 +62,7 @@ module Souls
62
62
  app_name = Souls.configuration.app if app_name.blank?
63
63
  system(
64
64
  "gcloud compute routers nats create #{app_name}-worker-nat \
65
- --router=#{app_name}-router \
65
+ --router=#{app_name}-connector \
66
66
  --region=#{region} \
67
67
  --nat-custom-subnet-ip-ranges=#{app_name}-subnet \
68
68
  --nat-external-ip-pool=#{app_name}-worker-ip"
@@ -100,8 +100,8 @@ module Souls
100
100
  Edit `.github/workflow/worker.yml`
101
101
 
102
102
  Add these 2 options in `- name: Deploy to Cloud Run` step
103
- --vpc-connector=#{app_name}-connector \
104
- --vpc-egress=all \
103
+ \n--vpc-connector=#{app_name}-connector \
104
+ \n--vpc-egress=all \
105
105
 
106
106
  TEXT
107
107
  cd = Paint[endroll, :white]
@@ -12,12 +12,12 @@ module Souls
12
12
 
13
13
  def cp_and_dl_files(dir: "db")
14
14
  require("#{Souls.get_mother_path}/config/souls")
15
- worker_paths = Souls.configuration.workers
15
+ worker_paths = Souls.configuration.workers.map { |n| n[:name] }
16
16
  worker_paths.each do |path|
17
17
  cp_path = "./apps/api/#{dir}"
18
18
  old_path = "./apps/#{path}/#{dir}"
19
- FileUtils.rm_rf(old_path) if Dir.exist?(old_path)
20
- FileUtils.mkdir(old_path) unless Dir.exist?(old_path)
19
+ system("rm -rf #{old_path}", chdir: Souls.get_mother_path)
20
+ system("mkdir -p #{old_path}", chdir: Souls.get_mother_path)
21
21
  system("cp -r #{cp_path}/* #{old_path}", chdir: Souls.get_mother_path)
22
22
  end
23
23
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.38.1".freeze
2
+ VERSION = "0.38.5".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.17.1
1
+ 0.17.5
@@ -1 +1 @@
1
- 0.17.1
1
+ 0.17.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: 0.38.1
4
+ version: 0.38.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI