souls 0.32.15 → 0.32.16

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: 42790d633f21b5a6ef881c214e3ed3a1e231ec7ff3649912633ba9584b5068ce
4
- data.tar.gz: e98bad2e1ccdaf67fdcb501929410176fccbf10a7905f8aab6d18e0f9f673c36
3
+ metadata.gz: e86dba90f13e7a1e0edb98b6f952b2a3132cc71e044caca35b1da8e1c83e3914
4
+ data.tar.gz: 21cb452f850734ae326c23955243b561ceb049df2398d736cac95af03a202ba7
5
5
  SHA512:
6
- metadata.gz: f4b248cf180be312dfe9e8dcf9a1f0b1e2bdb11d4287aa3fbbb84fa7dd515c66160d42bd7dd73e5c6e914833331e8af7bc110952dc333bd690721d419ebcd1c2
7
- data.tar.gz: 81bdb2f2d87808c3bf17a73fe43e5e07d5e29967fad84b3f54219644441500af9451b39747fdf3fbd4901759d8e846d544eeba33b05b5528e08f581647e7579a
6
+ metadata.gz: 330adaef8cc29cabda3433d1ef1f7ec56d37e236cf817d08296e56d7c4152d80b5cc847795762d600b06a16730e3ae6bf16c970085818cb212aa9f5327cce3a8
7
+ data.tar.gz: 9066f78a3aa34a0dfb9864510fe2c6e51cd4058605434c1f75efcc033261dfcbf649c38376b0e17f3f421d223ac9d6b0232ae2743a5a76416b0fdcf9927be640
@@ -50,19 +50,11 @@ 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
- 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
53
+ system("cp -r #{worker_dir}/* #{api_dir}")
58
54
  else
59
55
  FileUtils.rm_rf(worker_dir) if Dir.exist?(worker_dir)
60
56
  FileUtils.mkdir(worker_dir) unless Dir.exist?(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
57
+ system("cp -r #{api_dir}/* #{worker_dir}")
66
58
  end
67
59
  end
68
60
 
@@ -87,10 +79,6 @@ module Souls
87
79
  {
88
80
  api: "#{api_path}/spec/factories",
89
81
  worker: "#{worker_path}/spec/factories"
90
- },
91
- {
92
- api: "#{api_path}/config/database.yml",
93
- worker: "#{worker_path}/config/database.yml"
94
82
  }
95
83
  ]
96
84
  end
data/lib/souls/init.rb CHANGED
@@ -136,6 +136,7 @@ module Souls
136
136
  system("curl -OL #{url}")
137
137
  system("mkdir -p ./apps/worker")
138
138
  system("tar -zxvf ./#{file_name} -C ./apps/")
139
+ system("cp ./apps/api/config/database.yml ./apps/worker/config/")
139
140
  FileUtils.rm(file_name)
140
141
  line = Paint["====================================", :yellow]
141
142
  puts("\n")
@@ -163,7 +164,7 @@ module Souls
163
164
  Easy to Run
164
165
  $ cd ./apps/worker
165
166
  $ bundle
166
- $ souls model:update
167
+ $ souls sync model
167
168
  $ souls s
168
169
  Go To : http://localhost:3000
169
170
 
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.32.15".freeze
2
+ VERSION = "0.32.16".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.11.15
1
+ 0.11.16
@@ -1 +1 @@
1
- 0.11.15
1
+ 0.11.16
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.15
4
+ version: 0.32.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI