souls 1.12.2 → 1.12.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d291ae2cbca7be677a5a17bcd5be72f91e2d6fdb738732855d859ce9bd57c292
4
- data.tar.gz: cb784d99ce95dfd680d068dcd3253ac06efb62eb773a3229a7a297af30e0a5a1
3
+ metadata.gz: 22bd0690d5121d4f11bed28a92e1d9c03e6965516d42ab7544c6db31996b940e
4
+ data.tar.gz: b18f61e986e2825539ee6cc9d02d81491eb1361ed061d0fb03fb6dc7564185ec
5
5
  SHA512:
6
- metadata.gz: 9ff1abbce1850a539e3e885687f85ce2208ce2410f8031afe52d033620feb971e79ea808448f81d2807f2f11249850e8d9fd2eae6d5b1a888108d3f07b9c84ba
7
- data.tar.gz: d15ffb53f4c1cfb37f3e5b8c1f2574feb52046fc5c45c8da5856bbebbd3ea12ac5df19a5ba214cacd9f5bc87017521d5ec9058da38c45e0f8f95ab8dc54503c2
6
+ metadata.gz: 9d630af0345983d357228b17af112729f83bc089a19c19fbbec8f18abfe5b1b99149d0bd8b275938eb4168b5f768dd064cb7f739867bd830a2671878adbd05d2
7
+ data.tar.gz: e96568446f6e113b8d57303391485216b4df835cc052b24bcf0701b984e2914c534ef1f1347eb17fbc79842a489faeafe781660a7ba4f90ea58e6a003bf0032a
@@ -4,11 +4,16 @@ module Souls
4
4
  def setup_key
5
5
  region = Souls.configuration.region
6
6
  Souls::Gcloud.new.auth_login
7
+ Souls::Upgrade.new.config
7
8
  create_service_account
8
9
  create_service_account_key
9
10
  Souls::Gcloud.new.enable_permissions
10
11
  add_permissions
11
- system("gcloud app create --region=#{region} --quiet")
12
+ begin
13
+ system("gcloud app create --region=#{region} --quiet")
14
+ rescue StandardError, error
15
+ puts("gcloud app region is Already exist! - Souls::Gcloud::Iam.setup_key")
16
+ end
12
17
  begin
13
18
  set_gh_secret_json
14
19
  rescue StandardError
@@ -13,7 +13,7 @@ module Souls
13
13
  db_type = options[:mysql] ? "MYSQL_8_0" : "POSTGRES_13"
14
14
 
15
15
  zone = "#{region}-b"
16
- system("gcloud config set project #{project_id}")
16
+ system("gcloud config set project #{project_id} >/dev/null 2>&1")
17
17
  system(
18
18
  "gcloud sql instances create #{instance_name} \
19
19
  --database-version=#{db_type} --cpu=1 --memory=4096MB --zone=#{zone} \
@@ -4,6 +4,11 @@ module Souls
4
4
  method_option :mutation, aliases: "--mutation", required: true, desc: "Mutation File Name"
5
5
  def manager(class_name)
6
6
  singularized_class_name = class_name.underscore.singularize
7
+ current_path = FileUtils.pwd
8
+ unless current_path.split("/").last == "api" || current_path.split("/").last == "souls"
9
+ raise(StandardError, "You Are at Wrong Directory! Please Go to Api Directory!")
10
+ end
11
+
7
12
  create_manager(class_name, options[:mutation])
8
13
  Souls::Generate.new.invoke(:manager_rbs, [singularized_class_name], { mutation: options[:mutation] })
9
14
  Souls::Generate.new.invoke(:rspec_manager, [singularized_class_name], { mutation: options[:mutation] })
@@ -25,15 +30,13 @@ module Souls
25
30
  class #{mutation.underscore.camelize} < BaseMutation
26
31
  description "#{mutation} description"
27
32
  ## Edit `argument` and `field`
28
- argument :argument, String, required: true
33
+ argument :argument, String, required: false
29
34
 
30
35
  field :response, String, null: false
31
36
 
32
37
  def resolve(args)
33
38
  # Define Here
34
39
  { response: "success!" }
35
- rescue StandardError => e
36
- GraphQL::ExecutionError.new(e.message)
37
40
  end
38
41
  end
39
42
  end
@@ -25,5 +25,8 @@ module Souls
25
25
  File.open(api_conf_path, "w") { |f| f.write(api_conf.join) }
26
26
  end
27
27
  end
28
+ # rubocop:disable Style/StringHashKeys
29
+ map "conf" => "config"
30
+ # rubocop:enable Style/StringHashKeys
28
31
  end
29
32
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.12.2".freeze
2
+ VERSION = "1.12.3".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.12.2
1
+ 1.12.3
@@ -1 +1 @@
1
- 1.12.2
1
+ 1.12.3
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: 1.12.2
4
+ version: 1.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-12-10 00:00:00.000000000 Z
13
+ date: 2021-12-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport