souls 0.25.8 → 0.25.12

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: 96b1f939b0fbf60c8ff2c91072274a89798066d4fbb36e60d1d6114bf316b1f6
4
- data.tar.gz: 4dde839b87723d20ffc0cbc5e273585c2ff7d75a73b2e72122867fbdaf8727d3
3
+ metadata.gz: 010f21f11478d37751cc98517df31f540578476dd6de62a8d983e5831352c5c5
4
+ data.tar.gz: b05740f50397a99e95a03fdb0263cafc9e7e083d264dfd50e3866ce959b2b64b
5
5
  SHA512:
6
- metadata.gz: 678ceff976d6b7c93dc8d86787b63949eea97c43d262b839b14720d62721281963a09818160982e80e28cfc94791bb32c4b0b07de251220fd7761d7e3ddd8ba2
7
- data.tar.gz: 3dea6712b0561a33e6ef5e11f18f8b4e1dcef06f017df566b259fcbbb74384407152b23e8658f2c38a9d62013a936e4dc0eae8ac533ed5dddfdd52b7711bb0e2
6
+ metadata.gz: 3d63b61b0fe9e62d002f2eeeb889600c9fd930d0818ca7eb180e04b705d0d2ad2c72e299cbfafad493bc2761aae58847ce8efb95518f8c85f169f97f149ca9ae
7
+ data.tar.gz: f306f72d238c9389590642866765fd60372ae67d67d6d34d33f5b10311d35eb6e31764e890008b350d733e2468778092233904b6fdc3a7eef13022db85a18342
data/README.md CHANGED
@@ -21,10 +21,12 @@
21
21
 
22
22
  Welcome to SOULs Serverless Application Framework!
23
23
 
24
- SOULs is a Serverless Application Framework with GraphQL.
24
+ SOULs is a Serverless Application Framework with Ruby GraphQL.
25
25
  SOULs has six strains, API, Worker, Console, Admin, Media, Doc, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud. No more routing for Backends!
26
26
  You can focus on your business logic. No more infra problems.
27
27
 
28
+ ![画像](https://storage.googleapis.com/souls-bucket/imgs/SOULs.jpg)
29
+
28
30
  SOULs creates 6 types of framework.
29
31
 
30
32
  1. API - GraphQL (Ruby) - Simple API - Cloud Run
data/exe/souls CHANGED
@@ -78,10 +78,8 @@ begin
78
78
  Whirly.status = "Done!"
79
79
  end
80
80
  when "release"
81
- `gem uninstall -x --force`
82
- sleep(1)
83
81
  system("gem install souls")
84
- sleep(1)
82
+ sleep(3)
85
83
  current_souls_ver = Souls::VERSION.strip.split(".").map(&:to_i)
86
84
  prompt = TTY::Prompt.new
87
85
  choices = [
@@ -241,5 +239,4 @@ begin
241
239
  end
242
240
  rescue StandardError => e
243
241
  puts(Paint[e, :red])
244
- puts(e.backtrace)
245
242
  end
data/lib/souls.rb CHANGED
@@ -178,9 +178,11 @@ module Souls
178
178
  case current_dir_name
179
179
  when "souls"
180
180
  system("echo '#{new_ver}' > lib/souls/versions/.souls_#{service_name}_version")
181
+ system("echo '#{new_ver}' > apps/#{service_name}/.souls_#{service_name}_version")
181
182
  system("cd apps/ && tar -czf ../#{service_name}.tgz #{service_name}/ && cd ..")
182
183
  when "api", "worker", "console", "admin", "media"
183
184
  system("echo '#{new_ver}' > lib/souls/versions/.souls_#{service_name}_version")
185
+ system("echo '#{new_ver}' > .souls_#{service_name}_version")
184
186
  system("cd .. && tar -czf ../#{service_name}.tgz #{service_name}/ && cd #{service_name}")
185
187
  else
186
188
  raise(StandardError, "You are at wrong directory!")
@@ -258,11 +260,9 @@ module Souls
258
260
  git_status = `git status`
259
261
  result =
260
262
  %w[api worker].map do |service_name|
261
- if git_status.include?("apps/#{service_name}/")
262
- service_name
263
- else
264
- next
265
- end
263
+ next unless git_status.include?("apps/#{service_name}/")
264
+
265
+ service_name
266
266
  end
267
267
  result.compact
268
268
  end
@@ -25,7 +25,6 @@ module Souls
25
25
  puts("Operating permission to run.googleapis.com")
26
26
  end
27
27
 
28
-
29
28
  def create_sql_instance(instance_name: "souls-db", root_pass: "Postgre123!", zone: "asia-northeast1-b")
30
29
  system(
31
30
  "gcloud sql instances create #{instance_name}
@@ -136,7 +136,7 @@ module Souls
136
136
  def self.resolver(class_name: "souls")
137
137
  singularized_class_name = class_name.singularize.underscore
138
138
  file_path = "./app/graphql/resolvers/#{singularized_class_name}_search.rb"
139
- return "Resolver already exist! #{file_path}" if File.exist?(file_path)
139
+ raise(StandardError, "Resolver already exist! #{file_path}") if File.exist?(file_path)
140
140
 
141
141
  resolver_head(class_name: singularized_class_name)
142
142
  resolver_params(class_name: singularized_class_name)
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.25.8".freeze
2
+ VERSION = "0.25.12".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.4.11
1
+ 0.4.15
@@ -1 +1 @@
1
- 0.4.11
1
+ 0.4.15
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.25.8
4
+ version: 0.25.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-07-23 00:00:00.000000000 Z
13
+ date: 2021-07-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paint
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.2.15
122
+ rubygems_version: 3.2.22
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: SOULs is a Serverless Application Framework. SOULs has four strains, API,