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 +4 -4
- data/lib/souls/cli/db/create_migration.rb +1 -1
- data/lib/souls/cli/generate/job.rb +1 -1
- data/lib/souls/cli/generate/job_rbs.rb +1 -2
- data/lib/souls/cli/generate/rspec_job.rb +1 -3
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a3f918c37ef59dfb41e4a7e5d1447f2c335025475bfb2824237eefb96367f49
|
|
4
|
+
data.tar.gz: 92e1830bc1a1e88d766093fd59b214372080b3b352f3a2c3dee1fec905447a21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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} <
|
|
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
|
-
|
|
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 +1 @@
|
|
|
1
|
-
1.13.
|
|
1
|
+
1.13.3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.13.
|
|
1
|
+
1.13.3
|