souls 0.12.0 → 0.12.5

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: bb1a22840a3d3bc0a968a9cddf60b195062d6265e0fc569bf67f138b4d27c116
4
- data.tar.gz: 59f03a6f0e48e4a618492b09daf7b03d9d577d7f65f756bc0f648a0261f8b10e
3
+ metadata.gz: c6e9ae792fe3f6a312d89364748f36f07fc6e51b8cc40756ae00c01805ad0402
4
+ data.tar.gz: 33383751d0cfc77e2c7239ad380cda471755b70819028e0ab71aec12b892f807
5
5
  SHA512:
6
- metadata.gz: a13f051450e4b2eb8ebc8676db2033d5e87580ae0d2d24ffede18f8df548020f40fa60c78645fba0f603cc35418399b810f9a406a9ea5ed7a3e20d58f8cf252f
7
- data.tar.gz: ae460ff7b24ea3f22f6c67519a8378136f1770a6ee037c1effedaa9f9f809fdc52771df9009a6a8b286f8817154b07fc8f00f7105553cba93c45fcbddf85ce04
6
+ metadata.gz: 6b23baccc4112895599e0a03529c91d08423574df200a86d132729fb8a75ab1cf2867e2363f300de01066a975e57ffded4940dee87ae6375ed732fbb881ff767
7
+ data.tar.gz: 98f3d98b259adff9cc0d91b43dcf758f014ca05d72855234e90ed0c4941cf02124521ec9e703accb156a1d1594a93dfe5f3466934d6e72d73f77e208aa011299
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.11.8)
4
+ souls (0.12.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/exe/souls CHANGED
@@ -87,7 +87,7 @@ begin
87
87
  puts "Welcome to SOULs!"
88
88
  end
89
89
  rescue StandardError => error
90
- puts error
90
+ puts error.backtrace
91
91
  puts "Thank you!!"
92
92
  puts "SOULs"
93
93
  end
@@ -619,9 +619,11 @@ module Souls
619
619
  file_path = "./spec/models/#{class_name}_spec.rb"
620
620
  File.open(file_path, "w") do |f|
621
621
  f.write <<~EOS
622
- RSpec.describe #{class_name.camelize}, type: :model do
623
- it "作成する" do
624
- expect(FactoryBot.build(:#{class_name.singularize})).to be_valid
622
+ RSpec.describe "#{class_name.camelize} Model テスト", type: :model do
623
+ describe "#{class_name.camelize} データを書き込む" do
624
+ it "valid #{class_name.camelize} Model" do
625
+ expect(FactoryBot.build(:#{class_name.singularize})).to be_valid
626
+ end
625
627
  end
626
628
  end
627
629
  EOS
@@ -700,7 +702,7 @@ module Souls
700
702
  end
701
703
 
702
704
  it "return #{class_name.camelize} Data" do
703
- a1 = result.dig("data", "create#{class_name.camelize}", "#{class_name.singularize}")
705
+ a1 = result.dig("data", "create#{class_name.singularize.camelize}", "#{class_name.singularize.camelize(:lower)}")
704
706
  expect(a1).to include(
705
707
  "id" => be_a(String),
706
708
  EOS
@@ -787,7 +789,7 @@ end
787
789
  let(:query) do
788
790
  data_id = Base64.encode64("#{class_name.camelize}:\#{#{class_name.singularize.underscore}.id}")
789
791
  %(query {
790
- #{class_name.singularize.underscore}(id: \\"\#{data_id}\\") {
792
+ #{class_name.singularize.camelize(:lower)}(id: \\"\#{data_id}\\") {
791
793
  id
792
794
  EOS
793
795
  end
@@ -813,7 +815,7 @@ end
813
815
  end
814
816
 
815
817
  it "return #{class_name.camelize} Data" do
816
- a1 = result.dig("data", "#{class_name.singularize.underscore}")
818
+ a1 = result.dig("data", "#{class_name.singularize.camelize(:lower)}")
817
819
  expect(a1).to include(
818
820
  "id" => be_a(String),
819
821
  EOS
@@ -1,3 +1,3 @@
1
1
  module Souls
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.5"
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.12.0
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI