souls 1.5.5 → 1.6.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: '0832b8196b85749aba79efb983d1ac750903094a2c12dffceece48f885797a13'
4
- data.tar.gz: 0c7912b5876996c503fc87690bb861ffb8b195bc1176d54ffa06b6c7e297938e
3
+ metadata.gz: 7af1bea47e77837993f6181df8213275513710793230ec4fbb35ee0713d43deb
4
+ data.tar.gz: b69eb488894a83c99c324702411769877506163af42c596bfd3b1e92cb78e505
5
5
  SHA512:
6
- metadata.gz: b1923f0e51e212cefd708bcafb29aea698cb094720c8afbcd9b3a007a7b6536ee34022b9eeb8a160a336421558f3242181a4411ba12880f0e536e8e71fabc42d
7
- data.tar.gz: 3e3db2be3a2374645d08add59d28b51f28565c727c7f0ff3c065586ce0a53cab585a1f1a2088c0be0e296635a3d74e52601b5dab0df3abfdf85cb021f6938673
6
+ metadata.gz: e29e8f9651a213ebdb4ccafda9958a5895018bfc75d01f00bb501d755dbd482a6f7a8bdcc0f855964434df9240a438863c0314eb1825ff09d9193503af04049c
7
+ data.tar.gz: f9da4b984b33ed487e685ca88b231f918f05ff5a58311bda130709c9948bd858c40805c6ee4bc503cb3198bf2afb96b6a8790391cfe5efa08c2ba0ead3d465ba
@@ -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
@@ -4,8 +4,10 @@ module Souls
4
4
  def config
5
5
  souls = Souls.configuration
6
6
  prompt = TTY::Prompt.new
7
+ regions = `gcloud app regions list | awk '{print $1}'`.split("\n")
8
+ regions.shift
7
9
  project_id = prompt.ask("Project ID:", default: souls.project_id)
8
- region = prompt.ask("Region:", default: souls.region)
10
+ region = prompt.select("Region:", regions, default: souls.region)
9
11
  endpoint = prompt.ask("Endpoint:", default: souls.endpoint)
10
12
 
11
13
  Dir.chdir(Souls.get_mother_path.to_s) do
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.5.5".freeze
2
+ VERSION = "1.6.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.5.5
1
+ 1.6.1
@@ -1 +1 @@
1
- 1.5.5
1
+ 1.6.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: 1.5.5
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI