souls 1.8.15 → 1.8.16

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: 32745af9b5a52413990e7877b58dc195c0a6477027456e0e1054f67460e0e228
4
- data.tar.gz: e09028d257f4837aa3e2161ed5dde29b44fa56f3d3d4392731410c1fbcbeb96c
3
+ metadata.gz: faa77b17fa76545a837a50e5f72ce7b0b9278bdf21c50866f06db6707b84a6c6
4
+ data.tar.gz: f41794db52a2ca2b044e653b1cbfb20c6bf635518e94a92d51b254054f364207
5
5
  SHA512:
6
- metadata.gz: d4e27c8d6a3da3c2e90176ee859964213ac34d23da244bf24429b7d842558e609cb86b65506b1ed3590c9c6c6cd3e313f24eb5e8ee9e2eaea87fbcef99a2bf53
7
- data.tar.gz: 3a7f47c761f6a5627375a723e95a00de9461f6023600dd0228a17041d6f92fecdf3b779ec2a2ad4d0119fbf1dfdf16df586ab0638ecbc2d0c6ab63675ecae746
6
+ metadata.gz: a9a80a661e76726c89b9fcd83a32bf46ffb0df7397330271990d89da90920a8237ccc2f99b4e5c36dc4b2e62311e2522ce9ae7c24c10cecd5c8232862ab44f4d
7
+ data.tar.gz: d88e62036c32b401d41aa1747bb5a04a6ab50e374aed471bd38e6d295cb65f543702d582993696e66536e4b5509410befaaa6e2ec80d1f0913a4ca5cae45ea00
@@ -195,7 +195,6 @@ end
195
195
  --set-env-vars="SOULS_DB_USER=${{ secrets.SOULS_DB_USER }}" \\
196
196
  --set-env-vars="SOULS_DB_PW=${{ secrets.SOULS_DB_PW }}" \\
197
197
  --set-env-vars="SOULS_DB_HOST=${{ secrets.SOULS_DB_HOST }}" \\
198
- --set-env-vars="GITHUB_REPOSITORY=$GITHUB_REPOSITORY" \\
199
198
  --set-env-vars="SOULS_TZ=${{ secrets.SOULS_TZ }}" \\
200
199
  --set-env-vars="SOULS_SECRET_KEY_BASE=${{ secrets.SOULS_SECRET_KEY_BASE }}" \\
201
200
  --set-env-vars="SOULS_PROJECT_ID=${{ secrets.SOULS_GCP_PROJECT_ID }}"
@@ -5,7 +5,7 @@ module Souls
5
5
  def rspec_manager(class_name)
6
6
  singularized_class_name = class_name.underscore.singularize
7
7
  file_path = "./spec/mutations/managers/#{singularized_class_name}/#{options[:mutation]}_spec.rb"
8
- FileUtils.rm(file_path)
8
+ FileUtils.rm_f(file_path)
9
9
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
10
10
  file_path
11
11
  end
@@ -4,7 +4,7 @@ module Souls
4
4
  def rspec_mutation(class_name)
5
5
  singularized_class_name = class_name.singularize
6
6
  file_path = "./spec/mutations/base/#{singularized_class_name}_spec.rb"
7
- FileUtils.rm(file_path)
7
+ FileUtils.rm_f(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
10
  rescue StandardError => e
@@ -4,7 +4,7 @@ module Souls
4
4
  def rspec_query(class_name)
5
5
  singularized_class_name = class_name.singularize
6
6
  file_path = "./spec/queries/#{singularized_class_name}_spec.rb"
7
- FileUtils.rm(file_path)
7
+ FileUtils.rm_f(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
10
  end
@@ -4,7 +4,7 @@ module Souls
4
4
  def rspec_resolver(class_name)
5
5
  singularized_class_name = class_name.singularize
6
6
  file_path = "./spec/resolvers/#{singularized_class_name}_search_spec.rb"
7
- FileUtils.rm(file_path)
7
+ FileUtils.rm_f(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
10
  end
@@ -4,7 +4,7 @@ module Souls
4
4
  def type(class_name)
5
5
  singularized_class_name = class_name.singularize
6
6
  file_path = "./app/graphql/types/#{singularized_class_name}_type.rb"
7
- FileUtils.rm(file_path)
7
+ FileUtils.rm_f(file_path)
8
8
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
9
9
  file_path
10
10
  end
@@ -6,9 +6,8 @@ module Souls
6
6
  file_path = ""
7
7
  Dir.chdir(Souls.get_mother_path.to_s) do
8
8
  file_dir = "./sig/api/app/graphql/types"
9
- FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir)
10
9
  file_path = "#{file_dir}/#{singularized_class_name}_type.rbs"
11
- FileUtils.rm(file_path)
10
+ FileUtils.rm_f(file_path)
12
11
  end
13
12
  puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
14
13
  file_path
@@ -30,7 +30,6 @@ module Souls
30
30
  SOULS_DB_USER=postgres
31
31
  SOULS_GCP_PROJECT_ID=#{project_id}
32
32
  SOULS_SECRET_KEY_BASE='#{SecureRandom.base64(64)}'
33
- GITHUB_REPOSITORY='elsoul/souls'
34
33
  TZ="#{region_to_timezone(region: region)}"
35
34
  TEXT
36
35
  end
@@ -47,7 +46,6 @@ module Souls
47
46
  SOULS_GCP_REGION=#{region}
48
47
  SOULS_GCLOUDSQL_INSTANCE="#{project_id}:#{region}:#{instance_name}"
49
48
  SOULS_SECRET_KEY_BASE='#{SecureRandom.base64(64)}'
50
- GITHUB_REPOSITORY='elsoul/souls'
51
49
  TZ="#{region_to_timezone(region: region)}"
52
50
  TEXT
53
51
  end
@@ -31,12 +31,12 @@ module Souls
31
31
  desc "watch", "Watch GitHub Actions Workflow"
32
32
  def watch
33
33
  remote_url = `git remote get-url origin`
34
- split_url = %r{\A(git@github.com:)(.+/.+)(\.git)}.match(remote_url)
35
- if split_url.nil? || split_url.size != 4
34
+ split_url = %r{\A(https://|git@)(github.com)(:|/)([^.]+/[^.]+)(\.git)?\z}.match(remote_url)
35
+ if split_url.nil? || split_url.size != 6
36
36
  raise(CLIException, "Cannot access Github, please check your credentials")
37
37
  end
38
38
 
39
- api_request = "gh api -X GET 'repos/#{split_url[2]}/actions/runs'"
39
+ api_request = "gh api -X GET 'repos/#{split_url[4]}/actions/runs'"
40
40
  workflows = JSON.parse(`#{api_request}`)
41
41
 
42
42
  if workflows.nil? || !workflows.key?("workflow_runs")
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.8.15".freeze
2
+ VERSION = "1.8.16".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.8.15
1
+ 1.8.16
@@ -1 +1 @@
1
- 1.8.15
1
+ 1.8.16
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.8.15
4
+ version: 1.8.16
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-11-22 00:00:00.000000000 Z
13
+ date: 2021-11-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport