souls 0.23.8 → 0.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.irbrc +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +34 -5
- data/apps/api/.env.sample +7 -0
- data/apps/api/.gitignore +32 -0
- data/apps/api/.irbrc +4 -0
- data/apps/api/.rspec +3 -0
- data/apps/api/.rubocop.yml +132 -0
- data/apps/api/.ruby-version +1 -0
- data/apps/api/CODE_OF_CONDUCT.md +74 -0
- data/apps/api/Dockerfile +16 -0
- data/apps/api/Dockerfile.dev +17 -0
- data/apps/api/Gemfile +50 -0
- data/apps/api/Gemfile.lock +412 -0
- data/apps/api/LICENSE.txt +67 -0
- data/apps/api/Procfile +2 -0
- data/apps/api/Procfile.dev +2 -0
- data/apps/api/README.md +37 -0
- data/apps/api/Rakefile +5 -0
- data/apps/api/app.rb +114 -0
- data/apps/api/app/engines/notification_engine.rb +5 -0
- data/apps/api/app/graphql/mutations/.keep +0 -0
- data/apps/api/app/graphql/mutations/base/article/create_article.rb +30 -0
- data/apps/api/app/graphql/mutations/base/article/delete_article.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article/destroy_delete_article.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article/update_article.rb +30 -0
- data/apps/api/app/graphql/mutations/base/article_category/create_article_category.rb +21 -0
- data/apps/api/app/graphql/mutations/base/article_category/delete_article_category.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +17 -0
- data/apps/api/app/graphql/mutations/base/article_category/update_article_category.rb +21 -0
- data/apps/api/app/graphql/mutations/base/user/create_user.rb +31 -0
- data/apps/api/app/graphql/mutations/base/user/delete_user.rb +17 -0
- data/apps/api/app/graphql/mutations/base/user/destroy_delete_user.rb +17 -0
- data/apps/api/app/graphql/mutations/base/user/update_user.rb +31 -0
- data/apps/api/app/graphql/mutations/base_mutation.rb +65 -0
- data/apps/api/app/graphql/mutations/managers/user_manager/add_user_role.rb +22 -0
- data/apps/api/app/graphql/mutations/managers/user_manager/remove_user_role.rb +22 -0
- data/apps/api/app/graphql/mutations/managers/user_manager/sign_in_user.rb +45 -0
- data/apps/api/app/graphql/queries/article.rb +13 -0
- data/apps/api/app/graphql/queries/article_categories.rb +11 -0
- data/apps/api/app/graphql/queries/article_category.rb +13 -0
- data/apps/api/app/graphql/queries/articles.rb +11 -0
- data/apps/api/app/graphql/queries/base_query.rb +12 -0
- data/apps/api/app/graphql/queries/me.rb +11 -0
- data/apps/api/app/graphql/queries/user.rb +13 -0
- data/apps/api/app/graphql/queries/users.rb +11 -0
- data/apps/api/app/graphql/resolvers/article_category_search.rb +41 -0
- data/apps/api/app/graphql/resolvers/article_search.rb +57 -0
- data/apps/api/app/graphql/resolvers/base.rb +17 -0
- data/apps/api/app/graphql/resolvers/user_search.rb +63 -0
- data/apps/api/app/graphql/souls_api_schema.rb +43 -0
- data/apps/api/app/graphql/types/.keep +0 -0
- data/apps/api/app/graphql/types/article_category_type.rb +12 -0
- data/apps/api/app/graphql/types/article_type.rb +30 -0
- data/apps/api/app/graphql/types/base/base_argument.rb +4 -0
- data/apps/api/app/graphql/types/base/base_enum.rb +4 -0
- data/apps/api/app/graphql/types/base/base_field.rb +5 -0
- data/apps/api/app/graphql/types/base/base_input_object.rb +5 -0
- data/apps/api/app/graphql/types/base/base_interface.rb +7 -0
- data/apps/api/app/graphql/types/base/base_object.rb +6 -0
- data/apps/api/app/graphql/types/base/base_scalar.rb +4 -0
- data/apps/api/app/graphql/types/base/base_union.rb +4 -0
- data/apps/api/app/graphql/types/base/mutation_type.rb +26 -0
- data/apps/api/app/graphql/types/base/query_type.rb +18 -0
- data/apps/api/app/graphql/types/connections/article_category_connection.rb +3 -0
- data/apps/api/app/graphql/types/connections/article_connection.rb +3 -0
- data/apps/api/app/graphql/types/connections/base_connection.rb +14 -0
- data/apps/api/app/graphql/types/connections/user_connection.rb +3 -0
- data/apps/api/app/graphql/types/edges/article_category_edge.rb +5 -0
- data/apps/api/app/graphql/types/edges/article_edge.rb +5 -0
- data/apps/api/app/graphql/types/edges/base_edge.rb +4 -0
- data/apps/api/app/graphql/types/edges/user_edge.rb +5 -0
- data/apps/api/app/graphql/types/user_type.rb +24 -0
- data/apps/api/app/models/article.rb +4 -0
- data/apps/api/app/models/article_category.rb +3 -0
- data/apps/api/app/models/user.rb +19 -0
- data/apps/api/app/policies/application_policy.rb +40 -0
- data/apps/api/app/policies/article_category_policy.rb +31 -0
- data/apps/api/app/policies/article_policy.rb +31 -0
- data/apps/api/app/policies/user_policy.rb +35 -0
- data/apps/api/app/utils/association_loader.rb +50 -0
- data/apps/api/app/utils/fire_store.rb +9 -0
- data/apps/api/app/utils/firebase_id_token.rb +4 -0
- data/apps/api/app/utils/json_web_token.rb +13 -0
- data/apps/api/app/utils/record_loader.rb +10 -0
- data/apps/api/app/utils/souls_helper.rb +18 -0
- data/apps/api/cloudbuild.yml +32 -0
- data/apps/api/config.ru +17 -0
- data/apps/api/config/database.yml +33 -0
- data/apps/api/config/souls.rb +10 -0
- data/apps/api/constants/areas.rb +71 -0
- data/apps/api/constants/column_name_ja.rb +27 -0
- data/apps/api/db/migrate/20200006095538_create_users.rb +30 -0
- data/apps/api/db/migrate/20200712180236_create_article_categories.rb +12 -0
- data/apps/api/db/migrate/20200714215521_create_articles.rb +22 -0
- data/apps/api/db/schema.rb +78 -0
- data/apps/api/db/seeds.rb +44 -0
- data/apps/api/github/workflows/delivery.yml +81 -0
- data/apps/api/log/.keep +0 -0
- data/apps/api/spec/factories/article_categories.rb +9 -0
- data/apps/api/spec/factories/articles.rb +17 -0
- data/apps/api/spec/factories/users.rb +23 -0
- data/apps/api/spec/models/article_category_spec.rb +7 -0
- data/apps/api/spec/models/article_spec.rb +7 -0
- data/apps/api/spec/models/user_spec.rb +7 -0
- data/apps/api/spec/mutations/base/article_category_spec.rb +46 -0
- data/apps/api/spec/mutations/base/article_spec.rb +70 -0
- data/apps/api/spec/mutations/base/user_spec.rb +76 -0
- data/apps/api/spec/policies/article_category_policy_spec.rb +24 -0
- data/apps/api/spec/policies/article_policy_spec.rb +24 -0
- data/apps/api/spec/policies/user_policy_spec.rb +24 -0
- data/apps/api/spec/queries/article_category_spec.rb +39 -0
- data/apps/api/spec/queries/article_spec.rb +53 -0
- data/apps/api/spec/queries/user_spec.rb +59 -0
- data/apps/api/spec/resolvers/article_category_search_spec.rb +54 -0
- data/apps/api/spec/resolvers/article_search_spec.rb +68 -0
- data/apps/api/spec/resolvers/user_search_spec.rb +74 -0
- data/apps/api/spec/spec_helper.rb +110 -0
- data/apps/api/tmp/.keep +0 -0
- data/apps/worker/.env.sample +9 -0
- data/apps/worker/.gitignore +32 -0
- data/apps/worker/.irbrc +4 -0
- data/apps/worker/.rspec +3 -0
- data/apps/worker/.rubocop.yml +132 -0
- data/apps/worker/.ruby-version +1 -0
- data/apps/worker/CODE_OF_CONDUCT.md +74 -0
- data/apps/worker/Dockerfile +16 -0
- data/apps/worker/Dockerfile.dev +17 -0
- data/apps/worker/Gemfile +49 -0
- data/apps/worker/Gemfile.lock +396 -0
- data/apps/worker/LICENSE.txt +67 -0
- data/apps/worker/Procfile +1 -0
- data/apps/worker/Procfile.dev +1 -0
- data/apps/worker/README.md +37 -0
- data/apps/worker/Rakefile +5 -0
- data/apps/worker/app.rb +101 -0
- data/apps/worker/app/engines/notification_engine.rb +5 -0
- data/apps/worker/app/graphql/mutations/.keep +0 -0
- data/apps/worker/app/graphql/mutations/base_mutation.rb +16 -0
- data/apps/worker/app/graphql/mutations/workers/send_user_mail_job.rb +31 -0
- data/apps/worker/app/graphql/souls_api_schema.rb +43 -0
- data/apps/worker/app/graphql/types/.keep +0 -0
- data/apps/worker/app/graphql/types/base/base_argument.rb +4 -0
- data/apps/worker/app/graphql/types/base/base_enum.rb +4 -0
- data/apps/worker/app/graphql/types/base/base_field.rb +5 -0
- data/apps/worker/app/graphql/types/base/base_input_object.rb +5 -0
- data/apps/worker/app/graphql/types/base/base_interface.rb +7 -0
- data/apps/worker/app/graphql/types/base/base_object.rb +5 -0
- data/apps/worker/app/graphql/types/base/base_scalar.rb +4 -0
- data/apps/worker/app/graphql/types/base/base_union.rb +4 -0
- data/apps/worker/app/graphql/types/base/mutation_type.rb +12 -0
- data/apps/worker/app/graphql/types/base/query_type.rb +6 -0
- data/apps/worker/app/models/article.rb +4 -0
- data/apps/worker/app/models/article_category.rb +3 -0
- data/apps/worker/app/models/user.rb +19 -0
- data/apps/worker/app/utils/fire_store.rb +9 -0
- data/apps/worker/app/utils/souls_helper.rb +96 -0
- data/apps/worker/cloudbuild.yml +32 -0
- data/apps/worker/config.ru +17 -0
- data/apps/worker/config/database.yml +33 -0
- data/apps/worker/config/souls.rb +10 -0
- data/apps/worker/db/migrate/20200006095538_create_users.rb +30 -0
- data/apps/worker/db/migrate/20200712180236_create_article_categories.rb +12 -0
- data/apps/worker/db/migrate/20200714215521_create_articles.rb +22 -0
- data/apps/worker/db/schema.rb +78 -0
- data/apps/worker/db/seeds.rb +44 -0
- data/apps/worker/github/workflows/delivery.yml +81 -0
- data/apps/worker/log/.keep +0 -0
- data/apps/worker/spec/factories/article_categories.rb +9 -0
- data/apps/worker/spec/factories/articles.rb +17 -0
- data/apps/worker/spec/factories/users.rb +23 -0
- data/apps/worker/spec/models/article_category_spec.rb +7 -0
- data/apps/worker/spec/models/article_spec.rb +7 -0
- data/apps/worker/spec/models/user_spec.rb +7 -0
- data/apps/worker/spec/spec_helper.rb +110 -0
- data/apps/worker/tmp/.keep +0 -0
- data/config/souls.rb +7 -3
- data/exe/souls +16 -3
- data/lib/souls.rb +129 -140
- data/lib/souls/gcloud.rb +1 -0
- data/lib/souls/gcloud/compute.rb +62 -60
- data/lib/souls/gcloud/iam.rb +38 -22
- data/lib/souls/gcloud/pubsub.rb +21 -0
- data/lib/souls/init.rb +1 -16
- data/lib/souls/version.rb +1 -1
- metadata +176 -2
data/lib/souls/gcloud.rb
CHANGED
data/lib/souls/gcloud/compute.rb
CHANGED
@@ -1,71 +1,73 @@
|
|
1
1
|
module Souls
|
2
2
|
module Gcloud
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
class << self
|
4
|
+
def auth_login
|
5
|
+
project_id = Souls.configuration.project_id
|
6
|
+
system("gcloud config set project #{project_id}")
|
7
|
+
system("gcloud auth login")
|
8
|
+
end
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
10
|
+
def enable_permissions
|
11
|
+
system("gcloud services enable compute.googleapis.com")
|
12
|
+
puts("Operating permission to compute.googleapis.com ...")
|
13
|
+
system("gcloud services enable iam.googleapis.com")
|
14
|
+
puts("Operating permission to iam.googleapis.com ...")
|
15
|
+
system("gcloud services enable dns.googleapis.com")
|
16
|
+
puts("Operating permission to dns.googleapis.com ...")
|
17
|
+
system("gcloud services enable sqladmin.googleapis.com")
|
18
|
+
puts("Operating permission to sqladmin.googleapis.com ...")
|
19
|
+
system("gcloud services enable sql-component.googleapis.com")
|
20
|
+
puts("Operating permission to sql-component.googleapis.com ...")
|
21
|
+
system("gcloud services enable servicenetworking.googleapis.com")
|
22
|
+
puts("Operating permission to servicenetworking.googleapis.com ...")
|
23
|
+
system("gcloud services enable containerregistry.googleapis.com")
|
24
|
+
puts("Operating permission to containerregistry.googleapis.com")
|
25
|
+
system("gcloud services enable run.googleapis.com")
|
26
|
+
puts("Operating permission to run.googleapis.com")
|
27
|
+
end
|
27
28
|
|
28
|
-
|
29
|
-
|
29
|
+
def create_network
|
30
|
+
return "Error: Please Set Souls.configuration" if Souls.configuration.app.nil?
|
30
31
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
network = Souls.configuration.app
|
33
|
+
system("gcloud compute networks create #{network}")
|
34
|
+
rescue StandardError => e
|
35
|
+
raise(StandardError, e)
|
36
|
+
end
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
38
|
+
def create_firewall(ip_range: "10.140.0.0/20")
|
39
|
+
network = Souls.configuration.app
|
40
|
+
system(
|
41
|
+
"gcloud compute firewall-rules create #{network}
|
42
|
+
--network #{network}
|
43
|
+
--allow tcp,udp,icmp
|
44
|
+
--source-ranges #{ip_range}"
|
45
|
+
)
|
46
|
+
system("gcloud compute firewall-rules create #{network}-ssh --network #{network} --allow tcp:22,tcp:3389,icmp")
|
47
|
+
end
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
49
|
+
def create_private_access
|
50
|
+
network = Souls.configuration.app
|
51
|
+
project_id = Souls.configuration.project_id
|
52
|
+
system(
|
53
|
+
"gcloud compute addresses create #{network}-my-network \
|
54
|
+
--global \
|
55
|
+
--purpose=VPC_PEERING \
|
56
|
+
--prefix-length=16 \
|
57
|
+
--description='peering range for SOULs' \
|
58
|
+
--network=#{network} \
|
59
|
+
--project=#{project_id}"
|
60
|
+
)
|
61
|
+
end
|
61
62
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
63
|
+
def create_sql_instance(root_pass: "Postgre123!", zone: "asia-northeast1-b")
|
64
|
+
app = "#{Souls.configuration.app}-db"
|
65
|
+
system(
|
66
|
+
"gcloud sql instances create #{app}
|
67
|
+
--database-version=POSTGRES_13 --cpu=2 --memory=7680MB --zone=#{zone}
|
68
|
+
--root-password='#{root_pass}' --database-flags cloudsql.iam_authentication=on"
|
69
|
+
)
|
70
|
+
end
|
69
71
|
end
|
70
72
|
end
|
71
73
|
end
|
data/lib/souls/gcloud/iam.rb
CHANGED
@@ -1,30 +1,46 @@
|
|
1
1
|
module Souls
|
2
2
|
module Gcloud
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
class << self
|
4
|
+
def create_service_account(args)
|
5
|
+
service_account = args[:service_account] || "souls-app"
|
6
|
+
system(
|
7
|
+
"gcloud iam service-accounts create #{service_account} \
|
8
|
+
--description='Souls Service Account' \
|
9
|
+
--display-name=#{service_account}"
|
10
|
+
)
|
11
|
+
end
|
8
12
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
def create_service_account_key(args)
|
14
|
+
service_account = args[:service_account] || "souls-app"
|
15
|
+
project_id = args[:project_id] || "souls-app"
|
16
|
+
system(
|
17
|
+
"gcloud iam service-accounts keys create ./config/keyfile.json \
|
18
|
+
--iam-account #{service_account}@#{project_id}.iam.gserviceaccount.com"
|
19
|
+
)
|
20
|
+
end
|
14
21
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
22
|
+
def add_service_account_role(args)
|
23
|
+
service_account = args[:service_account] || "souls-app"
|
24
|
+
project_id = args[:project_id] || "souls-app"
|
25
|
+
role = args[:role] || "roles/firebase.admin"
|
26
|
+
`gcloud projects add-iam-policy-binding #{project_id} \
|
27
|
+
--member="serviceAccount:#{service_account}@#{project_id}.iam.gserviceaccount.com" \
|
28
|
+
--role="#{role}"`
|
29
|
+
end
|
21
30
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
31
|
+
def add_permissions(args)
|
32
|
+
service_account = args[:service_account] || "souls-app"
|
33
|
+
roles = [
|
34
|
+
"roles/cloudsql.serviceAgent",
|
35
|
+
"roles/containerregistry.ServiceAgent",
|
36
|
+
"roles/pubsub.serviceAgent",
|
37
|
+
"roles/firestore.serviceAgent",
|
38
|
+
"roles/iam.serviceAccountUser"
|
39
|
+
]
|
40
|
+
roles.each do |role|
|
41
|
+
add_service_account_role(service_account: service_account, role: role)
|
42
|
+
end
|
43
|
+
end
|
28
44
|
end
|
29
45
|
end
|
30
46
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Souls
|
2
|
+
module Gcloud
|
3
|
+
class << self
|
4
|
+
def create_pubsub_topic(args)
|
5
|
+
system("gcloud pubsub topics create #{args[:topic_name]}")
|
6
|
+
end
|
7
|
+
|
8
|
+
def create_pubsub_subscription(args)
|
9
|
+
system(
|
10
|
+
"gcloud pubsub subscriptions create #{args[:topic_name]}-sub \
|
11
|
+
--topic #{args[:topic_name]} \
|
12
|
+
--topic-project #{args[:project_id]} \
|
13
|
+
--push-auth-service-account #{args[:service_account]} \
|
14
|
+
--push-endpoint #{args[:endpoint]} \
|
15
|
+
--expiration-period never
|
16
|
+
"
|
17
|
+
)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/souls/init.rb
CHANGED
@@ -9,21 +9,6 @@ module Souls
|
|
9
9
|
data[0]["tag_name"]
|
10
10
|
end
|
11
11
|
|
12
|
-
def self.initial_config_init(app_name: "souls", strain: "api")
|
13
|
-
FileUtils.touch("./#{app_name}/config/souls.rb")
|
14
|
-
file_path = "./#{app_name}/config/souls.rb"
|
15
|
-
File.open(file_path, "w") do |f|
|
16
|
-
f.write(<<~TEXT)
|
17
|
-
Souls.configure do |config|
|
18
|
-
config.app = "#{app_name}"
|
19
|
-
config.strain = "#{strain}"
|
20
|
-
end
|
21
|
-
TEXT
|
22
|
-
end
|
23
|
-
rescue StandardError => e
|
24
|
-
puts(e)
|
25
|
-
end
|
26
|
-
|
27
12
|
def self.download_souls(app_name: "souls", repository_name: "souls_api ")
|
28
13
|
version = get_version(repository_name: repository_name)
|
29
14
|
system("curl -OL https://github.com/elsoul/#{repository_name}/archive/#{version}.tar.gz")
|
@@ -42,7 +27,7 @@ module Souls
|
|
42
27
|
___/ / /_/ / /_/ / /___(__ )#{' '}
|
43
28
|
/____/\\____/\\____/_____/____/#{' '}
|
44
29
|
TEXT
|
45
|
-
message = Paint[txt, :
|
30
|
+
message = Paint[txt, :cyan]
|
46
31
|
puts(message)
|
47
32
|
puts(line)
|
48
33
|
welcome = Paint["Welcome to SOULs!", :white]
|
data/lib/souls/version.rb
CHANGED
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: 0.
|
4
|
+
version: 0.24.2
|
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-07-
|
13
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: paint
|
@@ -66,6 +66,179 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- Steepfile
|
69
|
+
- apps/api/.env.sample
|
70
|
+
- apps/api/.gitignore
|
71
|
+
- apps/api/.irbrc
|
72
|
+
- apps/api/.rspec
|
73
|
+
- apps/api/.rubocop.yml
|
74
|
+
- apps/api/.ruby-version
|
75
|
+
- apps/api/CODE_OF_CONDUCT.md
|
76
|
+
- apps/api/Dockerfile
|
77
|
+
- apps/api/Dockerfile.dev
|
78
|
+
- apps/api/Gemfile
|
79
|
+
- apps/api/Gemfile.lock
|
80
|
+
- apps/api/LICENSE.txt
|
81
|
+
- apps/api/Procfile
|
82
|
+
- apps/api/Procfile.dev
|
83
|
+
- apps/api/README.md
|
84
|
+
- apps/api/Rakefile
|
85
|
+
- apps/api/app.rb
|
86
|
+
- apps/api/app/engines/notification_engine.rb
|
87
|
+
- apps/api/app/graphql/mutations/.keep
|
88
|
+
- apps/api/app/graphql/mutations/base/article/create_article.rb
|
89
|
+
- apps/api/app/graphql/mutations/base/article/delete_article.rb
|
90
|
+
- apps/api/app/graphql/mutations/base/article/destroy_delete_article.rb
|
91
|
+
- apps/api/app/graphql/mutations/base/article/update_article.rb
|
92
|
+
- apps/api/app/graphql/mutations/base/article_category/create_article_category.rb
|
93
|
+
- apps/api/app/graphql/mutations/base/article_category/delete_article_category.rb
|
94
|
+
- apps/api/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb
|
95
|
+
- apps/api/app/graphql/mutations/base/article_category/update_article_category.rb
|
96
|
+
- apps/api/app/graphql/mutations/base/user/create_user.rb
|
97
|
+
- apps/api/app/graphql/mutations/base/user/delete_user.rb
|
98
|
+
- apps/api/app/graphql/mutations/base/user/destroy_delete_user.rb
|
99
|
+
- apps/api/app/graphql/mutations/base/user/update_user.rb
|
100
|
+
- apps/api/app/graphql/mutations/base_mutation.rb
|
101
|
+
- apps/api/app/graphql/mutations/managers/user_manager/add_user_role.rb
|
102
|
+
- apps/api/app/graphql/mutations/managers/user_manager/remove_user_role.rb
|
103
|
+
- apps/api/app/graphql/mutations/managers/user_manager/sign_in_user.rb
|
104
|
+
- apps/api/app/graphql/queries/article.rb
|
105
|
+
- apps/api/app/graphql/queries/article_categories.rb
|
106
|
+
- apps/api/app/graphql/queries/article_category.rb
|
107
|
+
- apps/api/app/graphql/queries/articles.rb
|
108
|
+
- apps/api/app/graphql/queries/base_query.rb
|
109
|
+
- apps/api/app/graphql/queries/me.rb
|
110
|
+
- apps/api/app/graphql/queries/user.rb
|
111
|
+
- apps/api/app/graphql/queries/users.rb
|
112
|
+
- apps/api/app/graphql/resolvers/article_category_search.rb
|
113
|
+
- apps/api/app/graphql/resolvers/article_search.rb
|
114
|
+
- apps/api/app/graphql/resolvers/base.rb
|
115
|
+
- apps/api/app/graphql/resolvers/user_search.rb
|
116
|
+
- apps/api/app/graphql/souls_api_schema.rb
|
117
|
+
- apps/api/app/graphql/types/.keep
|
118
|
+
- apps/api/app/graphql/types/article_category_type.rb
|
119
|
+
- apps/api/app/graphql/types/article_type.rb
|
120
|
+
- apps/api/app/graphql/types/base/base_argument.rb
|
121
|
+
- apps/api/app/graphql/types/base/base_enum.rb
|
122
|
+
- apps/api/app/graphql/types/base/base_field.rb
|
123
|
+
- apps/api/app/graphql/types/base/base_input_object.rb
|
124
|
+
- apps/api/app/graphql/types/base/base_interface.rb
|
125
|
+
- apps/api/app/graphql/types/base/base_object.rb
|
126
|
+
- apps/api/app/graphql/types/base/base_scalar.rb
|
127
|
+
- apps/api/app/graphql/types/base/base_union.rb
|
128
|
+
- apps/api/app/graphql/types/base/mutation_type.rb
|
129
|
+
- apps/api/app/graphql/types/base/query_type.rb
|
130
|
+
- apps/api/app/graphql/types/connections/article_category_connection.rb
|
131
|
+
- apps/api/app/graphql/types/connections/article_connection.rb
|
132
|
+
- apps/api/app/graphql/types/connections/base_connection.rb
|
133
|
+
- apps/api/app/graphql/types/connections/user_connection.rb
|
134
|
+
- apps/api/app/graphql/types/edges/article_category_edge.rb
|
135
|
+
- apps/api/app/graphql/types/edges/article_edge.rb
|
136
|
+
- apps/api/app/graphql/types/edges/base_edge.rb
|
137
|
+
- apps/api/app/graphql/types/edges/user_edge.rb
|
138
|
+
- apps/api/app/graphql/types/user_type.rb
|
139
|
+
- apps/api/app/models/article.rb
|
140
|
+
- apps/api/app/models/article_category.rb
|
141
|
+
- apps/api/app/models/user.rb
|
142
|
+
- apps/api/app/policies/application_policy.rb
|
143
|
+
- apps/api/app/policies/article_category_policy.rb
|
144
|
+
- apps/api/app/policies/article_policy.rb
|
145
|
+
- apps/api/app/policies/user_policy.rb
|
146
|
+
- apps/api/app/utils/association_loader.rb
|
147
|
+
- apps/api/app/utils/fire_store.rb
|
148
|
+
- apps/api/app/utils/firebase_id_token.rb
|
149
|
+
- apps/api/app/utils/json_web_token.rb
|
150
|
+
- apps/api/app/utils/record_loader.rb
|
151
|
+
- apps/api/app/utils/souls_helper.rb
|
152
|
+
- apps/api/cloudbuild.yml
|
153
|
+
- apps/api/config.ru
|
154
|
+
- apps/api/config/database.yml
|
155
|
+
- apps/api/config/souls.rb
|
156
|
+
- apps/api/constants/areas.rb
|
157
|
+
- apps/api/constants/column_name_ja.rb
|
158
|
+
- apps/api/db/migrate/20200006095538_create_users.rb
|
159
|
+
- apps/api/db/migrate/20200712180236_create_article_categories.rb
|
160
|
+
- apps/api/db/migrate/20200714215521_create_articles.rb
|
161
|
+
- apps/api/db/schema.rb
|
162
|
+
- apps/api/db/seeds.rb
|
163
|
+
- apps/api/github/workflows/delivery.yml
|
164
|
+
- apps/api/log/.keep
|
165
|
+
- apps/api/spec/factories/article_categories.rb
|
166
|
+
- apps/api/spec/factories/articles.rb
|
167
|
+
- apps/api/spec/factories/users.rb
|
168
|
+
- apps/api/spec/models/article_category_spec.rb
|
169
|
+
- apps/api/spec/models/article_spec.rb
|
170
|
+
- apps/api/spec/models/user_spec.rb
|
171
|
+
- apps/api/spec/mutations/base/article_category_spec.rb
|
172
|
+
- apps/api/spec/mutations/base/article_spec.rb
|
173
|
+
- apps/api/spec/mutations/base/user_spec.rb
|
174
|
+
- apps/api/spec/policies/article_category_policy_spec.rb
|
175
|
+
- apps/api/spec/policies/article_policy_spec.rb
|
176
|
+
- apps/api/spec/policies/user_policy_spec.rb
|
177
|
+
- apps/api/spec/queries/article_category_spec.rb
|
178
|
+
- apps/api/spec/queries/article_spec.rb
|
179
|
+
- apps/api/spec/queries/user_spec.rb
|
180
|
+
- apps/api/spec/resolvers/article_category_search_spec.rb
|
181
|
+
- apps/api/spec/resolvers/article_search_spec.rb
|
182
|
+
- apps/api/spec/resolvers/user_search_spec.rb
|
183
|
+
- apps/api/spec/spec_helper.rb
|
184
|
+
- apps/api/tmp/.keep
|
185
|
+
- apps/worker/.env.sample
|
186
|
+
- apps/worker/.gitignore
|
187
|
+
- apps/worker/.irbrc
|
188
|
+
- apps/worker/.rspec
|
189
|
+
- apps/worker/.rubocop.yml
|
190
|
+
- apps/worker/.ruby-version
|
191
|
+
- apps/worker/CODE_OF_CONDUCT.md
|
192
|
+
- apps/worker/Dockerfile
|
193
|
+
- apps/worker/Dockerfile.dev
|
194
|
+
- apps/worker/Gemfile
|
195
|
+
- apps/worker/Gemfile.lock
|
196
|
+
- apps/worker/LICENSE.txt
|
197
|
+
- apps/worker/Procfile
|
198
|
+
- apps/worker/Procfile.dev
|
199
|
+
- apps/worker/README.md
|
200
|
+
- apps/worker/Rakefile
|
201
|
+
- apps/worker/app.rb
|
202
|
+
- apps/worker/app/engines/notification_engine.rb
|
203
|
+
- apps/worker/app/graphql/mutations/.keep
|
204
|
+
- apps/worker/app/graphql/mutations/base_mutation.rb
|
205
|
+
- apps/worker/app/graphql/mutations/workers/send_user_mail_job.rb
|
206
|
+
- apps/worker/app/graphql/souls_api_schema.rb
|
207
|
+
- apps/worker/app/graphql/types/.keep
|
208
|
+
- apps/worker/app/graphql/types/base/base_argument.rb
|
209
|
+
- apps/worker/app/graphql/types/base/base_enum.rb
|
210
|
+
- apps/worker/app/graphql/types/base/base_field.rb
|
211
|
+
- apps/worker/app/graphql/types/base/base_input_object.rb
|
212
|
+
- apps/worker/app/graphql/types/base/base_interface.rb
|
213
|
+
- apps/worker/app/graphql/types/base/base_object.rb
|
214
|
+
- apps/worker/app/graphql/types/base/base_scalar.rb
|
215
|
+
- apps/worker/app/graphql/types/base/base_union.rb
|
216
|
+
- apps/worker/app/graphql/types/base/mutation_type.rb
|
217
|
+
- apps/worker/app/graphql/types/base/query_type.rb
|
218
|
+
- apps/worker/app/models/article.rb
|
219
|
+
- apps/worker/app/models/article_category.rb
|
220
|
+
- apps/worker/app/models/user.rb
|
221
|
+
- apps/worker/app/utils/fire_store.rb
|
222
|
+
- apps/worker/app/utils/souls_helper.rb
|
223
|
+
- apps/worker/cloudbuild.yml
|
224
|
+
- apps/worker/config.ru
|
225
|
+
- apps/worker/config/database.yml
|
226
|
+
- apps/worker/config/souls.rb
|
227
|
+
- apps/worker/db/migrate/20200006095538_create_users.rb
|
228
|
+
- apps/worker/db/migrate/20200712180236_create_article_categories.rb
|
229
|
+
- apps/worker/db/migrate/20200714215521_create_articles.rb
|
230
|
+
- apps/worker/db/schema.rb
|
231
|
+
- apps/worker/db/seeds.rb
|
232
|
+
- apps/worker/github/workflows/delivery.yml
|
233
|
+
- apps/worker/log/.keep
|
234
|
+
- apps/worker/spec/factories/article_categories.rb
|
235
|
+
- apps/worker/spec/factories/articles.rb
|
236
|
+
- apps/worker/spec/factories/users.rb
|
237
|
+
- apps/worker/spec/models/article_category_spec.rb
|
238
|
+
- apps/worker/spec/models/article_spec.rb
|
239
|
+
- apps/worker/spec/models/user_spec.rb
|
240
|
+
- apps/worker/spec/spec_helper.rb
|
241
|
+
- apps/worker/tmp/.keep
|
69
242
|
- bin/console
|
70
243
|
- bin/setup
|
71
244
|
- config/souls.rb
|
@@ -75,6 +248,7 @@ files:
|
|
75
248
|
- lib/souls/gcloud.rb
|
76
249
|
- lib/souls/gcloud/compute.rb
|
77
250
|
- lib/souls/gcloud/iam.rb
|
251
|
+
- lib/souls/gcloud/pubsub.rb
|
78
252
|
- lib/souls/generate.rb
|
79
253
|
- lib/souls/generate/application.rb
|
80
254
|
- lib/souls/generate/connection.rb
|