souls 1.8.12 → 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: 6c1ba3aa74c5c645b4b967cd05f5a7c6b5b162a49da104325af8d97f0e9b47c2
4
- data.tar.gz: a8963851cfe5a371b6d32a33e0c0eb7ab432de32629c133e70780c87d240d9f3
3
+ metadata.gz: faa77b17fa76545a837a50e5f72ce7b0b9278bdf21c50866f06db6707b84a6c6
4
+ data.tar.gz: f41794db52a2ca2b044e653b1cbfb20c6bf635518e94a92d51b254054f364207
5
5
  SHA512:
6
- metadata.gz: 230fb2d6dc29cfce296e74e98b84081de18aac2ab47a4252ffd0f795d508f897786455ce926cbd346638c1e0aa3cb128a833934ccf84513a36f5814fb4d81d2a
7
- data.tar.gz: 0b503f9f9a4d5c2966af65092a5e352a8b5250ef6cea7eae2b2c3e5664543efcbd9ac9631f63a08ca7f4cd7ef97dab5625ba2f901a50c619b53774e501e21918
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")
@@ -45,7 +45,7 @@ module Souls
45
45
 
46
46
  wf_info =
47
47
  workflows["workflow_runs"].filter_map do |wf|
48
- { wf["name"].to_sym => wf["id"] } if wf["state"] == "in_progress"
48
+ { wf["name"].to_sym => wf["id"] } if wf["status"] == "in_progress"
49
49
  end
50
50
 
51
51
  wf_id =
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "1.8.12".freeze
2
+ VERSION = "1.8.16".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.8.12
1
+ 1.8.16
@@ -1 +1 @@
1
- 1.8.12
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.12
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