souls 0.11.3 → 0.11.4
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/init.rb +3 -4
- 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: 41f25d625a2113234605b9dae1fd2cbe7e5ae6116c99b675801d7e5b857e39f3
|
|
4
|
+
data.tar.gz: 4f07c3fae2465999b0c0adcb859680e9e45eb4bbfb49d33cf6f07443fb62d11e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fab56a0dfb7c3f20f20651f5c87c53b92128ce56e30125c9bb56b0e1648bf867e88b4f92bd87fdfc30b9fcc7cb1beb4faed21e61df855a83adacf8a57ff1700
|
|
7
|
+
data.tar.gz: 603a9c0c54f42750aae84e7d649e5d334c01bbc30157d61ac1d302f017cd7862834ffffa75d4d025b52d19cbae7ac43a8cef7f4ff7ebafcbcf1f5a2bed5c95ec
|
data/lib/souls/init.rb
CHANGED
|
@@ -625,7 +625,7 @@ module Souls
|
|
|
625
625
|
end
|
|
626
626
|
|
|
627
627
|
def rspec_mutation_head class_name: "souls"
|
|
628
|
-
file_path = "./spec/mutations/#{class_name.
|
|
628
|
+
file_path = "./spec/mutations/#{class_name.singularize}_spec.rb"
|
|
629
629
|
File.open(file_path, "w") do |f|
|
|
630
630
|
f.write <<~EOS
|
|
631
631
|
RSpec.describe \"#{class_name.camelize} Mutation テスト\" do
|
|
@@ -772,7 +772,7 @@ end
|
|
|
772
772
|
end
|
|
773
773
|
|
|
774
774
|
def rspec_query_head class_name: "souls"
|
|
775
|
-
file_path = "./spec/queries/#{class_name.
|
|
775
|
+
file_path = "./spec/queries/#{class_name.singularize}_spec.rb"
|
|
776
776
|
File.open(file_path, "w") do |f|
|
|
777
777
|
f.write <<~EOS
|
|
778
778
|
RSpec.describe \"#{class_name.camelize} Query テスト\" do
|
|
@@ -781,7 +781,7 @@ end
|
|
|
781
781
|
|
|
782
782
|
let(:query) do
|
|
783
783
|
%(query {
|
|
784
|
-
#{class_name.singularize.underscore}(id: \#{Base64.encode64("#{class_name.camelize}:\#{
|
|
784
|
+
#{class_name.singularize.underscore}(id: \#{Base64.encode64("#{class_name.camelize}:\#{#{class_name.underscore}.id}")}) {
|
|
785
785
|
id
|
|
786
786
|
EOS
|
|
787
787
|
end
|
|
@@ -943,7 +943,6 @@ end
|
|
|
943
943
|
|
|
944
944
|
def migrate_all
|
|
945
945
|
puts "◆◆◆ Let's Auto Generate CRUD API ◆◆◆\n"
|
|
946
|
-
`rake db:migrate`
|
|
947
946
|
paths = get_tables.map do |class_name|
|
|
948
947
|
migrate class_name: class_name.singularize
|
|
949
948
|
end
|
data/lib/souls/version.rb
CHANGED