souls 0.32.18 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1e0712dc860c79d9dcbe141e7b3bc25aeb413e69cbba7ec0276590e1116bc4b
4
- data.tar.gz: c836b568558dbd92665e50ab8ed26a472d6b67969ab285e04a3163e94a194ad4
3
+ metadata.gz: f1b47e28c2adf758f84a32496804bb599f505117d939614361a1653a504867ee
4
+ data.tar.gz: 052040ba9f653ab2c7c7c398ed2dd082f6fb3e371738a60792f029c4e261da2b
5
5
  SHA512:
6
- metadata.gz: 5fbc7d8618789ebfe1f8dcf6004ff0d16331533a0ee6324249704b920cc9e54de07095665f5d301a0d9b5ddb09793ba5f7be06643b8d9eff79e1500f3fb7b9d5
7
- data.tar.gz: aa350a2447ec8ef2acd309fc2223103ccaf9b942306b280bd742a0feaf5c2c6241bbda64d4482790b66ec53f1b01b18178b2cafe9fa6a798f9a62a1605f749f3
6
+ metadata.gz: bbb253ebe930a4953e8e469bef9766a26adcfcffff85c1535bccbe8f8c38ed4db64125032b9e24c642245b5b19ff6849c716af08de3d4473167a357659a871a5
7
+ data.tar.gz: c7e72bf2018d6b6a985cd913f9d034d1899ea86890901ae20e7751dca801b7b4d401d148b9f99a9de986dc666886bd52ef9501c93ad1767f465f1ed64a5058c2
@@ -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 = Date.parse(api_file_data.max)
47
- worker_latest_date = Date.parse(worker_file_data.max)
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,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.32.18".freeze
2
+ VERSION = "0.33.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.11.18
1
+ 0.12.0
@@ -1 +1 @@
1
- 0.11.18
1
+ 0.12.0
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.18
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI