souls 1.8.13 → 1.8.17

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: e8ff92925b8c92d38138539701be39b497a78752fcae8395fbc5c4975c011eaf
4
- data.tar.gz: a2b901a382bc62498a3ae613a696503dd5c27eea7faa243b418b2cf18013e36c
3
+ metadata.gz: a08f3642096849fe5c48e6db57dbee722573b0b222829043dbb43f94c3720696
4
+ data.tar.gz: cda60b0e448c4567904a9e4d4ad1a0b148cb105f7cc2622fcf0b9a190b6f3d48
5
5
  SHA512:
6
- metadata.gz: 5928d3c61c8304ad2a5abfa30c63d730ff5c48838fc040a59014949d49e6babc5717326d42f2648ebe3d287b614bdf295094526ecf136da4865bedd861f554c2
7
- data.tar.gz: ff2a2fbe41b58720b533f1ede4910f55d92e5461846bd3ae0608e4b8dbba762ab55de7f28fef8951ccfa51cb0e5d133ae3514d1b3896b99fd12d1d597a9a372a
6
+ metadata.gz: 3c7f93df1bbaca884fd667294eea99e635f525c8394e734c1a9af7018e71a6fd23f66ef75958aeee2d2bee932541470d29bb2bee07db150094894bf09af2900b
7
+ data.tar.gz: 3e06e81a5e6197dc728bfa0b81a637ab76c0c7733ae6e1669d7559712cfd88b0656ce01367e55434a882f59ea972626c6c6895dc482edbbc648b182864b0b855
@@ -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.13".freeze
2
+ VERSION = "1.8.17".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 1.8.13
1
+ 1.8.17
@@ -1 +1 @@
1
- 1.8.13
1
+ 1.8.17
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.13
4
+ version: 1.8.17
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