souls 0.45.0 → 0.45.4

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: d57e23a96220bb12f1e05e04d14ec61e235135aaca9dad88649b1b7ff76a1fa9
4
- data.tar.gz: 4501314bd172a0f83bc594bbf1d5efcaf8280464719e897835da63fc6c273a2f
3
+ metadata.gz: a71dc83a3347785105c100c9736bbf01f64d8f2b8c0e59cf344c6cda3b648c88
4
+ data.tar.gz: 383fd695c04e01aa905c57d5e7aff2e6e9070014f23fceb4344a1c1236e85b8b
5
5
  SHA512:
6
- metadata.gz: eb881eb7b44c13a76bf3f5084d6565c665e820c2ca27e2cd0932b9c6b81f35b26ee2091273ba350adf9cf0fcfedef219fd993ed3b109d0ccc5b47937c32e59ef
7
- data.tar.gz: 734e41bf5578176220d906eed0ed4dc717d185a328f9e621a3a856fc295025534f4b62ebdfdf979f3c28862815cc16fc555b2819ed5a1647c661ef0d3101e68b
6
+ metadata.gz: dfa6e8dc612efad2c1acc990d1288f9b6615d6301caecc91ab6ddc3bd461053c55b88cfe2827f4c1221fe47a8140add3b752d2dc79e3338259389db985bc4557
7
+ data.tar.gz: dd341d5a1f3ed306118f0bfc36ffa13ec474fae7b9cfe5912f6f095c0229ce6fee5af68fbd07f25cbaf5fd9399a199d80516017f25c43b059fdba46ce3f2c118
data/exe/souls CHANGED
@@ -65,7 +65,15 @@ begin
65
65
  when "bashrc", "zshrc"
66
66
  Souls::Init.generate_cd
67
67
  when "s", "server"
68
- system("foreman start -f Procfile.dev")
68
+ all = ARGV[1]
69
+ case all
70
+ when "all"
71
+ Dir.chdir(Souls.get_mother_path.to_s) do
72
+ system("foreman start -f Procfile.dev")
73
+ end
74
+ else
75
+ system("foreman start -f Procfile.dev")
76
+ end
69
77
  when "c", "console"
70
78
  strain = Souls.configuration.strain
71
79
  case strain
@@ -30,7 +30,7 @@ module Souls
30
30
  def mother_procfile(worker_name: "mailer")
31
31
  file_path = "Procfile.dev"
32
32
  File.open(file_path, "a") do |f|
33
- f.write("\n#{worker_name}: foreman start -f ./apps/#{worker_name}/Procfile")
33
+ f.write("\n#{worker_name}: foreman start -f ./apps/#{worker_name}/Procfile.dev")
34
34
  end
35
35
  end
36
36
 
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.45.0".freeze
2
+ VERSION = "0.45.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.24.0
1
+ 0.24.4
@@ -1 +1 @@
1
- 0.24.0
1
+ 0.24.4
@@ -43,6 +43,7 @@ module Souls
43
43
  rescue StandardError => e
44
44
  GraphQL::ExecutionError.new(e.to_s)
45
45
  end
46
+ end
46
47
  end
47
48
  TEXT
48
49
  end
@@ -2,11 +2,20 @@ module Souls
2
2
  module Worker
3
3
  module Generate
4
4
  class << self
5
- def mutation(class_name: "csv_export")
5
+ def mutation(class_name: "send-mailer", option: "")
6
+ case option
7
+ when "--mailer"
8
+ mailer(class_name: class_name)
9
+ else
10
+ create_mutation(class_name: class_name)
11
+ end
12
+ end
13
+
14
+ def create_mutation(class_name: "send-mailer")
6
15
  file_dir = "./app/graphql/mutations/"
7
16
  FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
8
17
  file_path = "#{file_dir}#{class_name.singularize}.rb"
9
- raise(StandardError, "Mailer already exist! #{file_path}") if File.exist?(file_path)
18
+ raise(StandardError, "Mutation already exist! #{file_path}") if File.exist?(file_path)
10
19
 
11
20
  File.open(file_path, "w") do |f|
12
21
  f.write(<<~TEXT)
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.45.0
4
+ version: 0.45.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI