souls 0.71.1 → 0.71.2

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: ad9d5643107678ff3aab040a1bf6e6c2313bd8fb686f78ad2b39c84d983e7c83
4
- data.tar.gz: 9bcf98ab7ff78452c104c5d4d0330616fa11c46d2072abec0dba2d356f48bed3
3
+ metadata.gz: 9120fde6e7d3918ad809f00d7c19c381273d548b0c1ba15e4d69174217f1f0d1
4
+ data.tar.gz: d42ff7f40a4e8ad5e2d77f20a8e557ca35f7de53980bbc2f3c353205a5109f2c
5
5
  SHA512:
6
- metadata.gz: 22c656466cd3a7c86e547a368557c0a3c71ebeed67bdf0f7d6388a03d6a573dc8b0c352434b7b3805e8364b8602155c50f9c5b4bfef6ad74dce2c1c6125412ae
7
- data.tar.gz: 22c4f6010d42209507111495125a25f823eef45a0b33dc488bdbe74aef5cf0814b0c78d9a0d19a9dc6ba4afbfb1b9f645d28551dfaceb0973ae58f17508e278f
6
+ metadata.gz: af1bcf92a21b3420d659332a6ce34b05add7f3281b7fe8ade18bc3d240cc8bd779921d78ff1cacfd56b0e97727385def8b294cb53b1025184cee24d19c62c12d
7
+ data.tar.gz: 0bc4d48031e7a48b4ee470983e6147e4fd27e7ae73b5389917bd3f18b788d9e4433aaf1158e0296986295dfbd46acec73000c8097df17dbbb3b0f84bfbdb287f
@@ -23,8 +23,6 @@ module Souls
23
23
  new_cols.each_with_index do |col, i|
24
24
  type = Souls.type_check(col[:type])
25
25
  type = "[#{type}]" if col[:array]
26
- args = check_mutation_argument(class_name: class_name)
27
- next if args.include?(col[:column_name])
28
26
  next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
29
27
 
30
28
  if i.zero?
@@ -38,8 +36,6 @@ module Souls
38
36
  new_cols.each_with_index do |col, i|
39
37
  type = Souls.type_check(col[:type])
40
38
  type = "[#{type}]" if col[:array]
41
- args = check_mutation_argument(class_name: class_name)
42
- next if args.include?(col[:column_name])
43
39
  next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
44
40
 
45
41
  if i.zero?
@@ -89,8 +85,6 @@ module Souls
89
85
  new_cols.each_with_index do |col, i|
90
86
  type = Souls.type_check(col[:type])
91
87
  type = "[#{type}]" if col[:array]
92
- args = check_mutation_argument(class_name: class_name)
93
- next if args.include?(col[:column_name])
94
88
  next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
95
89
 
96
90
  if i.zero?
@@ -105,8 +99,6 @@ module Souls
105
99
  new_cols.each_with_index do |col, i|
106
100
  type = Souls.type_check(col[:type])
107
101
  type = "[#{type}]" if col[:array]
108
- args = check_mutation_argument(class_name: class_name)
109
- next if args.include?(col[:column_name])
110
102
  next if col[:column_name] == "created_at" || col[:column_name] == "updated_at"
111
103
 
112
104
  if i.zero?
@@ -132,20 +124,5 @@ module Souls
132
124
  rescue Thor::Error => e
133
125
  raise(Thor::Error, e)
134
126
  end
135
-
136
- private
137
-
138
- def check_mutation_argument(class_name: "user", action: "create")
139
- singularized_class_name = class_name.singularize.underscore
140
- dir_name = "./sig/api/app/graphql/mutations/base/#{singularized_class_name}"
141
- file_path = "#{dir_name}/#{action}_#{singularized_class_name}.rbs"
142
- args = []
143
- File.open(file_path) do |f|
144
- f.each_line do |line|
145
- args << line.split(",")[0].gsub("argument :", "").strip.underscore if line.include?("argument")
146
- end
147
- end
148
- args
149
- end
150
127
  end
151
128
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.71.1".freeze
2
+ VERSION = "0.71.2".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.50.1
1
+ 0.50.2
@@ -1 +1 @@
1
- 0.50.1
1
+ 0.50.2
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.71.1
4
+ version: 0.71.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI