souls 1.13.2 → 1.13.3

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: 01ade60685e817ed0a8c14670334021cf6c7a4b5410fb7c74831064aecbd9555
4
- data.tar.gz: df9dd1a2e36fb552e295286332b1b6279507c71fd36e16e29816ea53e28bd5e0
3
+ metadata.gz: 2a3f918c37ef59dfb41e4a7e5d1447f2c335025475bfb2824237eefb96367f49
4
+ data.tar.gz: 92e1830bc1a1e88d766093fd59b214372080b3b352f3a2c3dee1fec905447a21
5
5
  SHA512:
6
- metadata.gz: 60dd891644a2cd03858119aa52cad3598f232fa3af0f765197524b1fa081baea45d3cc60ecc72af2dfaaa473f67f1c44dc2b58dafb8c413235af087b0c7f946c
7
- data.tar.gz: 470af8a33c61a83de8adfdbf9a0e3ae92a9c07842408060f2c68dcb867cf65b955925ff3a1fc2e14dca30a1752e0890a2822c1dfe3537ffe5361429a50235f4c
6
+ metadata.gz: ac95676be7662121af2881c8358a296fb81259bb001b119c722936f60a2bd9728717a6733fc81fc35f735e4b7428c44ebd332f216ded7763254d50401da1eee1
7
+ data.tar.gz: 567ee50475a74443d694019edfc7f31dc8b884488557dda907313280b7cd8406efccfd3e836211910b14c052d14ce37caef6f6163c87ba8fbf284247c45165ec
@@ -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|
@@ -69,7 +69,7 @@ module Souls
69
69
  File.open(file_path, "w") do |f|
70
70
  f.write(<<~TEXT)
71
71
  module Queries
72
- class #{class_name.camelize} < BaseQuery
72
+ class #{class_name.camelize} < Souls::Types::BaseObject
73
73
  description ""
74
74
  type Types::#{class_name.camelize}Type, null: false
75
75
 
@@ -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.2".freeze
2
+ VERSION = "1.13.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.13.2
1
+ 1.13.3
@@ -1 +1 @@
1
- 1.13.2
1
+ 1.13.3
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.2
4
+ version: 1.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI