souls 0.32.0 → 0.32.4

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: 629d9272b1d1b1f8c09898cb928b72a7ff0077713386911b5e6dd6449b50b919
4
- data.tar.gz: d67c0a7542abf5daaf1c9c909343ba133a40cd46d576a01e89da432960aa11c0
3
+ metadata.gz: d4db189c59c8f802428cfb69cdb1b33bba0409a093f613b0dec013292087572f
4
+ data.tar.gz: 696e2f1503e32936fc7e79664da5d2c20b735f0f806f38a47edf85db6ce32379
5
5
  SHA512:
6
- metadata.gz: 8a7177bc0f0b933516487a0ebf238c54c9d4ca4a711fa2804c48d5b2bebdb03d10e7ccf81c8989ddcb99a5e089537aab5ab025b8a452ec8b3a5eb5855f844d3f
7
- data.tar.gz: a50e58aba5430903013f8334922032ef900698a6866fc1b6547bbf3692e945ff90fe82908a5b18f1034e803997a5cd7585f67f5bd031c53f52986c5b681f02d5
6
+ metadata.gz: dfbca87b94f0b0d5a5c6c7c0caedd8649cba8e86cc89d84c74e901c0697527081d996913417a92d91831423eaef7850571878d44929e3a05eb2b26bf0909d1ed
7
+ data.tar.gz: a4faef027815c30bf626f105feaf5d806e8cebdf784f6e6c400bbfe796e8c6a62bd4930023df4ee7ef9bf43d9096176a6a0a178a0b004076b5da7b0cc58e8edb
data/exe/souls CHANGED
@@ -2,7 +2,7 @@
2
2
  require "souls"
3
3
  begin
4
4
  souls_command = ARGV[0]
5
- require("./config/souls") unless ["new", "i", "-v", "deploy"].include?(souls_command)
5
+ require("./config/souls") unless ["new", "docker", "-v", "deploy"].include?(souls_command)
6
6
  rescue StandardError
7
7
  puts("Make sure you are at SOULs APP directory!")
8
8
  end
@@ -90,9 +90,9 @@ begin
90
90
  project_id = Souls.configuration.project_id
91
91
  Souls::Gcloud::Iam.create_service_account(service_account: app_name)
92
92
  Souls::Gcloud::Iam.create_service_account_key(service_account: app_name, project_id: project_id)
93
- Souls::Gcloud::Iam.export_key_to_console
94
93
  Souls::Gcloud.enable_permissions
95
94
  Souls::Gcloud::Iam.add_permissions(service_account: app_name, project_id: project_id)
95
+ Souls::Gcloud::Iam.export_key_to_console
96
96
  when "auth_login"
97
97
  project_id = Souls.configuration.project_id
98
98
  Souls::Gcloud.auth_login(project_id: project_id)
@@ -105,8 +105,8 @@ begin
105
105
  ARGV.each { |n| n.include?(":") ? keys << n.gsub(":", "").to_sym : key_strings << n }
106
106
  raise(StandardError, "wrong arguments!") unless keys.size == key_strings.size
107
107
 
108
- params = keys.zip(key_strings).to_h
109
- Object.const_get("Souls::Gcloud::#{module_name.camelize}").public_send(method_name.to_sym, **params)
108
+ args = keys.zip(key_strings).to_h
109
+ Object.const_get("Souls::Gcloud::#{module_name.camelize}").public_send(method_name.to_sym, **args)
110
110
  end
111
111
  Whirly.status = "Done!"
112
112
  end
@@ -62,10 +62,10 @@ module Souls
62
62
 
63
63
  def add_permissions(service_account: "souls-app", project_id: "souls-app")
64
64
  roles = [
65
- "roles/cloudsql.instanceUser",
65
+ "roles/cloudsql.editor",
66
66
  "roles/containerregistry.ServiceAgent",
67
- "roles/pubsub.serviceAdmin",
68
- "roles/firestore.serviceAdmin",
67
+ "roles/pubsub.editor",
68
+ "roles/datastore.user",
69
69
  "roles/iam.serviceAccountUser",
70
70
  "roles/storage.objectAdmin",
71
71
  "roles/run.admin"
@@ -3,9 +3,9 @@ module Souls
3
3
  module Sql
4
4
  class << self
5
5
  def create_instance(instance_name: "souls-db", root_pass: "Postgre123!", zone: "asia-northeast1-b")
6
- system(
7
- "gcloud sql instances create #{instance_name}
8
- --database-version=POSTGRES_13 --cpu=2 --memory=7680MB --zone=#{zone}
6
+ puts(
7
+ "gcloud sql instances create #{instance_name} \
8
+ --database-version=POSTGRES_13 --cpu=2 --memory=7680MB --zone=#{zone} \
9
9
  --root-password='#{root_pass}' --database-flags cloudsql.iam_authentication=on"
10
10
  )
11
11
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.32.0".freeze
2
+ VERSION = "0.32.4".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.11.4
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.11.4
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: 0.32.0
4
+ version: 0.32.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI