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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac62e7ceab027e6712c2f49a1006467634b695c94277532d995abfe8b84b06d5
4
- data.tar.gz: b9a7d9be1893112f1ed88c10246addcf65b1324fbe38c88341ea165e1dbfeb95
3
+ metadata.gz: 41f25d625a2113234605b9dae1fd2cbe7e5ae6116c99b675801d7e5b857e39f3
4
+ data.tar.gz: 4f07c3fae2465999b0c0adcb859680e9e45eb4bbfb49d33cf6f07443fb62d11e
5
5
  SHA512:
6
- metadata.gz: a8d541ba1c46c4419c0599a38be3ad060c3630e50768ac19d598d4324b9ed38c80be49e67aacb307179f091a0543c64853d1563a51b0bdaeefa1f2d3b4d9cf99
7
- data.tar.gz: 2be11c59ff026d0cd1a33d897772e03a8e1839feba4d0b01ffb44f7ec8b37ac5b6d3e76dc7a7c2bdd8bd1edfc4bafa6fd5f039875d6b9aa5d9f204a2f8f639d2
6
+ metadata.gz: 4fab56a0dfb7c3f20f20651f5c87c53b92128ce56e30125c9bb56b0e1648bf867e88b4f92bd87fdfc30b9fcc7cb1beb4faed21e61df855a83adacf8a57ff1700
7
+ data.tar.gz: 603a9c0c54f42750aae84e7d649e5d334c01bbc30157d61ac1d302f017cd7862834ffffa75d4d025b52d19cbae7ac43a8cef7f4ff7ebafcbcf1f5a2bed5c95ec
@@ -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.pluralize}.rb"
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.pluralize}.rb"
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}:\#{user.id}")}) {
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
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.11.3"
2
+ VERSION = "0.11.4"
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.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI