souls 0.45.0 → 0.45.1

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: 687c7023389b7fd4d8fae1337cafc63251407e9e936d259b95d2e3647c404e9d
4
+ data.tar.gz: f70742c21c637a35b48f6afeb4398c82f4b0e86582a6c0708c49c2f2e35140b0
5
5
  SHA512:
6
- metadata.gz: eb881eb7b44c13a76bf3f5084d6565c665e820c2ca27e2cd0932b9c6b81f35b26ee2091273ba350adf9cf0fcfedef219fd993ed3b109d0ccc5b47937c32e59ef
7
- data.tar.gz: 734e41bf5578176220d906eed0ed4dc717d185a328f9e621a3a856fc295025534f4b62ebdfdf979f3c28862815cc16fc555b2819ed5a1647c661ef0d3101e68b
6
+ metadata.gz: 04dd56f04723d157e11a42623f3d4e01473f7f68a9a0f347d49ad5974097741782ec402357370049bad97568065eacb4409362c715ccba71944201bd51a0c7be
7
+ data.tar.gz: 8ec8956ec878e5138d992f8ac467132ec40db127fc312659c79a408e339c40af37915f6de331a4afd644b2ccaa1241745dc751c34cebb3308b97974cbfcd8d17
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
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.45.0".freeze
2
+ VERSION = "0.45.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.24.0
1
+ 0.24.1
@@ -1 +1 @@
1
- 0.24.0
1
+ 0.24.1
@@ -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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI