souls 0.32.18 → 0.33.0
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 +4 -4
- data/lib/souls/cli/sync/model.rb +2 -2
- data/lib/souls/init.rb +23 -0
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1b47e28c2adf758f84a32496804bb599f505117d939614361a1653a504867ee
|
4
|
+
data.tar.gz: 052040ba9f653ab2c7c7c398ed2dd082f6fb3e371738a60792f029c4e261da2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbb253ebe930a4953e8e469bef9766a26adcfcffff85c1535bccbe8f8c38ed4db64125032b9e24c642245b5b19ff6849c716af08de3d4473167a357659a871a5
|
7
|
+
data.tar.gz: c7e72bf2018d6b6a985cd913f9d034d1899ea86890901ae20e7751dca801b7b4d401d148b9f99a9de986dc666886bd52ef9501c93ad1767f465f1ed64a5058c2
|
data/lib/souls/cli/sync/model.rb
CHANGED
@@ -43,8 +43,8 @@ module Souls
|
|
43
43
|
api_file_data = file_diff(Dir["#{api_dir}/*.rb"])
|
44
44
|
worker_file_data = file_diff(Dir["#{worker_dir}/*.rb"])
|
45
45
|
|
46
|
-
api_latest_date =
|
47
|
-
worker_latest_date =
|
46
|
+
api_latest_date = Time.parse(api_file_data.max)
|
47
|
+
worker_latest_date = Time.parse(worker_file_data.max)
|
48
48
|
end
|
49
49
|
|
50
50
|
if api_latest_date < worker_latest_date
|
data/lib/souls/init.rb
CHANGED
@@ -9,6 +9,29 @@ module Souls
|
|
9
9
|
data[0]["tag_name"]
|
10
10
|
end
|
11
11
|
|
12
|
+
def self.generate_cd
|
13
|
+
shell = `echo $SHELL`.strip
|
14
|
+
rc =
|
15
|
+
if shell.include?("zsh")
|
16
|
+
"zshrc"
|
17
|
+
else
|
18
|
+
"bash"
|
19
|
+
end
|
20
|
+
system("echo 'alias api=\'cd apps/api\'' >> ~/.#{rc}")
|
21
|
+
system("echo 'alias mother=\'...\'' >> ~/.#{rc}")
|
22
|
+
system("echo 'alias worker=\'cd apps/worker\'' >> ~/.#{rc}")
|
23
|
+
puts(Paint["run `source ~/.#{rc}` to reflect your .#{rc}", :yellow])
|
24
|
+
puts(Paint["You can move to mother/api/worker just type", :green])
|
25
|
+
puts(Paint["\nmother\n", :white])
|
26
|
+
puts(
|
27
|
+
Paint["to go back to mother dir from api/worker\n\nYou can also go to api/worker from mother dir by typing",
|
28
|
+
:green]
|
29
|
+
)
|
30
|
+
puts(Paint["\napi\n", :white])
|
31
|
+
puts(Paint["or\n", :green])
|
32
|
+
puts(Paint["worker", :white])
|
33
|
+
end
|
34
|
+
|
12
35
|
def self.initial_config_init(app_name: "souls", service_name: "api")
|
13
36
|
config_dir = "./#{app_name}/apps/#{service_name}/config"
|
14
37
|
FileUtils.mkdir_p(config_dir) unless Dir.exist?(config_dir)
|
data/lib/souls/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|