souls 1.5.4 → 1.5.5

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: 1d1698267d5f996ab2e7163347253260c6e45b4857b9f8d9ea1adfe9e5ebf8a8
4
- data.tar.gz: dc1dd4f776482f900f6219e74dc79d447ced21bf0110e90182b49c1e0d5543d7
3
+ metadata.gz: '0832b8196b85749aba79efb983d1ac750903094a2c12dffceece48f885797a13'
4
+ data.tar.gz: 0c7912b5876996c503fc87690bb861ffb8b195bc1176d54ffa06b6c7e297938e
5
5
  SHA512:
6
- metadata.gz: aacc81218b89d6a7987654c52d9e4a6bd3aa33ad9955a2340e3725d4bdd9a69b06db9649a8dd9754b2b4d51c068197a4fe0d647f72b9e72fcb32049a0cf55764
7
- data.tar.gz: 100e3e13d47599bd94204e34014181036add0f41696bac35abf329cafadb96be5179438db5539c5154febeb272fd282357c4a03649ee35efafaa7e290dd0b993
6
+ metadata.gz: b1923f0e51e212cefd708bcafb29aea698cb094720c8afbcd9b3a007a7b6536ee34022b9eeb8a160a336421558f3242181a4411ba12880f0e536e8e71fabc42d
7
+ data.tar.gz: 3e3db2be3a2374645d08add59d28b51f28565c727c7f0ff3c065586ce0a53cab585a1f1a2088c0be0e296635a3d74e52601b5dab0df3abfdf85cb021f6938673
@@ -0,0 +1,27 @@
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
+ project_id = prompt.ask("Project ID:", default: souls.project_id)
8
+ region = prompt.ask("Region:", default: souls.region)
9
+ endpoint = prompt.ask("Endpoint:", default: souls.endpoint)
10
+
11
+ Dir.chdir(Souls.get_mother_path.to_s) do
12
+ mother_conf_path = "config/souls.rb"
13
+ api_conf_path = "apps/api/config/souls.rb"
14
+ mother_conf = File.readlines(mother_conf_path)
15
+ api_conf = File.readlines(api_conf_path)
16
+ mother_conf[2] = " config.project_id = \"#{project_id}\"\n"
17
+ mother_conf[3] = " config.region = \"#{region}\"\n"
18
+ mother_conf[4] = " config.endpoint = \"#{endpoint}\"\n"
19
+ api_conf[2] = " config.project_id = \"#{project_id}\"\n"
20
+ api_conf[3] = " config.region = \"#{region}\"\n"
21
+ api_conf[4] = " config.endpoint = \"#{endpoint}\"\n"
22
+ File.open(mother_conf_path, "w") { |f| f.write(mother_conf.join) }
23
+ File.open(api_conf_path, "w") { |f| f.write(api_conf.join) }
24
+ end
25
+ end
26
+ end
27
+ 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.4".freeze
2
+ VERSION = "1.5.5".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.5.4
1
+ 1.5.5
@@ -1 +1 @@
1
- 1.5.4
1
+ 1.5.5
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.4
4
+ version: 1.5.5
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