souls 1.5.3 → 1.5.7

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: 72186fdb6eb5c908f3862bbc5951c4d898a18119c9c86f87ec62daa0930b6ca7
4
- data.tar.gz: bc96b74682d102ea462ea98f6680e87c722a9a1b59fb232713820dafa6f08edb
3
+ metadata.gz: 9668744d6f7ab994894ba17ef1c53d0f69b5e828a6fc4720645ce7bc43ea6c4f
4
+ data.tar.gz: bc9f74c7d5c3b79ac0e0dcb89a5dfc8065eb1596f6bae120b038090dadf6b3cc
5
5
  SHA512:
6
- metadata.gz: 8cdca5ac960e5be661ced4c27516b369339ccc27bd0c65de34da007fb5940b7d6bca942773de295d384230a09ae828b30bfe88d52c7bef394342bd40a1d85799
7
- data.tar.gz: 5176d24f7839f3673a8ab22e057de99481a421f87e65b442f7147c8180bc8d188ca60cf6d01b424f7d20a114150592679a9c934356415a5bde353aea8137df47
6
+ metadata.gz: f833edff4c62daa9f6c43a86070c68772da1958e243c8143545446cf3d2ed9ec18376776714a2ba7d8012e101ae80a6e10af1b1010ef90e6a03c92aeb390a992
7
+ data.tar.gz: 7abe95a9c4aadde62a01cb293fd4f463518075727590b2bfcfed8252807d7ef5dac803e90a337cf189189e01b07169a54ea81926747f76961b385073a5c203f5
@@ -28,7 +28,7 @@ module Souls
28
28
  SOULS_DB_PW=#{password}
29
29
  SOULS_DB_USER=postgres
30
30
  SOULS_GCP_PROJECT_ID=#{project_id}
31
- SOULS_SECRET_KEY_BASE="#{SecureRandom.base64(64)}"
31
+ SOULS_SECRET_KEY_BASE='#{SecureRandom.base64(64)}'
32
32
  TZ="#{region_to_timezone(region: region)}"
33
33
  TEXT
34
34
  end
@@ -44,7 +44,7 @@ module Souls
44
44
  SOULS_GCP_PROJECT_ID=#{project_id}
45
45
  SOULS_GCP_REGION=#{region}
46
46
  SOULS_GCLOUDSQL_INSTANCE="#{project_id}:#{region}:#{instance_name}"
47
- SOULS_SECRET_KEY_BASE="#{SecureRandom.base64(64)}"
47
+ SOULS_SECRET_KEY_BASE='#{SecureRandom.base64(64)}'
48
48
  TZ="#{region_to_timezone(region: region)}"
49
49
  TEXT
50
50
  end
@@ -7,6 +7,8 @@ module Souls
7
7
  puts(Paint["`souls new souls-app`", :yellow])
8
8
  exit
9
9
  end
10
+ file_dir = "./#{app_name}"
11
+ raise(StandardError, "Directory Already Exist!") if Dir.exist?(file_dir)
10
12
 
11
13
  service_name = "api"
12
14
  download_souls(app_name: app_name, service_name: service_name)
@@ -0,0 +1,29 @@
1
+ module Souls
2
+ class Upgrade < Thor
3
+ desc "config", "Update config/souls.rb"
4
+ def config
5
+ souls = Souls.configuration
6
+ prompt = TTY::Prompt.new
7
+ regions = `gcloud app regions list | awk '{print $1}'`.split("\n")
8
+ regions.shift
9
+ project_id = prompt.ask("Project ID:", default: souls.project_id)
10
+ region = prompt.select("Region:", regions, default: souls.region)
11
+ endpoint = prompt.ask("Endpoint:", default: souls.endpoint)
12
+
13
+ Dir.chdir(Souls.get_mother_path.to_s) do
14
+ mother_conf_path = "config/souls.rb"
15
+ api_conf_path = "apps/api/config/souls.rb"
16
+ mother_conf = File.readlines(mother_conf_path)
17
+ api_conf = File.readlines(api_conf_path)
18
+ mother_conf[2] = " config.project_id = \"#{project_id}\"\n"
19
+ mother_conf[3] = " config.region = \"#{region}\"\n"
20
+ mother_conf[4] = " config.endpoint = \"#{endpoint}\"\n"
21
+ api_conf[2] = " config.project_id = \"#{project_id}\"\n"
22
+ api_conf[3] = " config.region = \"#{region}\"\n"
23
+ api_conf[4] = " config.endpoint = \"#{endpoint}\"\n"
24
+ File.open(mother_conf_path, "w") { |f| f.write(mother_conf.join) }
25
+ File.open(api_conf_path, "w") { |f| f.write(api_conf.join) }
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,2 +1,3 @@
1
1
  require_relative "./gemfile"
2
2
  require_relative "./submodule"
3
+ require_relative "./config"
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.5.3".freeze
2
+ VERSION = "1.5.7".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.5.3
1
+ 1.5.7
@@ -1 +1 @@
1
- 1.5.3
1
+ 1.5.7
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: 1.5.3
4
+ version: 1.5.7
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-11-08 00:00:00.000000000 Z
13
+ date: 2021-11-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -217,6 +217,7 @@ files:
217
217
  - lib/souls/cli/update/rspec_resolver.rb
218
218
  - lib/souls/cli/update/type.rb
219
219
  - lib/souls/cli/update/type_rbs.rb
220
+ - lib/souls/cli/upgrade/config.rb
220
221
  - lib/souls/cli/upgrade/gemfile.rb
221
222
  - lib/souls/cli/upgrade/index.rb
222
223
  - lib/souls/cli/upgrade/submodule.rb