souls 1.13.0 → 1.13.4

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: 7f2379099a16dfdc0ae7b5e49cf8cb1cb15e75c2542e8b2a60083949b72308dd
4
- data.tar.gz: 75f87b3b1b6223364ca964190c44a09856f629dfbdfcb952d7a1c61064a1709a
3
+ metadata.gz: 3ba8bc79c88dcbafa85d3dffd3f30a529c2ba5c8670abcd48ad5efb52d2d7352
4
+ data.tar.gz: 59bf01296c88174c88f638ade4855cbe5a2da2c74f36f4f1f4ec1370c6d5835f
5
5
  SHA512:
6
- metadata.gz: dd51f504d1f187379daf97e9878801463a37ee83155137b7d57bc9f12036c628eb64e69863b0e0e0d0848bd090f25a3af00534f7bcdea59d202232f28cd1f591
7
- data.tar.gz: 6554f9f8ff01dd5e320c5283c202765f970a5ae74461b18606b27c7acfe2b57e75257315838a4409ea7bf334c2bc98216c76c909afa25205a36b5b11104c31c6
6
+ metadata.gz: 28a38e6407d7d297bdc1c9a97cb65933fb726617ecaf37045d5e3f323ecee56bb17b4224b5c9ae026967a3515a533d9497da6b412e5b79add0ea2666f9f99b0a
7
+ data.tar.gz: 6743ee5010f6bb0df88347be32491e74c0166c625adc523918b7829745bb5fd70eb23e76b17079b35e77002d1457dc90fe8e644d0c32a75d26ccfb4c70af1830
@@ -7,7 +7,7 @@ module Souls
7
7
  Souls::DB.new.invoke(:model, [singularized_class_name], {})
8
8
  Souls::DB.new.invoke(:rspec_model, [singularized_class_name], {})
9
9
  Souls::DB.new.invoke(:model_rbs, [singularized_class_name], {})
10
- puts(Paint["Created file! : ", :green])
10
+ Souls::Painter.create_file("")
11
11
  system("rake db:create_migration NAME=create_#{pluralized_class_name}")
12
12
  file_path = Dir["db/migrate/*create_#{pluralized_class_name}.rb"].first
13
13
  File.open(file_path, "w") do |f|
@@ -2,7 +2,7 @@ module Souls
2
2
  class Delete < Thor
3
3
  desc "rspec_job [CLASS_NAME]", "Delete Rspec Job Test Template"
4
4
  def rspec_job(class_name)
5
- file_dir = "./spec/jobs"
5
+ file_dir = "./spec/queries/jobs"
6
6
  singularized_class_name = class_name.underscore.singularize
7
7
  file_path = "#{file_dir}/#{singularized_class_name}_spec.rb"
8
8
  FileUtils.rm_f(file_path)
@@ -108,7 +108,7 @@ module Souls
108
108
  File.open(file_path, "w") do |f|
109
109
  f.write(<<~TEXT)
110
110
  module Types
111
- class #{class_name.camelize}Type < BaseObject
111
+ class #{class_name.camelize}Type < Souls::Types::BaseObject
112
112
  field :response, String, null: true
113
113
  end
114
114
  end
@@ -26,14 +26,13 @@ module Souls
26
26
  File.open(type_file_path, "w") do |f|
27
27
  f.write(<<~TEXT)
28
28
  module Types
29
- class #{singularized_class_name.camelize}Type < BaseObject
29
+ class #{singularized_class_name.camelize}Type < Souls::Types::BaseObject
30
30
  def self.field: (:response, String, null: true) -> untyped
31
31
  end
32
32
  end
33
33
  TEXT
34
34
  end
35
35
  Souls::Painter.create_file(file_path.to_s)
36
- puts(Paint % ["Created file! : %{white_text}", :green, { white_text: [type_file_path.to_s, :white] }])
37
36
  end
38
37
  file_path
39
38
  end
@@ -29,9 +29,7 @@ module Souls
29
29
  end
30
30
 
31
31
  it "return #{singularized_class_name.camelize} response" do
32
- stub_request(:post, "https://api.mailgun.net/v3/YOUR-MAILGUN-DOMAIN/messages")
33
- .to_return(status: 200, body: "", headers: {})
34
- #{' '}
32
+ allow_any_instance_of(::Mailgun::Client).to(receive(:send_message).and_return(true))
35
33
  a1 = result.dig("data", "#{singularized_class_name.camelize(:lower)}")
36
34
  expect(a1).not_to be_empty
37
35
  expect(a1).to(include("response" => be_a(String)))
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.13.0".freeze
2
+ VERSION = "1.13.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.13.4
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.13.4
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: 1.13.0
4
+ version: 1.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI