souls 1.4.7 → 1.4.8

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: 0bb716fc10f8ee318b79de37472aba1d7b8836a822ef7ea92158068e5739c00e
4
- data.tar.gz: b2c721518f59259f914d03118dc8d93f4140dbfe9dc1df515791215397968724
3
+ metadata.gz: f08c7ec99a1de1b84996141a2ac4c47955f116d97e868bca9e555e61a3d5cf42
4
+ data.tar.gz: c92858cdab4dc6ee344340df0c8f76fad89d307e127c11271af81f33b38a994c
5
5
  SHA512:
6
- metadata.gz: 43ca2c7dda41ec007dfb21f1d642d894573ca3319d2bf3eb7446b2d2ed9881793c1c09f498c1848ecf7f858b80950b758989cb2c650eaf8a296c571a6d709699
7
- data.tar.gz: cdf46fe70207c2ec14898827b0178e4e5350350462d96f2ec70e42e0c2be58b0a6b8c6d468145035a5ce3ce1f39d5fcf404920462e6391cc5cc0066b3bee270f
6
+ metadata.gz: 189723b20b0400449b4969f113f6f2c6699d6b1b3fa7997aa1d7b55524f7cb8947d42e063f72992cf7a5793b6f3399e9eab4a88cf35fa8637c2573f5c270d920
7
+ data.tar.gz: 7d3be8283464cb5d4196cc34d2207326ab8fde1e3ac9cb24c2a676ef101d7cf9c06704a6b930c40141e9cee1620978abdaf160e3fe0a682a95e1dae8adbb4592
data/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
  <a aria-label="Ruby logo" href="https://el-soul.com">
5
5
  <img src="https://badgen.net/badge/icon/Made%20by%20ELSOUL?icon=ruby&label&color=black&labelColor=black">
6
6
  </a>
7
+ <a href="https://twitter.com/intent/follow?screen_name=SOULsOpenSource">
8
+ <img src="https://img.shields.io/twitter/follow/SOULsOpenSource.svg?label=Follow%20@SOULsOpenSource" alt="Follow @SOULsOpenSource" />
9
+ </a>
7
10
  <br/>
8
11
 
9
12
  <a aria-label="Ruby Gem version" href="https://rubygems.org/gems/souls">
@@ -85,7 +85,7 @@ module Souls
85
85
  end
86
86
 
87
87
  def network_list
88
- system("gcloud compute network list")
88
+ system("gcloud compute networks list")
89
89
  end
90
90
 
91
91
  def nat_credit
@@ -102,7 +102,7 @@ module Souls
102
102
 
103
103
  def set_gh_secret_json
104
104
  file_path = "config/keyfile.json"
105
- system("gh secret set GCP_SA_KEY < #{file_path}")
105
+ system("gh secret set SOULS_GCP_SA_KEY < #{file_path}")
106
106
  FileUtils.rm(file_path)
107
107
  end
108
108
  end
@@ -2,9 +2,10 @@ module Souls
2
2
  class Sql < Thor
3
3
  desc "create_instance", "Create Google Cloud SQL - PostgreSQL13"
4
4
  method_option :region, default: "", aliases: "--region", desc: "Google Cloud Platform Region"
5
- method_option :root_password, default: "", aliases: "--root-password", desc: "Set Cloud SQL Root Password"
6
5
  method_option :mysql, type: :boolean, default: false, aliases: "--mysql", desc: "Set Cloud SQL Type to MySQL"
7
6
  def create_instance
7
+ prompt = TTY::Prompt.new
8
+ password = prompt.mask("Set DB PassWord:")
8
9
  app_name = Souls.configuration.app
9
10
  project_id = Souls.configuration.project_id
10
11
  instance_name = Souls.configuration.instance_name if instance_name.blank?
@@ -15,14 +16,14 @@ module Souls
15
16
  system(
16
17
  "gcloud sql instances create #{instance_name} \
17
18
  --database-version=#{db_type} --cpu=1 --memory=3750MB --zone=#{zone} \
18
- --root-password='#{options[:root_password]}' --database-flags cloudsql.iam_authentication=on"
19
+ --root-password='#{password}' --database-flags cloudsql.iam_authentication=on"
19
20
  )
20
21
  Dir.chdir(Souls.get_api_path.to_s) do
21
22
  file_path = ".env"
22
23
  File.open(file_path, "w") do |line|
23
24
  line.write(<<~TEXT)
24
25
  SOULS_DB_HOST=#{get_sql_ip.strip}
25
- SOULS_DB_PW=#{options[:root_password]}
26
+ SOULS_DB_PW=#{password}
26
27
  SOULS_DB_USER=postgres
27
28
  SOULS_GCP_PROJECT_ID=#{project_id}
28
29
  SOULS_SECRET_KEY_BASE="#{SecureRandom.base64(64)}"
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.4.7".freeze
2
+ VERSION = "1.4.8".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.4.7
1
+ 1.4.8
@@ -1 +1 @@
1
- 1.4.7
1
+ 1.4.8
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
8
8
  - KishiTheMechanic
9
9
  - James Neve
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
13
  date: 2021-11-08 00:00:00.000000000 Z
@@ -232,7 +232,7 @@ metadata:
232
232
  homepage_uri: https://souls.elsoul.nl
233
233
  source_code_uri: https://github.com/elsoul/souls
234
234
  changelog_uri: https://github.com/elsoul/souls
235
- post_install_message:
235
+ post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths:
238
238
  - lib
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements: []
250
250
  rubygems_version: 3.2.22
251
- signing_key:
251
+ signing_key:
252
252
  specification_version: 4
253
253
  summary: Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep,
254
254
  Active Record, RSpec, RuboCop, and Google Cloud.