souls 0.66.1 → 0.67.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: 9a7da49346f5cb49477a929afda1b0f1801ea0938df4d27637d7c12bf789df3f
4
- data.tar.gz: b2487e19cdd33f995156e5ee88aa2c0cc70d75f648b10ff7fd88a75523027096
3
+ metadata.gz: 8b1cc35e46930bdf9481dbc5450ba32d14e041be0641826cdcdb340afe18abf7
4
+ data.tar.gz: '09d19b63cca01f4f80165dcefee75191abdebf2205f6e75e29b7bf01c3cdcdd5'
5
5
  SHA512:
6
- metadata.gz: df988ebc91a052c2940313a73d4b5e65c42d59283155ae97b32cced8aabe8ee3003ca761202473873ab8b89e69a1526ad63177f257b776d04cad61e930bd40be
7
- data.tar.gz: f34f43a3669d2a694206cd5edacec21766544c80f3e5e50a61599267330f1f2c929cf931ceb20147cfe31506e1ed68cb2255da3eb82afeda7d11d90a0eee952b
6
+ metadata.gz: bb8fd42191741c07f62c6235855c9da5668f57b6621edbfba2245cba34b74cc53801711878a056d46ca687606607b67753ebe7010f3d12f212c7ec4c6fa22c1d
7
+ data.tar.gz: 918f0c165ca37bcda8eeb460c60bafcd25f123ee91a0175ee6d027a0477c126490846a5c4a9503e1dc664f030882cca8e314ec2a87e41abc426540393f7c9912
@@ -21,6 +21,7 @@ module Souls
21
21
  souls_config_init(worker_name: options[:name])
22
22
  steepfile(worker_name: options[:name])
23
23
  souls_helper_rbs(worker_name: options[:name])
24
+ system("cd apps/#{options[:name]} && bundle")
24
25
  souls_worker_credit(worker_name: options[:name])
25
26
  end
26
27
  true
@@ -48,6 +49,8 @@ module Souls
48
49
  end
49
50
  end
50
51
  end
52
+ FileUtils.rm(file_path)
53
+ FileUtils.mv(new_file_path(file_path))
51
54
  end
52
55
 
53
56
  def procfile(worker_name: "mailer", port: 3000)
@@ -313,7 +316,6 @@ end
313
316
  endroll = <<~TEXT
314
317
  Easy to Run
315
318
  $ cd apps/#{worker_name}
316
- $ bundle
317
319
  $ souls sync model
318
320
  $ souls s
319
321
  Go To : http://localhost:3000
@@ -1,7 +1,7 @@
1
1
  module Souls
2
2
  class Generate < Thor
3
3
  desc "job [CLASS_NAME]", "Generate Job File in Worker"
4
- method_option :mutation, type: :boolean, aliases: "--mailer", default: false, desc: "Mailer Option"
4
+ method_option :mailer, type: :boolean, aliases: "--mailer", default: false, desc: "Mailer Option"
5
5
  def job(class_name)
6
6
  if options[:mailer]
7
7
  mailgun_mailer(class_name: class_name)
@@ -10,12 +10,12 @@ module Souls
10
10
 
11
11
  File.open(file_path, "w") do |f|
12
12
  f.write(<<~TEXT)
13
- RSpec.describe("#{class_name.singularize.camelize}") do
14
- describe "Define #{class_name.singularize.camelize}" do
13
+ RSpec.describe("#{singularized_class_name.camelize}") do
14
+ describe "Define #{singularized_class_name.camelize}" do
15
15
 
16
16
  let(:mutation) do
17
17
  %(mutation {
18
- #{class_name.singularize.camelize(:lower)}(input: {}) {
18
+ #{singularized_class_name.camelize(:lower)}(input: {}) {
19
19
  response
20
20
  }
21
21
  }
@@ -28,7 +28,7 @@ module Souls
28
28
 
29
29
  it "return StockSheet Data" do
30
30
  begin
31
- a1 = result.dig("data", "#{options[:mutation].singularize.camelize(:lower)}", "response")
31
+ a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}", "response")
32
32
  raise unless a1.present?
33
33
  rescue StandardError
34
34
  raise(StandardError, result)
data/lib/souls/cli.rb CHANGED
@@ -39,23 +39,27 @@ module Souls
39
39
  end
40
40
 
41
41
  desc "test", "Run Rspec & Rubocop"
42
+ method_option :all, type: :boolean, aliases: "--all", default: false, desc: "Run (Rspec & steep check & Rubocop)"
42
43
  def test
43
- system("rubocop -A")
44
- system("bundle exec rspec")
45
- end
46
-
47
- desc "test_all", "Run (Rspec & steep check & Rubocop)"
48
- def test_all
49
- Dir.chdir(Souls.get_mother_path.to_s) do
50
- system("steep check")
44
+ if options[:all]
45
+ Dir.chdir(Souls.get_mother_path.to_s) do
46
+ system("steep check")
47
+ end
48
+ Dir.chdir(Souls.get_api_path.to_s) do
49
+ system("rubocop -A")
50
+ system("bundle exec rspec")
51
+ end
52
+ else
53
+ system("rubocop -A")
54
+ system("bundle exec rspec")
51
55
  end
52
- system("rubocop -A")
53
- system("bundle exec rspec")
54
56
  end
55
57
 
56
58
  desc "check", "Run steep check"
57
59
  def check
58
- system("steep check")
60
+ Dir.chdir(Souls.get_mother_path.to_s) do
61
+ system("steep check")
62
+ end
59
63
  end
60
64
 
61
65
  def self.exit_on_failure?
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.66.1".freeze
2
+ VERSION = "0.67.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.45.1
1
+ 0.46.1
@@ -1 +1 @@
1
- 0.45.1
1
+ 0.46.1
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.66.1
4
+ version: 0.67.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI