souls 0.10.9 → 0.11.0
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/Gemfile.lock +1 -1
- data/lib/souls/init.rb +1 -3
- data/lib/souls/version.rb +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: 0fb828b91b3c8afa1c4b8043c0d4d4a75a5b0b20b534239f88ef34ffeaab5e7f
|
|
4
|
+
data.tar.gz: 9c66a20de7f68b05ce60e9f6418a669da6078b32f82882cf3a8ea2d068f59251
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad40438d10f79ae913e8199728fea477ea816b41cf26139124cb9daf9eb6f2a94ad983a34b29017847a32c0309eda859759b173a79fb3fde4c7af4176a6112d5
|
|
7
|
+
data.tar.gz: b76f74ebe3a6dc02a95185a52e24c9e07ffb116cf8f6865d920a5188078340c8fb48fda3d6c7bfc00e6d6f71e6f66b988a05e867b565c8743556fac02f5e25e9
|
data/Gemfile.lock
CHANGED
data/lib/souls/init.rb
CHANGED
|
@@ -627,7 +627,7 @@ module Souls
|
|
|
627
627
|
file_path = "./spec/mutations/#{class_name.pluralize}.rb"
|
|
628
628
|
File.open(file_path, "w") do |f|
|
|
629
629
|
f.write <<~EOS
|
|
630
|
-
RSpec.describe #{class_name.camelize} Mutation do
|
|
630
|
+
RSpec.describe \"#{class_name.camelize} Mutation テスト\" do
|
|
631
631
|
describe "#{class_name.camelize} を作成する" do
|
|
632
632
|
let!(:#{class_name.singularize.downcase}) { FactoryBot.create(:#{class_name.singularize.downcase}) }
|
|
633
633
|
|
|
@@ -650,9 +650,7 @@ module Souls
|
|
|
650
650
|
new_line.write " }) {\n user {\n id\n"
|
|
651
651
|
break
|
|
652
652
|
end
|
|
653
|
-
field = '["tag1", "tag2", "tag3"]' if line.include?("array: true")
|
|
654
653
|
type, name = line.split(",")[0].gsub("\"", "").scan(/((?<=t\.).+(?=\s)) (.+)/)[0]
|
|
655
|
-
field ||= get_test_type type
|
|
656
654
|
case name
|
|
657
655
|
when "created_at", "updated_at"
|
|
658
656
|
next
|
data/lib/souls/version.rb
CHANGED