souls 1.4.7 → 1.4.11
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 +4 -4
- data/README.md +7 -0
- data/lib/souls/cli/gcloud/compute/index.rb +1 -1
- data/lib/souls/cli/gcloud/iam/index.rb +1 -1
- data/lib/souls/cli/gcloud/sql/index.rb +4 -3
- data/lib/souls/cli/release/release.rb +1 -0
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66a13420316392b4b913b18b0352ed38df204993a6f85de7c2dd49404459b30
|
4
|
+
data.tar.gz: a86643dbd67d217b146f01623627f38729b7027d3983c6bd7a5e8e5bf4df9d50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ccfe8988855e7a467a02ae39874d4f56868f7a0077c3bb69b359d8e32dd0f9953f307841ca24341c442d6a0c43e6cd960f29ca8d042ffa5199467355504eb44
|
7
|
+
data.tar.gz: bae7c03ca1dd9feefcd21098e5b552a08362317d3b7dba2c87576024bcf65c762d1dd4b441c388f6bd6a3143ab1197455be5f5c5eb1a20ad1c33a25fca888097
|
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">
|
@@ -128,6 +131,10 @@ git submodule add -f https://github.com/ruby/gem_rbs_collection.git vendor/rbs/g
|
|
128
131
|
|
129
132
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org/gems/souls).
|
130
133
|
|
134
|
+
## Test Coverage
|
135
|
+
|
136
|
+
[Rspec Test Coverage](https://storage.googleapis.com/souls-bucket/souls-coverage/index.html#_AllFiles)
|
137
|
+
|
131
138
|
## Contributing
|
132
139
|
|
133
140
|
Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/souls. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
@@ -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='#{
|
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=#{
|
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 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.11
|
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.11
|
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.
|
4
|
+
version: 1.4.11
|
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.
|