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 +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: faa77b17fa76545a837a50e5f72ce7b0b9278bdf21c50866f06db6707b84a6c6
|
4
|
+
data.tar.gz: f41794db52a2ca2b044e653b1cbfb20c6bf635518e94a92d51b254054f364207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.16
|
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
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.
|
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-
|
13
|
+
date: 2021-11-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|