souls 0.32.11 → 0.32.15

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: 8eebcd047ff5c9e2a70570fde67c7ef82d8fe8452ec22a69d66ec1decb2f2643
4
- data.tar.gz: ff1965d1a71cb53e748703571bfb6e255d2b79df844f07c30e7ec30ecf9e100d
3
+ metadata.gz: 42790d633f21b5a6ef881c214e3ed3a1e231ec7ff3649912633ba9584b5068ce
4
+ data.tar.gz: e98bad2e1ccdaf67fdcb501929410176fccbf10a7905f8aab6d18e0f9f673c36
5
5
  SHA512:
6
- metadata.gz: d2d406b7b7ff98096ed39cb6a0d427b0f5c4272a030ac5b87fd5e70919dee9fa11471e740904800781e6f1c0e53e0082df9e29c695171c96368b62e8321891f4
7
- data.tar.gz: 1464af7e0d66f8004a3d9d1df3853ca8f3d5e0c3e48e3352801b3930b83580c1db2a7f2aa2d579cfb7008482ed55a217042bf828c5d76e5e0ec0ab80ae8fa9ac
6
+ metadata.gz: f4b248cf180be312dfe9e8dcf9a1f0b1e2bdb11d4287aa3fbbb84fa7dd515c66160d42bd7dd73e5c6e914833331e8af7bc110952dc333bd690721d419ebcd1c2
7
+ data.tar.gz: 81bdb2f2d87808c3bf17a73fe43e5e07d5e29967fad84b3f54219644441500af9451b39747fdf3fbd4901759d8e846d544eeba33b05b5528e08f581647e7579a
@@ -8,8 +8,8 @@ module Souls
8
8
  service_account: "",
9
9
  endpoint: "https:://test.com"
10
10
  )
11
- service_account = Souls.configuration.app if service_account.blank?
12
11
  project_id = Souls.configuration.project_id if project_id.blank?
12
+ service_account = "#{Souls.configuration.app}@#{project_id}.iam.gserviceaccount.com" if service_account.blank?
13
13
  system(
14
14
  "gcloud pubsub subscriptions create #{topic_name}-sub \
15
15
  --topic #{topic_name} \
@@ -50,11 +50,19 @@ module Souls
50
50
  if api_latest_date < worker_latest_date
51
51
  FileUtils.rm_rf(api_dir) if Dir.exist?(api_dir)
52
52
  FileUtils.mkdir(api_dir) unless Dir.exist?(api_dir)
53
- system("cp -r #{worker_dir}/* #{api_dir}")
53
+ if api_dir.include?("database.yml")
54
+ system("cp #{worker_dir} #{api_dir}")
55
+ else
56
+ system("cp -r #{worker_dir}/* #{api_dir}")
57
+ end
54
58
  else
55
59
  FileUtils.rm_rf(worker_dir) if Dir.exist?(worker_dir)
56
60
  FileUtils.mkdir(worker_dir) unless Dir.exist?(worker_dir)
57
- system("cp -r #{api_dir}/* #{worker_dir}")
61
+ if api_dir.include?("database.yml")
62
+ system("cp #{api_dir} #{worker_dir}")
63
+ else
64
+ system("cp -r #{api_dir}/* #{worker_dir}")
65
+ end
58
66
  end
59
67
  end
60
68
 
@@ -79,6 +87,10 @@ module Souls
79
87
  {
80
88
  api: "#{api_path}/spec/factories",
81
89
  worker: "#{worker_path}/spec/factories"
90
+ },
91
+ {
92
+ api: "#{api_path}/config/database.yml",
93
+ worker: "#{worker_path}/config/database.yml"
82
94
  }
83
95
  ]
84
96
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.32.11".freeze
2
+ VERSION = "0.32.15".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.11.11
1
+ 0.11.15
@@ -1 +1 @@
1
- 0.11.11
1
+ 0.11.15
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.32.11
4
+ version: 0.32.15
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: 2021-08-23 00:00:00.000000000 Z
13
+ date: 2021-08-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport