souls 0.52.6 → 0.53.2

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: 338c67d2a3a642b22b10a49f80348a639fdc4b5cc9f08172a4ff5a9d20662683
4
- data.tar.gz: 6bcd475744b6e9f40b0c3c739923d135fd4ef69eaa377ae2d277abcfe0fcf483
3
+ metadata.gz: 20dd660767b217c4102790845036b7a3de0616dbe046f5e17162db74d06a3481
4
+ data.tar.gz: efabbaace9cea8e00187016ee71f7743a6955da090c51e9e90f16e43693f3f9c
5
5
  SHA512:
6
- metadata.gz: 011de9ef1cf3ca45de480c074f6abafd291707b7bdd6b024e4c73ada168f30f3f848e38df2778cd8bd0d7c906afa3be66df4179bc82695c8f8502bfe1310028a
7
- data.tar.gz: 8d166d2d55a10a91998adba7eb256b78045450bd2f07bd9bcd853d49ad7690a8f08f1707a72223d185510f8c4b1b577701a03b9f13743daa707812c895b5c9b5
6
+ metadata.gz: a5bb3e33daf9c1ad8a12aa2dc2c7c3bbeb949df3b86d24cb8d5ac07cb63d7b6735666189739e4e41fa7f9ef602175f02e5345a21aa1c04152e4f98b67022f721
7
+ data.tar.gz: 4c2365dd95422055ee7f67155b9fcd461b40e24b3499bffa44df7426039e846746100fea2ec02038fc0cefa012ae995354cd68b9b7a362d02c57a0fbe5772c31
data/exe/souls CHANGED
@@ -3,7 +3,19 @@ require "souls"
3
3
  require "thor"
4
4
  begin
5
5
  souls_command = ARGV[0]
6
- require("./config/souls") unless ["new", "docker", "-v", "deploy"].include?(souls_command)
6
+ require("./config/souls") unless [
7
+ "new",
8
+ "docker",
9
+ "-v",
10
+ "deploy",
11
+ "help",
12
+ "api",
13
+ "create",
14
+ "gcloud",
15
+ "worker",
16
+ "",
17
+ nil
18
+ ].include?(souls_command)
7
19
  rescue StandardError
8
20
  raise(StandardError, "No confif! Please make `./config/souls.rb` File!")
9
21
  end
@@ -1,7 +1,7 @@
1
1
  module Souls
2
2
  class CLI < Thor
3
3
  desc "server", "Run SOULs APP"
4
- method_option all: :boolean, alias: "--all", default: false, desc: "Run All API & Workers"
4
+ method_option :all, type: :boolean, alias: "--all", default: false, desc: "Run All API & Workers"
5
5
  def server
6
6
  if options[:all]
7
7
  Dir.chdir(Souls.get_mother_path.to_s) do
@@ -4,6 +4,15 @@ module Souls
4
4
  def conf
5
5
  update_conf
6
6
  update_conf(strain: "api")
7
+ puts(
8
+ Paint % [
9
+ "Synced! : %{white_text}",
10
+ :green,
11
+ { white_text: ["`config/souls.rb`, `apps/api/config/souls.rb`", :white] }
12
+ ]
13
+ )
14
+ rescue Thor::Error => e
15
+ raise(Thor::Error, e)
7
16
  end
8
17
 
9
18
  private
@@ -6,6 +6,9 @@ module Souls
6
6
  cp_dir.each do |dir|
7
7
  cp_and_dl_files(dir: dir)
8
8
  end
9
+ puts(Paint % ["Synced! : %{white_text}", :green, { white_text: [cp_dir.to_s, :white] }])
10
+ rescue Thor::Error => e
11
+ raise(Thor::Error, e)
9
12
  end
10
13
 
11
14
  private
@@ -3,6 +3,9 @@ module Souls
3
3
  desc "pubsub", "Sync Worker Jobs & Google Cloud Pubsub Subscriptions"
4
4
  def pubsub
5
5
  get_topics(workers: get_workers)
6
+ puts(Paint["All Jobs Synced with PubSub Subscription!", :green])
7
+ rescue Thor::Error => e
8
+ raise(Thor::Error, e)
6
9
  end
7
10
 
8
11
  private
@@ -2,6 +2,17 @@ module Souls
2
2
  class Upgrade < Thor
3
3
  desc "gemfile", "Update Gemfile/Gemfile.lock Version"
4
4
  def gemfile
5
+ status = Paint["Checking Latest Gems...", :yellow]
6
+ Whirly.start(spinner: "clock", interval: 420, stop: "🎉") do
7
+ Whirly.status = status
8
+ update_gem
9
+ Whirly.status = "Done!"
10
+ end
11
+ end
12
+
13
+ private
14
+
15
+ def update_gem
5
16
  file_path = "./Gemfile"
6
17
  tmp_file = "./tmp/Gemfile"
7
18
  new_gems = gemfile_latest_version
@@ -68,8 +79,6 @@ module Souls
68
79
  end
69
80
  end
70
81
 
71
- private
72
-
73
82
  def gemfile_latest_version
74
83
  file_path = "./Gemfile"
75
84
  updated_gems = []
data/lib/souls/cli.rb CHANGED
@@ -1,25 +1,25 @@
1
1
  require "souls"
2
2
  module Souls
3
3
  class CLI < Thor
4
- desc "api [COMMAND]", "souls api Commands"
4
+ desc "api [COMMAND]", "SOULs API Commands"
5
5
  subcommand "api", API
6
6
 
7
- desc "gcloud [COMMAND]", "souls gcloud Commands"
7
+ desc "gcloud [COMMAND]", "SOULs Gcloud Commands"
8
8
  subcommand "gcloud", Gcloud
9
9
 
10
- desc "docker [COMMAND]", "souls docker Commands"
10
+ desc "docker [COMMAND]", "SOULs Docker Commands"
11
11
  subcommand "docker", Docker
12
12
 
13
- desc "create [COMMAND]", "souls create worker $worker_name"
13
+ desc "create [COMMAND]", "SOULs Create Worker"
14
14
  subcommand "create", Create
15
15
 
16
- desc "sync", "souls sync Commands"
16
+ desc "sync", " SOULs Sync Commands"
17
17
  subcommand "sync", Sync
18
18
 
19
- desc "upgrade", "souls upgrade Commands"
19
+ desc "upgrade", "SOULs Upgrade Commands"
20
20
  subcommand "upgrade", Upgrade
21
21
 
22
- desc "worker [COMMAND]", "souls worker Commands"
22
+ desc "worker [COMMAND]", "SOULs Worker Commands"
23
23
  subcommand "worker", Worker
24
24
 
25
25
  # rubocop:disable Style/StringHashKeys
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.52.6".freeze
2
+ VERSION = "0.53.2".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.31.6
1
+ 0.32.2
@@ -1 +1 @@
1
- 0.31.6
1
+ 0.32.2
@@ -1,13 +1,8 @@
1
1
  module Souls
2
2
  class Generate < Thor
3
3
  desc "job [CLASS_NAME]", "Generate Job File in Worker"
4
- method_option mailer: :boolean, aliases: "--mailer", default: false, desc: "Generate Mailer Template"
5
4
  def job(class_name)
6
- if options[:mailer]
7
- mailer(class_name)
8
- else
9
- create_mutation(class_name: class_name)
10
- end
5
+ create_mutation(class_name: class_name)
11
6
  rescue Thor::Error => e
12
7
  raise(Thor::Error, e)
13
8
  end
@@ -4,5 +4,7 @@ module Souls
4
4
  class Worker < Thor
5
5
  desc "generate [COMMAND]", "souls worker generate Commands"
6
6
  subcommand "generate", Generate
7
+
8
+ map "g" => :generate
7
9
  end
8
10
  end
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.52.6
4
+ version: 0.53.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI