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 +4 -4
- data/lib/souls/cli/create/index.rb +0 -1
- data/lib/souls/cli/delete/rspec_manager.rb +1 -1
- data/lib/souls/cli/delete/rspec_mutation.rb +1 -1
- data/lib/souls/cli/delete/rspec_query.rb +1 -1
- data/lib/souls/cli/delete/rspec_resolver.rb +1 -1
- data/lib/souls/cli/delete/type.rb +1 -1
- data/lib/souls/cli/delete/type_rbs.rb +1 -2
- data/lib/souls/cli/gcloud/sql/index.rb +0 -2
- data/lib/souls/cli/github/index.rb +3 -3
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a08f3642096849fe5c48e6db57dbee722573b0b222829043dbb43f94c3720696
|
4
|
+
data.tar.gz: cda60b0e448c4567904a9e4d4ad1a0b148cb105f7cc2622fcf0b9a190b6f3d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
35
|
-
if split_url.nil? || split_url.size !=
|
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[
|
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 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.17
|
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
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.
|
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-
|
13
|
+
date: 2021-11-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|