souls 1.3.1 → 1.3.2

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: 9586ab30b5189eaa4af5cbd037ad0650d78a0ce8c89fd1591528d7ec4da70d8a
4
- data.tar.gz: 14087a6358389fdc3f0de14ac3cde00233add048add040f379e229239d0f954f
3
+ metadata.gz: e903e408a1e67cf84a2817b0e7144eec61a5c07011b9f2299b4d3b01fdcf4c2e
4
+ data.tar.gz: 0572dec02f099651cdc15625eb75189c454aa3b61bdba20bd551c1f9dfe88bd7
5
5
  SHA512:
6
- metadata.gz: e28e330548810a8804c51b287e4991c973fc918a5c2b8dab694a9998e6d5e930dc7a53cff8b33fb23db5f4ba501bea42bd931fb0c6d769f7f1bd6f287b91a768
7
- data.tar.gz: eafd2c306469f2685fa93acd474afd51c729469bcc0721b7157c269a760364d84271ba7698f3bb20fcdd1872c2bf9ea1c20ddf583f5ce6deff795e879769ad64
6
+ metadata.gz: 775426654c16e931505331ff4cc383c6652244b4fe76f9df41b5e3fefc287ee3a1c38b0adf4234a1c9069abc568678cdebafd06b09f95067f5cf6192264d1d39
7
+ data.tar.gz: 3602a072188c4f27d7292a8428cbe82d8188b1de2b23a6ef6bf9f8a2675c036fd5ea6a10f68833a5c63753d996144f2cc80cf63a2eb60538fd371716ebe981fa
@@ -5,7 +5,7 @@ module Souls
5
5
  method_option :root_password, default: "", aliases: "--root-password", desc: "Set Cloud SQL Root Password"
6
6
  method_option :mysql, type: :boolean, default: false, aliases: "--mysql", desc: "Set Cloud SQL Type to MySQL"
7
7
  def create_instance
8
- instance_name = "souls-#{Souls.configuration.app}-db" if instance_name.blank?
8
+ instance_name = Souls.configuration.instance_name if instance_name.blank?
9
9
  region = Souls.configuration.region if options[:region].blank?
10
10
  db_type = options[:mysql] ? "MYSQL_8_0" : "POSTGRES_13"
11
11
 
@@ -46,7 +46,7 @@ module Souls
46
46
  desc "assign_network", "Assign Network"
47
47
  def assign_network
48
48
  app_name = Souls.configuration.app
49
- instance_name = "#{Souls.configuration.app}-db"
49
+ instance_name = Souls.configuration.instance_name
50
50
  project_id = Souls.configuration.project_id
51
51
  system("gcloud beta sql instances patch #{instance_name} --project=#{project_id} --network=#{app_name}")
52
52
  rescue Thor::Error => e
@@ -91,8 +91,8 @@ module Souls
91
91
  desc "assgin_ip", "Add Current Grobal IP to White List"
92
92
  def assign_ip(instance_name: "", ip: "")
93
93
  ip = `curl inet-ip.info` if ip.blank?
94
- project_id = Souls.configuration.project_id
95
- instance_name = "#{Souls.configuration.app}-db" if instance_name.blank?
94
+ project_id = Souls.configuration.project_id if instance_name.blank?
95
+ instance_name = Souls.configuration.instance_name if instance_name.blank?
96
96
  system(
97
97
  "
98
98
  gcloud beta sql instances patch #{instance_name} \
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.3.1".freeze
2
+ VERSION = "1.3.2".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
data/lib/souls.rb CHANGED
@@ -49,5 +49,9 @@ module Souls
49
49
  @fixed_gems = nil
50
50
  @workers = nil
51
51
  end
52
+
53
+ def instance_name
54
+ "souls-#{@app}-db"
55
+ end
52
56
  end
53
57
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
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
- date: 2021-10-29 00:00:00.000000000 Z
13
+ date: 2021-11-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -231,7 +231,7 @@ metadata:
231
231
  homepage_uri: https://souls.elsoul.nl
232
232
  source_code_uri: https://github.com/elsoul/souls
233
233
  changelog_uri: https://github.com/elsoul/souls
234
- post_install_message:
234
+ post_install_message:
235
235
  rdoc_options: []
236
236
  require_paths:
237
237
  - lib
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  requirements: []
249
249
  rubygems_version: 3.2.22
250
- signing_key:
250
+ signing_key:
251
251
  specification_version: 4
252
252
  summary: Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep,
253
253
  Active Record, RSpec, RuboCop, and Google Cloud.