souls 0.23.7 → 0.24.1

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.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +34 -5
  5. data/api_v0.0.1.tar.gz +0 -0
  6. data/apps/api/.env.sample +7 -0
  7. data/apps/api/.gitignore +32 -0
  8. data/apps/api/.irbrc +1 -0
  9. data/apps/api/.rspec +3 -0
  10. data/apps/api/.rubocop.yml +132 -0
  11. data/apps/api/.ruby-version +1 -0
  12. data/apps/api/CODE_OF_CONDUCT.md +74 -0
  13. data/apps/api/Dockerfile +16 -0
  14. data/apps/api/Dockerfile.dev +17 -0
  15. data/apps/api/Gemfile +50 -0
  16. data/apps/api/Gemfile.lock +412 -0
  17. data/apps/api/LICENSE.txt +67 -0
  18. data/apps/api/Procfile +2 -0
  19. data/apps/api/Procfile.dev +2 -0
  20. data/apps/api/README.md +37 -0
  21. data/apps/api/Rakefile +5 -0
  22. data/apps/api/app.rb +114 -0
  23. data/apps/api/app/engines/notification_engine.rb +5 -0
  24. data/apps/api/app/graphql/mutations/.keep +0 -0
  25. data/apps/api/app/graphql/mutations/base/article/create_article.rb +30 -0
  26. data/apps/api/app/graphql/mutations/base/article/delete_article.rb +17 -0
  27. data/apps/api/app/graphql/mutations/base/article/destroy_delete_article.rb +17 -0
  28. data/apps/api/app/graphql/mutations/base/article/update_article.rb +30 -0
  29. data/apps/api/app/graphql/mutations/base/article_category/create_article_category.rb +21 -0
  30. data/apps/api/app/graphql/mutations/base/article_category/delete_article_category.rb +17 -0
  31. data/apps/api/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +17 -0
  32. data/apps/api/app/graphql/mutations/base/article_category/update_article_category.rb +21 -0
  33. data/apps/api/app/graphql/mutations/base/user/create_user.rb +31 -0
  34. data/apps/api/app/graphql/mutations/base/user/delete_user.rb +17 -0
  35. data/apps/api/app/graphql/mutations/base/user/destroy_delete_user.rb +17 -0
  36. data/apps/api/app/graphql/mutations/base/user/update_user.rb +31 -0
  37. data/apps/api/app/graphql/mutations/base_mutation.rb +65 -0
  38. data/apps/api/app/graphql/mutations/managers/user_manager/add_user_role.rb +22 -0
  39. data/apps/api/app/graphql/mutations/managers/user_manager/remove_user_role.rb +22 -0
  40. data/apps/api/app/graphql/mutations/managers/user_manager/sign_in_user.rb +45 -0
  41. data/apps/api/app/graphql/queries/article.rb +13 -0
  42. data/apps/api/app/graphql/queries/article_categories.rb +11 -0
  43. data/apps/api/app/graphql/queries/article_category.rb +13 -0
  44. data/apps/api/app/graphql/queries/articles.rb +11 -0
  45. data/apps/api/app/graphql/queries/base_query.rb +12 -0
  46. data/apps/api/app/graphql/queries/me.rb +11 -0
  47. data/apps/api/app/graphql/queries/user.rb +13 -0
  48. data/apps/api/app/graphql/queries/users.rb +11 -0
  49. data/apps/api/app/graphql/resolvers/article_category_search.rb +41 -0
  50. data/apps/api/app/graphql/resolvers/article_search.rb +57 -0
  51. data/apps/api/app/graphql/resolvers/base.rb +17 -0
  52. data/apps/api/app/graphql/resolvers/user_search.rb +63 -0
  53. data/apps/api/app/graphql/souls_api_schema.rb +43 -0
  54. data/apps/api/app/graphql/types/.keep +0 -0
  55. data/apps/api/app/graphql/types/article_category_type.rb +12 -0
  56. data/apps/api/app/graphql/types/article_type.rb +30 -0
  57. data/apps/api/app/graphql/types/base/base_argument.rb +4 -0
  58. data/apps/api/app/graphql/types/base/base_enum.rb +4 -0
  59. data/apps/api/app/graphql/types/base/base_field.rb +5 -0
  60. data/apps/api/app/graphql/types/base/base_input_object.rb +5 -0
  61. data/apps/api/app/graphql/types/base/base_interface.rb +7 -0
  62. data/apps/api/app/graphql/types/base/base_object.rb +6 -0
  63. data/apps/api/app/graphql/types/base/base_scalar.rb +4 -0
  64. data/apps/api/app/graphql/types/base/base_union.rb +4 -0
  65. data/apps/api/app/graphql/types/base/mutation_type.rb +26 -0
  66. data/apps/api/app/graphql/types/base/query_type.rb +18 -0
  67. data/apps/api/app/graphql/types/connections/article_category_connection.rb +3 -0
  68. data/apps/api/app/graphql/types/connections/article_connection.rb +3 -0
  69. data/apps/api/app/graphql/types/connections/base_connection.rb +14 -0
  70. data/apps/api/app/graphql/types/connections/user_connection.rb +3 -0
  71. data/apps/api/app/graphql/types/edges/article_category_edge.rb +5 -0
  72. data/apps/api/app/graphql/types/edges/article_edge.rb +5 -0
  73. data/apps/api/app/graphql/types/edges/base_edge.rb +4 -0
  74. data/apps/api/app/graphql/types/edges/user_edge.rb +5 -0
  75. data/apps/api/app/graphql/types/user_type.rb +24 -0
  76. data/apps/api/app/models/article.rb +4 -0
  77. data/apps/api/app/models/article_category.rb +3 -0
  78. data/apps/api/app/models/user.rb +19 -0
  79. data/apps/api/app/policies/application_policy.rb +40 -0
  80. data/apps/api/app/policies/article_category_policy.rb +31 -0
  81. data/apps/api/app/policies/article_policy.rb +31 -0
  82. data/apps/api/app/policies/user_policy.rb +35 -0
  83. data/apps/api/app/utils/association_loader.rb +50 -0
  84. data/apps/api/app/utils/fire_store.rb +9 -0
  85. data/apps/api/app/utils/firebase_id_token.rb +4 -0
  86. data/apps/api/app/utils/json_web_token.rb +13 -0
  87. data/apps/api/app/utils/record_loader.rb +10 -0
  88. data/apps/api/app/utils/souls_helper.rb +18 -0
  89. data/apps/api/cloudbuild.yml +32 -0
  90. data/apps/api/config.ru +17 -0
  91. data/apps/api/config/database.yml +33 -0
  92. data/apps/api/config/souls.rb +10 -0
  93. data/apps/api/constants/areas.rb +71 -0
  94. data/apps/api/constants/column_name_ja.rb +27 -0
  95. data/apps/api/db/migrate/20200006095538_create_users.rb +30 -0
  96. data/apps/api/db/migrate/20200712180236_create_article_categories.rb +12 -0
  97. data/apps/api/db/migrate/20200714215521_create_articles.rb +22 -0
  98. data/apps/api/db/schema.rb +78 -0
  99. data/apps/api/db/seeds.rb +44 -0
  100. data/apps/api/github/workflows/delivery.yml +81 -0
  101. data/apps/api/log/.keep +0 -0
  102. data/apps/api/spec/factories/article_categories.rb +9 -0
  103. data/apps/api/spec/factories/articles.rb +17 -0
  104. data/apps/api/spec/factories/users.rb +23 -0
  105. data/apps/api/spec/models/article_category_spec.rb +7 -0
  106. data/apps/api/spec/models/article_spec.rb +7 -0
  107. data/apps/api/spec/models/user_spec.rb +7 -0
  108. data/apps/api/spec/mutations/base/article_category_spec.rb +46 -0
  109. data/apps/api/spec/mutations/base/article_spec.rb +70 -0
  110. data/apps/api/spec/mutations/base/user_spec.rb +76 -0
  111. data/apps/api/spec/policies/article_category_policy_spec.rb +25 -0
  112. data/apps/api/spec/policies/article_policy_spec.rb +25 -0
  113. data/apps/api/spec/policies/user_policy_spec.rb +5 -0
  114. data/apps/api/spec/queries/article_category_spec.rb +39 -0
  115. data/apps/api/spec/queries/article_spec.rb +53 -0
  116. data/apps/api/spec/queries/user_spec.rb +59 -0
  117. data/apps/api/spec/resolvers/article_category_search_spec.rb +54 -0
  118. data/apps/api/spec/resolvers/article_search_spec.rb +68 -0
  119. data/apps/api/spec/resolvers/user_search_spec.rb +74 -0
  120. data/apps/api/spec/spec_helper.rb +110 -0
  121. data/apps/api/tmp/.keep +0 -0
  122. data/apps/worker/.env.sample +9 -0
  123. data/apps/worker/.gitignore +32 -0
  124. data/apps/worker/.irbrc +1 -0
  125. data/apps/worker/.rspec +3 -0
  126. data/apps/worker/.rubocop.yml +132 -0
  127. data/apps/worker/.ruby-version +1 -0
  128. data/apps/worker/CODE_OF_CONDUCT.md +74 -0
  129. data/apps/worker/Dockerfile +16 -0
  130. data/apps/worker/Dockerfile.dev +17 -0
  131. data/apps/worker/Gemfile +49 -0
  132. data/apps/worker/Gemfile.lock +396 -0
  133. data/apps/worker/LICENSE.txt +67 -0
  134. data/apps/worker/Procfile +1 -0
  135. data/apps/worker/Procfile.dev +1 -0
  136. data/apps/worker/README.md +37 -0
  137. data/apps/worker/Rakefile +5 -0
  138. data/apps/worker/app.rb +101 -0
  139. data/apps/worker/app/engines/notification_engine.rb +5 -0
  140. data/apps/worker/app/graphql/mutations/.keep +0 -0
  141. data/apps/worker/app/graphql/mutations/base_mutation.rb +16 -0
  142. data/apps/worker/app/graphql/mutations/workers/send_user_mail_job.rb +31 -0
  143. data/apps/worker/app/graphql/souls_api_schema.rb +43 -0
  144. data/apps/worker/app/graphql/types/.keep +0 -0
  145. data/apps/worker/app/graphql/types/base/base_argument.rb +4 -0
  146. data/apps/worker/app/graphql/types/base/base_enum.rb +4 -0
  147. data/apps/worker/app/graphql/types/base/base_field.rb +5 -0
  148. data/apps/worker/app/graphql/types/base/base_input_object.rb +5 -0
  149. data/apps/worker/app/graphql/types/base/base_interface.rb +7 -0
  150. data/apps/worker/app/graphql/types/base/base_object.rb +5 -0
  151. data/apps/worker/app/graphql/types/base/base_scalar.rb +4 -0
  152. data/apps/worker/app/graphql/types/base/base_union.rb +4 -0
  153. data/apps/worker/app/graphql/types/base/mutation_type.rb +12 -0
  154. data/apps/worker/app/graphql/types/base/query_type.rb +6 -0
  155. data/apps/worker/app/models/article.rb +4 -0
  156. data/apps/worker/app/models/article_category.rb +3 -0
  157. data/apps/worker/app/models/user.rb +19 -0
  158. data/apps/worker/app/utils/fire_store.rb +9 -0
  159. data/apps/worker/app/utils/souls_helper.rb +96 -0
  160. data/apps/worker/cloudbuild.yml +32 -0
  161. data/apps/worker/config.ru +17 -0
  162. data/apps/worker/config/database.yml +33 -0
  163. data/apps/worker/config/souls.rb +10 -0
  164. data/apps/worker/db/migrate/20200006095538_create_users.rb +30 -0
  165. data/apps/worker/db/migrate/20200712180236_create_article_categories.rb +12 -0
  166. data/apps/worker/db/migrate/20200714215521_create_articles.rb +22 -0
  167. data/apps/worker/db/schema.rb +78 -0
  168. data/apps/worker/db/seeds.rb +44 -0
  169. data/apps/worker/github/workflows/delivery.yml +81 -0
  170. data/apps/worker/log/.keep +0 -0
  171. data/apps/worker/spec/factories/article_categories.rb +9 -0
  172. data/apps/worker/spec/factories/articles.rb +17 -0
  173. data/apps/worker/spec/factories/users.rb +23 -0
  174. data/apps/worker/spec/models/article_category_spec.rb +7 -0
  175. data/apps/worker/spec/models/article_spec.rb +7 -0
  176. data/apps/worker/spec/models/user_spec.rb +7 -0
  177. data/apps/worker/spec/spec_helper.rb +110 -0
  178. data/apps/worker/tmp/.keep +0 -0
  179. data/config/souls.rb +7 -3
  180. data/exe/souls +18 -5
  181. data/lib/souls.rb +6 -21
  182. data/lib/souls/gcloud.rb +1 -0
  183. data/lib/souls/gcloud/compute.rb +62 -60
  184. data/lib/souls/gcloud/iam.rb +24 -22
  185. data/lib/souls/gcloud/pubsub.rb +21 -0
  186. data/lib/souls/init.rb +1 -1
  187. data/lib/souls/version.rb +1 -1
  188. data/souls_api2.tar.gz +0 -0
  189. metadata +178 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ef86159c8d1ad6c8801122b80b58937274879225668865f5c21da4654e4a076
4
- data.tar.gz: 33f24d59216616940228f0c8409e6d99341a0066c21c43905045a7b456ae0cb0
3
+ metadata.gz: 7a177fdad1d5e6df31a9a51e12ab059d583ae4aa6fc97a529809aeaeb0fb5d85
4
+ data.tar.gz: ab2e23cc111ce0a07e61f98c9755ce6faef4533c9a581632d4ef72b15a652f9a
5
5
  SHA512:
6
- metadata.gz: 3eedc0abbc08ce885f149ef755c4ad8e6ec961921a0e3cf84cb825b04fadf2ad2979a2d6c6d2a47472b43d5fad7b10ff3d36d29e0574f3a0c91a374a20cd7689
7
- data.tar.gz: 869475fd3569b722a1c8ef87fe77fe27425c80225ff4e4deab18d550d0ff0c16f860d2054c31dc790dd01298adc4b4214b68d77668be22ca526f1e9447fa2f02
6
+ metadata.gz: 28c46f5c4491a210d98ef5385840f334d47c4e57925a34478344ba843b037cf0390873710f5d49dea63e96fd920cae18bd3033af90ad3cecfacdbbb2b37abacf
7
+ data.tar.gz: c6fd132c48e96fa2897b649181ab6b3ee442d5b92c1557ce27f3c6a69307319a5758be8cc9346c3a4aacba0a7d146d43ff8ed6f992e585bb30b38891b887ca65
data/.gitignore CHANGED
@@ -12,4 +12,4 @@
12
12
  /config/keyfile.json
13
13
  .env
14
14
  .irb_history
15
- /app/
15
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.23.6)
4
+ souls (0.24.0)
5
5
  paint (= 2.2.1)
6
6
  whirly (= 0.3.0)
7
7
 
data/README.md CHANGED
@@ -19,10 +19,10 @@
19
19
 
20
20
  ## What's SOULs?
21
21
 
22
- Welcome to SOULs Framework!
22
+ Welcome to SOULs Serverless Application Framework!
23
23
 
24
- SOULs is a Serverless Application Framework.
25
- SOULs has six strains, API, Worker, Console, Admin, Media, Doc, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud.
24
+ SOULs is a Serverless Application Framework with GraphQL.
25
+ SOULs has six strains, API, Worker, Console, Admin, Media, Doc, and can be used in combination according to the purpose. SOULs Backend GraphQL Ruby & Frontend Relay are Scalable and Easy to deploy to Google Cloud. No more routing for Backends!
26
26
  You can focus on your business logic. No more infra problems.
27
27
 
28
28
  SOULs creates 6 types of framework.
@@ -74,7 +74,7 @@ And Create Your APP
74
74
 
75
75
  $ souls new app_name
76
76
 
77
- ### Choose SOULs Type:
77
+ ## Choose SOULs Type:
78
78
 
79
79
  Select Strain:
80
80
  1. SOULs GraphQL API
@@ -85,8 +85,37 @@ Select Strain:
85
85
  6. SOULs Doc Web
86
86
 
87
87
 
88
- ## SOULs Document
88
+ ## Gemfile 自動更新アップデート
89
89
 
90
+ `Gemfile`, `Gemfile.lock` を最新のバージョンに自動更新します。
91
+
92
+ ```
93
+ souls gem:update
94
+ ```
95
+
96
+
97
+ 除外したい `gem` は `config/souls.rb` 内の
98
+ `config.fixed_gems` の配列に追加します。
99
+
100
+
101
+ ```ruby
102
+ Souls.configure do |config|
103
+ config.app = "souls-api"
104
+ config.project_id = "souls-api"
105
+ config.strain = "worker"
106
+ config.api_repo = "elsoul/souls_api"
107
+ config.worker_repo = "elsoul/souls_worker"
108
+ config.worker_endpoint = "https://worker.com"
109
+ config.fixed_gems = ["selenium-webdriver", "pg"]
110
+ end
111
+ ```
112
+
113
+
114
+
115
+ ## SOULs Serverless Application Framework Document
116
+
117
+ SOULs サーバーレスアプリケーションフレームワーク
118
+ ドキュメントはこちらから
90
119
  - [SOULs Document](https://souls.elsoul.nl/)
91
120
 
92
121
 
data/api_v0.0.1.tar.gz ADDED
Binary file
@@ -0,0 +1,7 @@
1
+ DB_HOST=xxxxx
2
+ DB_USER=xxxxx
3
+ DB_PW=xxxxx
4
+ SLACK=xxxxx
5
+ TZ="Asia/Tokyo"
6
+ SECRET_KEY_BASE=xxxxxxxxxxxxxx
7
+ GCLOUDSQL_INSTANCE=xxxxxxxxx
@@ -0,0 +1,32 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+ # Ignore all logfiles and tempfiles.
10
+ /log/*
11
+ /tmp/*
12
+ !/log/.keep
13
+ !/tmp/.keep
14
+ /config/initializers/souls.rb
15
+ /elsoul.key
16
+ # Ignore pidfiles, but keep the directory.
17
+ /tmp/pids/*
18
+ !/tmp/pids/
19
+ !/tmp/pids/.keep
20
+ /infra/config/*
21
+ .env
22
+ .envrc
23
+ .irb_history
24
+ /public/assets
25
+ .byebug_history
26
+ .DS_Store
27
+ # Ignore master key for decrypting credentials and more.
28
+ /config/master.key
29
+ /config/keyfile.json
30
+ /config/initializers/souls.rb
31
+ dump.rdb
32
+ /imgs/
data/apps/api/.irbrc ADDED
@@ -0,0 +1 @@
1
+ require "./app"
data/apps/api/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,132 @@
1
+ require: rubocop-graphql
2
+ AllCops:
3
+ SuggestExtensions: false
4
+ EnabledByDefault: true
5
+ Exclude:
6
+ - "db/migrate/*.rb"
7
+ - "db/schema.rb"
8
+ - "spec/spec_helper.rb"
9
+
10
+ Style/Copyright:
11
+ Description: "Include a copyright notice in each file before any code."
12
+ Enabled: false
13
+ VersionAdded: "0.30"
14
+ Notice: '^Copyright (\(c\) )?2[0-9]{3} .+'
15
+ AutocorrectNotice: "Copyright 2021 by ELSOUL LABO B.V."
16
+
17
+ Style/TopLevelMethodDefinition:
18
+ Exclude:
19
+ - "db/seeds.rb"
20
+ - "spec/spec_helper.rb"
21
+
22
+ Style/IpAddresses:
23
+ Exclude:
24
+ - "config.ru"
25
+ - "Gemfile"
26
+
27
+ Style/HashSyntax:
28
+ EnforcedStyle: ruby19
29
+ Exclude:
30
+ - "**/*.rake"
31
+ - "Rakefile"
32
+
33
+ Style/Semicolon:
34
+ Exclude:
35
+ - "spec/**/*"
36
+
37
+ Style/StringLiterals:
38
+ EnforcedStyle: double_quotes
39
+
40
+ Style/ClassVars:
41
+ Exclude:
42
+ - "spec/spec_helper.rb"
43
+ Style/StringConcatenation:
44
+ Enabled: false
45
+
46
+ Style/Documentation:
47
+ Enabled: false
48
+
49
+ Style/DocumentationMethod:
50
+ Enabled: false
51
+
52
+ Style/FrozenStringLiteralComment:
53
+ Enabled: false
54
+ Style/Lambda:
55
+ EnforcedStyle: literal
56
+
57
+ Style/AsciiComments:
58
+ Enabled: false
59
+
60
+ Style/MissingElse:
61
+ Enabled: false
62
+
63
+ Style/StringHashKeys:
64
+ Exclude:
65
+ - "spec/**/*.rb"
66
+
67
+ Style/CollectionMethods:
68
+ Enabled: false
69
+
70
+ Style/FormatString:
71
+ Enabled: false
72
+
73
+ Style/ClassAndModuleChildren:
74
+ Enabled: false
75
+
76
+ Layout/ExtraSpacing:
77
+ Exclude:
78
+ - "db/migrate/*.rb"
79
+
80
+ Layout/LineEndStringConcatenationIndentation:
81
+ Enabled: false
82
+
83
+ GraphQL/ObjectDescription:
84
+ Enabled: false
85
+
86
+ GraphQL/FieldDescription:
87
+ Enabled: false
88
+
89
+ GraphQL/ArgumentDescription:
90
+ Enabled: false
91
+
92
+ GraphQL/ExtractInputType:
93
+ Enabled: false
94
+
95
+ GraphQL/ExtractType:
96
+ Enabled: false
97
+
98
+ GraphQL/ArgumentName:
99
+ Enabled: false
100
+
101
+ Lint/ConstantResolution:
102
+ Enabled: false
103
+
104
+ Lint/NumberConversion:
105
+ Enabled: false
106
+
107
+ Lint/MissingSuper:
108
+ Enabled: false
109
+
110
+ Metrics/AbcSize:
111
+ Enabled: false
112
+
113
+ Metrics/MethodLength:
114
+ Enabled: false
115
+
116
+ Metrics/BlockLength:
117
+ Enabled: false
118
+
119
+ Metrics/CyclomaticComplexity:
120
+ Enabled: false
121
+
122
+ Metrics/PerceivedComplexity:
123
+ Enabled: false
124
+
125
+ Naming/AccessorMethodName:
126
+ Enabled: false
127
+
128
+ Naming/PredicateName:
129
+ Enabled: false
130
+
131
+ Bundler/GemComment:
132
+ Enabled: false
@@ -0,0 +1 @@
1
+ 3.0.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at fumitake.kawasaki@el-soul.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
@@ -0,0 +1,16 @@
1
+ FROM ruby:3.0.1
2
+
3
+ RUN apt-get update -qq && apt-get install -y nodejs redis-server
4
+
5
+ USER root
6
+
7
+ RUN mkdir /myapp
8
+ WORKDIR /myapp
9
+
10
+ COPY Gemfile /myapp/Gemfile
11
+ COPY Gemfile.lock /myapp/Gemfile.lock
12
+ RUN gem install bundler:2.2.24
13
+ RUN bundle
14
+ COPY . /myapp
15
+
16
+ CMD ["foreman", "start"]
@@ -0,0 +1,17 @@
1
+ FROM ruby:3.0.1
2
+
3
+ RUN apt-get update -qq && apt-get install -y nodejs redis-server
4
+
5
+ USER root
6
+
7
+ RUN mkdir /myapp
8
+ WORKDIR /myapp
9
+
10
+ COPY Gemfile /myapp/Gemfile
11
+ COPY Gemfile.lock /myapp/Gemfile.lock
12
+ RUN gem install bundler:2.2.23
13
+ RUN bundle
14
+ COPY . /myapp
15
+
16
+ EXPOSE 4000
17
+ CMD ["foreman", "start", "-f", "Procfile.dev"]
data/apps/api/Gemfile ADDED
@@ -0,0 +1,50 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "6.1.4"
4
+ gem "dotenv", "2.7.6"
5
+ gem "firebase_id_token", "2.4.0"
6
+ gem "foreman", "0.87.2"
7
+ gem "google-cloud-firestore", "2.6.1"
8
+ gem "google-cloud-pubsub", "2.7.1"
9
+ gem "google-cloud-storage", "1.34.1"
10
+ gem "graphql", "1.12.13"
11
+ gem "graphql-batch", "0.4.3"
12
+ gem "jwt", "2.2.3"
13
+ gem "pg", "1.2.3"
14
+ gem "puma", "5.3.2"
15
+ gem "pundit", "2.1.0"
16
+ gem "rack-contrib", "2.3.0"
17
+ gem "rack-cors", "1.1.1"
18
+ gem "rake", "13.0.6"
19
+ gem "role_model", "0.8.2"
20
+ gem "search_object_graphql", "1.0.1"
21
+ gem "sendgrid-ruby", "6.4.0"
22
+ gem "sinatra", "2.1.0"
23
+ gem "sinatra-activerecord", "2.0.23"
24
+ gem "sinatra-contrib", "2.1.0"
25
+ gem "slack-ruby3", "0.1.2"
26
+ gem "zeitwerk", "2.4.2"
27
+
28
+ group :development, :test do
29
+ gem "capybara", "3.35.3"
30
+ gem "database_cleaner", "2.0.1"
31
+ gem "factory_bot", "6.2.0"
32
+ gem "faker", "2.18.0"
33
+ gem "gimei", "1.0.0"
34
+ gem "graphql_playground", "0.0.1"
35
+ gem "pundit-matchers", "1.7.0"
36
+ gem "rack-test", "1.1.0"
37
+ gem "rspec", "3.10.0"
38
+ gem "rubocop", "1.18.3"
39
+ gem "selenium-webdriver", "3.142.7"
40
+ gem "solargraph", "0.42.4"
41
+ gem "souls", "0.24.0"
42
+ gem "webmock", "3.13.0"
43
+ end
44
+
45
+ group :development do
46
+ gem "listen", "3.5.1"
47
+ gem "rubocop-graphql", "0.9.0"
48
+ gem "spring", "2.1.1"
49
+ gem "spring-watcher-listen", "2.0.1"
50
+ end
@@ -0,0 +1,412 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionpack (6.1.4)
5
+ actionview (= 6.1.4)
6
+ activesupport (= 6.1.4)
7
+ rack (~> 2.0, >= 2.0.9)
8
+ rack-test (>= 0.6.3)
9
+ rails-dom-testing (~> 2.0)
10
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
11
+ actionview (6.1.4)
12
+ activesupport (= 6.1.4)
13
+ builder (~> 3.1)
14
+ erubi (~> 1.4)
15
+ rails-dom-testing (~> 2.0)
16
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
17
+ activemodel (6.1.4)
18
+ activesupport (= 6.1.4)
19
+ activerecord (6.1.4)
20
+ activemodel (= 6.1.4)
21
+ activesupport (= 6.1.4)
22
+ activesupport (6.1.4)
23
+ concurrent-ruby (~> 1.0, >= 1.0.2)
24
+ i18n (>= 1.6, < 2)
25
+ minitest (>= 5.1)
26
+ tzinfo (~> 2.0)
27
+ zeitwerk (~> 2.3)
28
+ addressable (2.8.0)
29
+ public_suffix (>= 2.0.2, < 5.0)
30
+ ast (2.4.2)
31
+ backport (1.2.0)
32
+ benchmark (0.1.1)
33
+ builder (3.2.4)
34
+ capybara (3.35.3)
35
+ addressable
36
+ mini_mime (>= 0.1.3)
37
+ nokogiri (~> 1.8)
38
+ rack (>= 1.6.0)
39
+ rack-test (>= 0.6.3)
40
+ regexp_parser (>= 1.5, < 3.0)
41
+ xpath (~> 3.2)
42
+ childprocess (3.0.0)
43
+ concurrent-ruby (1.1.9)
44
+ crack (0.4.5)
45
+ rexml
46
+ crass (1.0.6)
47
+ database_cleaner (2.0.1)
48
+ database_cleaner-active_record (~> 2.0.0)
49
+ database_cleaner-active_record (2.0.1)
50
+ activerecord (>= 5.a)
51
+ database_cleaner-core (~> 2.0.0)
52
+ database_cleaner-core (2.0.1)
53
+ declarative (0.0.20)
54
+ diff-lcs (1.4.4)
55
+ digest-crc (0.6.3)
56
+ rake (>= 12.0.0, < 14.0.0)
57
+ dotenv (2.7.6)
58
+ e2mmap (0.1.0)
59
+ erubi (1.10.0)
60
+ factory_bot (6.2.0)
61
+ activesupport (>= 5.0.0)
62
+ faker (2.18.0)
63
+ i18n (>= 1.6, < 2)
64
+ faraday (1.5.1)
65
+ faraday-em_http (~> 1.0)
66
+ faraday-em_synchrony (~> 1.0)
67
+ faraday-excon (~> 1.1)
68
+ faraday-httpclient (~> 1.0.1)
69
+ faraday-net_http (~> 1.0)
70
+ faraday-net_http_persistent (~> 1.1)
71
+ faraday-patron (~> 1.0)
72
+ multipart-post (>= 1.2, < 3)
73
+ ruby2_keywords (>= 0.0.4)
74
+ faraday-em_http (1.0.0)
75
+ faraday-em_synchrony (1.0.0)
76
+ faraday-excon (1.1.0)
77
+ faraday-httpclient (1.0.1)
78
+ faraday-net_http (1.0.1)
79
+ faraday-net_http_persistent (1.2.0)
80
+ faraday-patron (1.0.0)
81
+ ffi (1.15.3)
82
+ firebase_id_token (2.4.0)
83
+ httparty (~> 0.16, >= 0.16.2)
84
+ jwt (~> 2.1, >= 2.1.0)
85
+ redis (~> 4.0, >= 4.0.1)
86
+ redis-namespace (~> 1.6, >= 1.6.0)
87
+ foreman (0.87.2)
88
+ gapic-common (0.5.0)
89
+ faraday (~> 1.3)
90
+ google-protobuf (~> 3.14)
91
+ googleapis-common-protos (>= 1.3.11, < 2.a)
92
+ googleapis-common-protos-types (>= 1.0.6, < 2.a)
93
+ googleauth (>= 0.16.2, < 2.a)
94
+ grpc (~> 1.36)
95
+ gimei (1.0.0)
96
+ romaji
97
+ google-apis-core (0.4.1)
98
+ addressable (~> 2.5, >= 2.5.1)
99
+ googleauth (>= 0.16.2, < 2.a)
100
+ httpclient (>= 2.8.1, < 3.a)
101
+ mini_mime (~> 1.0)
102
+ representable (~> 3.0)
103
+ retriable (>= 2.0, < 4.a)
104
+ rexml
105
+ webrick
106
+ google-apis-iamcredentials_v1 (0.6.0)
107
+ google-apis-core (>= 0.4, < 2.a)
108
+ google-apis-storage_v1 (0.6.0)
109
+ google-apis-core (>= 0.4, < 2.a)
110
+ google-cloud-core (1.6.0)
111
+ google-cloud-env (~> 1.0)
112
+ google-cloud-errors (~> 1.0)
113
+ google-cloud-env (1.5.0)
114
+ faraday (>= 0.17.3, < 2.0)
115
+ google-cloud-errors (1.1.0)
116
+ google-cloud-firestore (2.6.1)
117
+ concurrent-ruby (~> 1.0)
118
+ google-cloud-core (~> 1.5)
119
+ google-cloud-firestore-v1 (~> 0.0)
120
+ rbtree (~> 0.4.2)
121
+ google-cloud-firestore-v1 (0.4.3)
122
+ gapic-common (>= 0.5, < 2.a)
123
+ google-cloud-errors (~> 1.0)
124
+ google-cloud-pubsub (2.7.1)
125
+ concurrent-ruby (~> 1.1)
126
+ google-cloud-core (~> 1.5)
127
+ google-cloud-pubsub-v1 (~> 0.0)
128
+ google-cloud-pubsub-v1 (0.5.2)
129
+ gapic-common (>= 0.5, < 2.a)
130
+ google-cloud-errors (~> 1.0)
131
+ grpc-google-iam-v1 (>= 0.6.10, < 2.a)
132
+ google-cloud-storage (1.34.1)
133
+ addressable (~> 2.5)
134
+ digest-crc (~> 0.4)
135
+ google-apis-iamcredentials_v1 (~> 0.1)
136
+ google-apis-storage_v1 (~> 0.1)
137
+ google-cloud-core (~> 1.6)
138
+ googleauth (>= 0.16.2, < 2.a)
139
+ mini_mime (~> 1.0)
140
+ google-protobuf (3.17.3-x86_64-linux)
141
+ googleapis-common-protos (1.3.11)
142
+ google-protobuf (~> 3.14)
143
+ googleapis-common-protos-types (>= 1.0.6, < 2.0)
144
+ grpc (~> 1.27)
145
+ googleapis-common-protos-types (1.1.0)
146
+ google-protobuf (~> 3.14)
147
+ googleauth (0.16.2)
148
+ faraday (>= 0.17.3, < 2.0)
149
+ jwt (>= 1.4, < 3.0)
150
+ memoist (~> 0.16)
151
+ multi_json (~> 1.11)
152
+ os (>= 0.9, < 2.0)
153
+ signet (~> 0.14)
154
+ graphql (1.12.13)
155
+ graphql-batch (0.4.3)
156
+ graphql (>= 1.3, < 2)
157
+ promise.rb (~> 0.7.2)
158
+ graphql_playground (0.0.1)
159
+ grpc (1.38.0-x86_64-linux)
160
+ google-protobuf (~> 3.15)
161
+ googleapis-common-protos-types (~> 1.0)
162
+ grpc-google-iam-v1 (0.6.11)
163
+ google-protobuf (~> 3.14)
164
+ googleapis-common-protos (>= 1.3.11, < 2.0)
165
+ grpc (~> 1.27)
166
+ hashdiff (1.0.1)
167
+ httparty (0.18.1)
168
+ mime-types (~> 3.0)
169
+ multi_xml (>= 0.5.2)
170
+ httpclient (2.8.3)
171
+ i18n (1.8.10)
172
+ concurrent-ruby (~> 1.0)
173
+ jaro_winkler (1.5.4)
174
+ jwt (2.2.3)
175
+ kramdown (2.3.1)
176
+ rexml
177
+ kramdown-parser-gfm (1.1.0)
178
+ kramdown (~> 2.0)
179
+ listen (3.5.1)
180
+ rb-fsevent (~> 0.10, >= 0.10.3)
181
+ rb-inotify (~> 0.9, >= 0.9.10)
182
+ loofah (2.10.0)
183
+ crass (~> 1.0.2)
184
+ nokogiri (>= 1.5.9)
185
+ memoist (0.16.2)
186
+ method_source (1.0.0)
187
+ mime-types (3.3.1)
188
+ mime-types-data (~> 3.2015)
189
+ mime-types-data (3.2021.0704)
190
+ mini_mime (1.1.0)
191
+ minitest (5.14.4)
192
+ multi_json (1.15.0)
193
+ multi_xml (0.6.0)
194
+ multipart-post (2.1.1)
195
+ mustermann (1.1.1)
196
+ ruby2_keywords (~> 0.0.1)
197
+ nio4r (2.5.7)
198
+ nokogiri (1.11.7-x86_64-linux)
199
+ racc (~> 1.4)
200
+ os (1.1.1)
201
+ paint (2.2.1)
202
+ parallel (1.20.1)
203
+ parser (3.0.2.0)
204
+ ast (~> 2.4.1)
205
+ pg (1.2.3)
206
+ promise.rb (0.7.4)
207
+ public_suffix (4.0.6)
208
+ puma (5.3.2)
209
+ nio4r (~> 2.0)
210
+ pundit (2.1.0)
211
+ activesupport (>= 3.0.0)
212
+ pundit-matchers (1.7.0)
213
+ rspec-rails (>= 3.0.0)
214
+ racc (1.5.2)
215
+ rack (2.2.3)
216
+ rack-contrib (2.3.0)
217
+ rack (~> 2.0)
218
+ rack-cors (1.1.1)
219
+ rack (>= 2.0.0)
220
+ rack-protection (2.1.0)
221
+ rack
222
+ rack-test (1.1.0)
223
+ rack (>= 1.0, < 3)
224
+ rails-dom-testing (2.0.3)
225
+ activesupport (>= 4.2.0)
226
+ nokogiri (>= 1.6)
227
+ rails-html-sanitizer (1.3.0)
228
+ loofah (~> 2.3)
229
+ railties (6.1.4)
230
+ actionpack (= 6.1.4)
231
+ activesupport (= 6.1.4)
232
+ method_source
233
+ rake (>= 0.13)
234
+ thor (~> 1.0)
235
+ rainbow (3.0.0)
236
+ rake (13.0.6)
237
+ rb-fsevent (0.11.0)
238
+ rb-inotify (0.10.1)
239
+ ffi (~> 1.0)
240
+ rbtree (0.4.4)
241
+ redis (4.3.1)
242
+ redis-namespace (1.8.1)
243
+ redis (>= 3.0.4)
244
+ regexp_parser (2.1.1)
245
+ representable (3.1.1)
246
+ declarative (< 0.1.0)
247
+ trailblazer-option (>= 0.1.1, < 0.2.0)
248
+ uber (< 0.2.0)
249
+ retriable (3.1.2)
250
+ reverse_markdown (2.0.0)
251
+ nokogiri
252
+ rexml (3.2.5)
253
+ role_model (0.8.2)
254
+ romaji (0.2.4)
255
+ rake (>= 0.8.0)
256
+ rspec (3.10.0)
257
+ rspec-core (~> 3.10.0)
258
+ rspec-expectations (~> 3.10.0)
259
+ rspec-mocks (~> 3.10.0)
260
+ rspec-core (3.10.1)
261
+ rspec-support (~> 3.10.0)
262
+ rspec-expectations (3.10.1)
263
+ diff-lcs (>= 1.2.0, < 2.0)
264
+ rspec-support (~> 3.10.0)
265
+ rspec-mocks (3.10.2)
266
+ diff-lcs (>= 1.2.0, < 2.0)
267
+ rspec-support (~> 3.10.0)
268
+ rspec-rails (5.0.1)
269
+ actionpack (>= 5.2)
270
+ activesupport (>= 5.2)
271
+ railties (>= 5.2)
272
+ rspec-core (~> 3.10)
273
+ rspec-expectations (~> 3.10)
274
+ rspec-mocks (~> 3.10)
275
+ rspec-support (~> 3.10)
276
+ rspec-support (3.10.2)
277
+ rubocop (1.18.3)
278
+ parallel (~> 1.10)
279
+ parser (>= 3.0.0.0)
280
+ rainbow (>= 2.2.2, < 4.0)
281
+ regexp_parser (>= 1.8, < 3.0)
282
+ rexml
283
+ rubocop-ast (>= 1.7.0, < 2.0)
284
+ ruby-progressbar (~> 1.7)
285
+ unicode-display_width (>= 1.4.0, < 3.0)
286
+ rubocop-ast (1.8.0)
287
+ parser (>= 3.0.1.1)
288
+ rubocop-graphql (0.9.0)
289
+ rubocop (>= 0.87, < 2)
290
+ ruby-progressbar (1.11.0)
291
+ ruby2_keywords (0.0.5)
292
+ ruby_http_client (3.5.2)
293
+ rubyzip (2.3.2)
294
+ search_object (1.2.4)
295
+ search_object_graphql (1.0.1)
296
+ graphql (~> 1.8)
297
+ search_object (~> 1.2.2)
298
+ selenium-webdriver (3.142.7)
299
+ childprocess (>= 0.5, < 4.0)
300
+ rubyzip (>= 1.2.2)
301
+ sendgrid-ruby (6.4.0)
302
+ ruby_http_client (~> 3.4)
303
+ signet (0.15.0)
304
+ addressable (~> 2.3)
305
+ faraday (>= 0.17.3, < 2.0)
306
+ jwt (>= 1.5, < 3.0)
307
+ multi_json (~> 1.10)
308
+ sinatra (2.1.0)
309
+ mustermann (~> 1.0)
310
+ rack (~> 2.2)
311
+ rack-protection (= 2.1.0)
312
+ tilt (~> 2.0)
313
+ sinatra-activerecord (2.0.23)
314
+ activerecord (>= 4.1)
315
+ sinatra (>= 1.0)
316
+ sinatra-contrib (2.1.0)
317
+ multi_json
318
+ mustermann (~> 1.0)
319
+ rack-protection (= 2.1.0)
320
+ sinatra (= 2.1.0)
321
+ tilt (~> 2.0)
322
+ slack-ruby3 (0.1.2)
323
+ solargraph (0.42.4)
324
+ backport (~> 1.2)
325
+ benchmark
326
+ bundler (>= 1.17.2)
327
+ diff-lcs (~> 1.4)
328
+ e2mmap
329
+ jaro_winkler (~> 1.5)
330
+ kramdown (~> 2.3)
331
+ kramdown-parser-gfm (~> 1.1)
332
+ parser (~> 3.0)
333
+ reverse_markdown (>= 1.0.5, < 3)
334
+ rubocop (>= 0.52)
335
+ thor (~> 1.0)
336
+ tilt (~> 2.0)
337
+ yard (~> 0.9, >= 0.9.24)
338
+ souls (0.24.0)
339
+ paint (= 2.2.1)
340
+ whirly (= 0.3.0)
341
+ spring (2.1.1)
342
+ spring-watcher-listen (2.0.1)
343
+ listen (>= 2.7, < 4.0)
344
+ spring (>= 1.2, < 3.0)
345
+ thor (1.1.0)
346
+ tilt (2.0.10)
347
+ trailblazer-option (0.1.1)
348
+ tzinfo (2.0.4)
349
+ concurrent-ruby (~> 1.0)
350
+ uber (0.1.0)
351
+ unicode-display_width (2.0.0)
352
+ webmock (3.13.0)
353
+ addressable (>= 2.3.6)
354
+ crack (>= 0.3.2)
355
+ hashdiff (>= 0.4.0, < 2.0.0)
356
+ webrick (1.7.0)
357
+ whirly (0.3.0)
358
+ unicode-display_width (>= 1.1)
359
+ xpath (3.2.0)
360
+ nokogiri (~> 1.8)
361
+ yard (0.9.26)
362
+ zeitwerk (2.4.2)
363
+
364
+ PLATFORMS
365
+ x86_64-linux
366
+
367
+ DEPENDENCIES
368
+ activesupport (= 6.1.4)
369
+ capybara (= 3.35.3)
370
+ database_cleaner (= 2.0.1)
371
+ dotenv (= 2.7.6)
372
+ factory_bot (= 6.2.0)
373
+ faker (= 2.18.0)
374
+ firebase_id_token (= 2.4.0)
375
+ foreman (= 0.87.2)
376
+ gimei (= 1.0.0)
377
+ google-cloud-firestore (= 2.6.1)
378
+ google-cloud-pubsub (= 2.7.1)
379
+ google-cloud-storage (= 1.34.1)
380
+ graphql (= 1.12.13)
381
+ graphql-batch (= 0.4.3)
382
+ graphql_playground (= 0.0.1)
383
+ jwt (= 2.2.3)
384
+ listen (= 3.5.1)
385
+ pg (= 1.2.3)
386
+ puma (= 5.3.2)
387
+ pundit (= 2.1.0)
388
+ pundit-matchers (= 1.7.0)
389
+ rack-contrib (= 2.3.0)
390
+ rack-cors (= 1.1.1)
391
+ rack-test (= 1.1.0)
392
+ rake (= 13.0.6)
393
+ role_model (= 0.8.2)
394
+ rspec (= 3.10.0)
395
+ rubocop (= 1.18.3)
396
+ rubocop-graphql (= 0.9.0)
397
+ search_object_graphql (= 1.0.1)
398
+ selenium-webdriver (= 3.142.7)
399
+ sendgrid-ruby (= 6.4.0)
400
+ sinatra (= 2.1.0)
401
+ sinatra-activerecord (= 2.0.23)
402
+ sinatra-contrib (= 2.1.0)
403
+ slack-ruby3 (= 0.1.2)
404
+ solargraph (= 0.42.4)
405
+ souls (= 0.24.0)
406
+ spring (= 2.1.1)
407
+ spring-watcher-listen (= 2.0.1)
408
+ webmock (= 3.13.0)
409
+ zeitwerk (= 2.4.2)
410
+
411
+ BUNDLED WITH
412
+ 2.2.24