souls 0.15.5 → 0.15.6

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: e72a21841cb1bad148b2b4fb2c9b6fc01fe55bf3b369bfb3aaf71df1393bd34f
4
- data.tar.gz: 1e60f71a7d2ad5734d7f8a6f18cca6b437148c7f4f9d08145fe5eddef81be639
3
+ metadata.gz: 822cc3c17c118abe445b06166b676238c722060af7379ba7620ac7e38603810f
4
+ data.tar.gz: 84923f26838b78d83c79c50d4703c6a19f6c49c1bc9048345332286813d2e178
5
5
  SHA512:
6
- metadata.gz: 0fbaa59c380970e79452516a7b049dd8815c0f65bd35dad5cd9f263adb700fe5b44b2e2b7ccd298ecfaf4c9e6c80966f1d955f9346a0799d8a2b242dbb305889
7
- data.tar.gz: 2d7ab88bd16ac812b1e751faf5f924e75e01dcb7be5b181867083bfb60d2611aadd92247c7be4d8fcfe99361055214d668107d45b61caf8a7216524c998ad20c
6
+ metadata.gz: 077a258b9306c9b53bf17ca7d2d969f18369c43ce39c01d29dc1db7befc3d5cbf9fa8d0a69946b9fe242cfe4bba6d1e3c5627329741ec91fe5408fe4191e4446
7
+ data.tar.gz: c9265785646fe4bed96d999d21c75042be26e72f97cffaf2bade4427c084dd55e3453b2593dfcf2a0ce0c227b233b13f6937567729e03187216a3d1451ffae67
@@ -120,7 +120,7 @@ module Souls
120
120
  if line.include?("end") || line.include?("t.index")
121
121
  if @relation_params.empty?
122
122
  new_line.write <<-EOS
123
- let(:#{class_name}) { FactoryBot.create(:#{class_name}) }
123
+ let!(:#{class_name}) { FactoryBot.create(:#{class_name}) }
124
124
 
125
125
  let(:query) do
126
126
  %(query {
@@ -196,8 +196,12 @@ module Souls
196
196
  end
197
197
 
198
198
  it "return #{class_name.camelize} Data" do
199
- a1 = result.dig("data", "#{class_name.singularize.camelize(:lower)}Search", "edges")[0]["node"]
200
- p result if a1.nil?
199
+ begin
200
+ a1 = result.dig("data", "#{class_name.singularize.camelize(:lower)}Search", "edges")[0]["node"]
201
+ raise unless a1.present?
202
+ rescue
203
+ raise StandardError, result
204
+ end
201
205
  expect(a1).to include(
202
206
  "id" => be_a(String),
203
207
  EOS
data/lib/souls/init.rb CHANGED
@@ -881,7 +881,12 @@ module Souls
881
881
  end
882
882
 
883
883
  it "return #{class_name.camelize} Data" do
884
- a1 = result.dig("data", "create#{class_name.singularize.camelize}", "#{class_name.singularize.camelize(:lower)}Edge", "node")
884
+ begin
885
+ a1 = result.dig("data", "create#{class_name.singularize.camelize}", "#{class_name.singularize.camelize(:lower)}Edge", "node")
886
+ raise unless a1.present?
887
+ rescue
888
+ raise StandardError, result
889
+ end
885
890
  expect(a1).to include(
886
891
  "id" => be_a(String),
887
892
  EOS
@@ -899,7 +904,12 @@ module Souls
899
904
  end
900
905
 
901
906
  it "return #{class_name.camelize} Data" do
902
- a1 = result.dig("data", "create#{class_name.singularize.camelize}", "#{class_name.singularize.camelize(:lower)}Edge", "node")
907
+ begin
908
+ a1 = result.dig("data", "create#{class_name.singularize.camelize}", "#{class_name.singularize.camelize(:lower)}Edge", "node")
909
+ raise unless a1.present?
910
+ rescue
911
+ raise StandardError, result
912
+ end
903
913
  expect(a1).to include(
904
914
  "id" => be_a(String),
905
915
  EOS
@@ -1006,7 +1016,7 @@ module Souls
1006
1016
  if line.include?("end") || line.include?("t.index")
1007
1017
  if @relation_params.empty?
1008
1018
  new_line.write <<-EOS
1009
- let(:#{class_name}) { FactoryBot.create(:#{class_name}) }
1019
+ let!(:#{class_name}) { FactoryBot.create(:#{class_name}) }
1010
1020
 
1011
1021
  let(:query) do
1012
1022
  data_id = Base64.encode64("#{class_name.camelize}:\#{#{class_name.singularize.underscore}.id}")
@@ -1064,7 +1074,12 @@ module Souls
1064
1074
  end
1065
1075
 
1066
1076
  it "return #{class_name.camelize} Data" do
1067
- a1 = result.dig("data", "#{class_name.singularize.camelize(:lower)}")
1077
+ begin
1078
+ a1 = result.dig("data", "#{class_name.singularize.camelize(:lower)}")
1079
+ raise unless a1.present?
1080
+ rescue
1081
+ raise StandardError, result
1082
+ end
1068
1083
  expect(a1).to include(
1069
1084
  "id" => be_a(String),
1070
1085
  EOS
data/lib/souls/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.15.5"
2
+ VERSION = "0.15.6"
3
3
  end
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.15.5
4
+ version: 0.15.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.2.4
73
+ rubygems_version: 3.2.3
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: SOULS is a GraphQL Based Web Application Framework for Microservices on Multi