souls 0.56.2 → 0.57.1

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: 743b8862c84f904855fcf5e8f562a713fff495f9143dcad2708e72f6cdfcac97
4
+ data.tar.gz: 10a5cc6d757352b0490c98b7f22939918cffb902b7d71e435c0d2e576a2c4ea1
5
5
  SHA512:
6
- metadata.gz: 706449069b07a9903d3c7519c576f23ed457ff31781e64c6cd49972e720175353f391f769487be1a8b35395fc2fc39b950f785a839764a2a1664c4cd18f99370
7
- data.tar.gz: cec762867fa93c55f3d0ae72b804e36026a56654cd8ee0076ce3f1d88650c8d3ed20db2d706274cae787ec9784479a573d7d780c52919612e8c59f66e2742eed
6
+ metadata.gz: d5a8fbecf4cb443c6363fbbcb7462ac88966d422f9ace1d150aac2873192aaf1cc61dcec7171cf6ea6f4a1120c3dddf5e8f24d26c94b280188bdc7fe03dc631b
7
+ data.tar.gz: be153fdfbb64020dfb3486055b3eb635ccfd791d8134a57e83136a4dd5234bbbf610c7459c1842bc7e4855129a525b8c0d50401e126a3cec059dd0dae9431115
@@ -4,7 +4,7 @@ module Souls
4
4
  def policy_rbs(class_name)
5
5
  file_path = ""
6
6
  Dir.chdir(Souls.get_mother_path.to_s) do
7
- file_dir = "./sig/api/app/graphql/types/policies/"
7
+ file_dir = "./sig/api/app/graphql/policies/"
8
8
  FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
9
9
  singularized_class_name = class_name.underscore.singularize
10
10
  file_path = "#{file_dir}#{singularized_class_name}_policy.rbs"
@@ -48,7 +48,6 @@ module Souls
48
48
 
49
49
  File.open(file_path, "a") do |f|
50
50
  f.write(<<~TEXT)
51
- end
52
51
  end
53
52
  end
54
53
  module Types
@@ -132,6 +132,8 @@ module Souls
132
132
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile.dev")
133
133
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Procfile")
134
134
  system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/Steepfile")
135
+ system("cd #{app_name} && curl -OL https://storage.googleapis.com/souls-bucket/boilerplates/gitignore")
136
+ system("cd #{app_name} && mv gitignore .gitignore")
135
137
  FileUtils.rm(sig_name)
136
138
  end
137
139
 
@@ -160,9 +162,11 @@ module Souls
160
162
  puts(line)
161
163
  endroll = <<~TEXT
162
164
  Easy to Run
163
- $ cd #{app_name}/apps/#{service_name}
165
+ $ cd #{app_name}
164
166
  $ bundle
165
- $ souls s
167
+ $ souls add_submodule
168
+ $ souls check
169
+ $ cd apps/api && souls s
166
170
  Go To : http://localhost:4000
167
171
 
168
172
  Doc: https://souls.elsoul.nl
@@ -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.57.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.35.2
1
+ 0.36.1
@@ -1 +1 @@
1
- 0.35.2
1
+ 0.36.1
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.57.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI