souls 0.56.2 → 0.56.3

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: cb3c37d1fb2a9222199a2ea72263029b0475fff6dd87bde47d6f1aca977f1b50
4
- data.tar.gz: c56c3ce5e9f0f68094784e6140114c2c6d60f63b91f830118a9441c74c5072a8
3
+ metadata.gz: e5360bb3d20a6a1f91eda45b66406933ed4bcaf0d96a2399b422253aab666414
4
+ data.tar.gz: 1b4c4b01fbb83c71c750ffb473d6d98217b2475c3d19fe6f2303ce3966048145
5
5
  SHA512:
6
- metadata.gz: 706449069b07a9903d3c7519c576f23ed457ff31781e64c6cd49972e720175353f391f769487be1a8b35395fc2fc39b950f785a839764a2a1664c4cd18f99370
7
- data.tar.gz: cec762867fa93c55f3d0ae72b804e36026a56654cd8ee0076ce3f1d88650c8d3ed20db2d706274cae787ec9784479a573d7d780c52919612e8c59f66e2742eed
6
+ metadata.gz: 5414a53f3bef877e03f5bb0ecbb5325c88378349a4c3c267609080e7363efd64ce68b750d00b775aba7e7c4948a514c61d247fe3da4dab58655e4075f25ecde9
7
+ data.tar.gz: 6ea321a597b311e4019c92f246a803d40b6264e223ac3152ad73100a181542dc406c9b10d344bd1259c5d3679eab6beb4a6557129ceff59c6405b83fe44cec77
@@ -112,19 +112,22 @@ module Souls
112
112
  end
113
113
 
114
114
  def get_relation_params(class_name: "user", col: "")
115
- cols =
116
- if col == "mutation"
117
- get_columns_num_no_timestamp(class_name: class_name)
118
- else
119
- get_columns_num(class_name: class_name)
120
- end
121
- relation_params = cols.select { |col| col[:column_name].match?(/_id$/) }
122
- user_check =
123
- relation_params.map do |param|
124
- param[:column_name] == "user_id"
125
- end
126
- user_exist = user_check.include?(true)
127
- { user_exist: user_exist, params: cols, relation_params: relation_params }
115
+ require("#{Souls.get_api_path}/config/souls")
116
+ Dir.chdir(Souls.get_api_path.to_s) do
117
+ cols =
118
+ if col == "mutation"
119
+ get_columns_num_no_timestamp(class_name: class_name)
120
+ else
121
+ get_columns_num(class_name: class_name)
122
+ end
123
+ relation_params = cols.select { |col| col[:column_name].match?(/_id$/) }
124
+ user_check =
125
+ relation_params.map do |param|
126
+ param[:column_name] == "user_id"
127
+ end
128
+ user_exist = user_check.include?(true)
129
+ return { user_exist: user_exist, params: cols, relation_params: relation_params }
130
+ end
128
131
  end
129
132
 
130
133
  def get_columns_num(class_name: "user")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.56.2".freeze
2
+ VERSION = "0.56.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.35.2
1
+ 0.35.3
@@ -1 +1 @@
1
- 0.35.2
1
+ 0.35.3
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.56.2
4
+ version: 0.56.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI