souls 1.4.6 → 1.4.10

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: 269a04ee109d531ce053a5ba46f4788fc6b2c8433fcf6d78ca81975d7b5f7422
4
- data.tar.gz: 2bcc81f7b1d43809a69c9c1cb5900e64e82ece344bdca6dc7aefc4f8ce6048d8
3
+ metadata.gz: '08cc1c411069255bac7a97299c362167c4f5a1051305a973a5da901f9aabf488'
4
+ data.tar.gz: 4d7d2f6a14c5e631be088991ed35bcd03aee3dcee8b21f00c7a0f3a020898cca
5
5
  SHA512:
6
- metadata.gz: 6830ab031284b259dbc2031abaaf2af608cd526682a0f61739a08094916b326846333a6389df8dd5dcabb6c82775a3ace22d7f687ebf278f5043287692321ab1
7
- data.tar.gz: de3e153a9c119cf41d244f8d6be83f83405c31414bb7e04c1bdbce367874e15bc0ac3d2a1894747bc591cc8cfa6d517e191cddc97b201af8fdfd49575883906b
6
+ metadata.gz: 1d0cdba28abb50e703f9fc37d55b1c7acbdf49d459306f48d2f9d5c11797e0d12a4b338da73a1d4fa9be6602f229d817109a3e2ccfb899b1b53a0fbee0bd3bb2
7
+ data.tar.gz: fdc5cd9b1e18a27737cd495520f1ed58522b44d74c30c748de057af68a31346f93dfbedcd541227361399a55a09ef28d151b6cc782aebedb259582e6ffcb004c
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.
@@ -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)}"
@@ -103,7 +103,7 @@ module Souls
103
103
  FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
104
104
  file_path = "#{file_dir}/update_#{class_name}.rbs"
105
105
  params = Souls.get_relation_params(class_name: class_name, col: "mutation")
106
- params[:params] < { column_name: "id", type: "string", array: false }
106
+ params[:params] << { column_name: "id", type: "string", array: false }
107
107
  File.open(file_path, "w") do |f|
108
108
  f.write(<<~TEXT)
109
109
  module Mutations
@@ -33,6 +33,7 @@ module Souls
33
33
  puts("before build")
34
34
  system("rake build")
35
35
  system("rake release")
36
+ system("gsutil -m cp -r coverage gs://souls-bucket/souls-coverage")
36
37
  Whirly.status = Paint["soul-v#{souls_new_ver} successfully updated!"]
37
38
  end
38
39
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.4.6".freeze
2
+ VERSION = "1.4.10".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.4.6
1
+ 1.4.10
@@ -1 +1 @@
1
- 1.4.6
1
+ 1.4.10
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.6
4
+ version: 1.4.10
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.