souls 0.22.4 → 0.22.8

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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +7 -2
  4. data/exe/souls +27 -6
  5. data/hoy/.env.sample +7 -0
  6. data/hoy/.gitignore +32 -0
  7. data/hoy/.irbrc +1 -0
  8. data/hoy/.rspec +3 -0
  9. data/hoy/.rubocop.yml +132 -0
  10. data/hoy/.ruby-version +1 -0
  11. data/hoy/CODE_OF_CONDUCT.md +74 -0
  12. data/hoy/Dockerfile +16 -0
  13. data/hoy/Dockerfile.dev +17 -0
  14. data/hoy/Gemfile +50 -0
  15. data/hoy/Gemfile.lock +407 -0
  16. data/hoy/LICENSE.txt +67 -0
  17. data/hoy/Procfile +2 -0
  18. data/hoy/Procfile.dev +2 -0
  19. data/hoy/README.md +61 -0
  20. data/hoy/Rakefile +5 -0
  21. data/hoy/app.rb +116 -0
  22. data/hoy/app/graphql/mutations/.keep +0 -0
  23. data/hoy/app/graphql/mutations/base/article/create_article.rb +30 -0
  24. data/hoy/app/graphql/mutations/base/article/delete_article.rb +17 -0
  25. data/hoy/app/graphql/mutations/base/article/destroy_delete_article.rb +17 -0
  26. data/hoy/app/graphql/mutations/base/article/update_article.rb +30 -0
  27. data/hoy/app/graphql/mutations/base/article_category/create_article_category.rb +21 -0
  28. data/hoy/app/graphql/mutations/base/article_category/delete_article_category.rb +17 -0
  29. data/hoy/app/graphql/mutations/base/article_category/destroy_delete_article_category.rb +17 -0
  30. data/hoy/app/graphql/mutations/base/article_category/update_article_category.rb +21 -0
  31. data/hoy/app/graphql/mutations/base/user/create_user.rb +31 -0
  32. data/hoy/app/graphql/mutations/base/user/delete_user.rb +17 -0
  33. data/hoy/app/graphql/mutations/base/user/destroy_delete_user.rb +17 -0
  34. data/hoy/app/graphql/mutations/base/user/update_user.rb +31 -0
  35. data/hoy/app/graphql/mutations/base_mutation.rb +33 -0
  36. data/hoy/app/graphql/mutations/user_manager/add_user_role.rb +22 -0
  37. data/hoy/app/graphql/mutations/user_manager/remove_user_role.rb +22 -0
  38. data/hoy/app/graphql/mutations/user_manager/sign_in_user.rb +45 -0
  39. data/hoy/app/graphql/queries/article.rb +13 -0
  40. data/hoy/app/graphql/queries/article_categories.rb +11 -0
  41. data/hoy/app/graphql/queries/article_category.rb +13 -0
  42. data/hoy/app/graphql/queries/articles.rb +11 -0
  43. data/hoy/app/graphql/queries/base_query.rb +9 -0
  44. data/hoy/app/graphql/queries/me.rb +11 -0
  45. data/hoy/app/graphql/queries/user.rb +13 -0
  46. data/hoy/app/graphql/queries/users.rb +11 -0
  47. data/hoy/app/graphql/resolvers/article_category_search.rb +41 -0
  48. data/hoy/app/graphql/resolvers/article_search.rb +57 -0
  49. data/hoy/app/graphql/resolvers/base.rb +17 -0
  50. data/hoy/app/graphql/resolvers/user_search.rb +63 -0
  51. data/hoy/app/graphql/souls_api_schema.rb +43 -0
  52. data/hoy/app/graphql/types/.keep +0 -0
  53. data/hoy/app/graphql/types/article_category_type.rb +12 -0
  54. data/hoy/app/graphql/types/article_type.rb +30 -0
  55. data/hoy/app/graphql/types/base/base_argument.rb +4 -0
  56. data/hoy/app/graphql/types/base/base_enum.rb +4 -0
  57. data/hoy/app/graphql/types/base/base_field.rb +5 -0
  58. data/hoy/app/graphql/types/base/base_input_object.rb +5 -0
  59. data/hoy/app/graphql/types/base/base_interface.rb +7 -0
  60. data/hoy/app/graphql/types/base/base_object.rb +6 -0
  61. data/hoy/app/graphql/types/base/base_scalar.rb +4 -0
  62. data/hoy/app/graphql/types/base/base_union.rb +4 -0
  63. data/hoy/app/graphql/types/base/mutation_type.rb +16 -0
  64. data/hoy/app/graphql/types/base/query_type.rb +18 -0
  65. data/hoy/app/graphql/types/connections/article_category_connection.rb +3 -0
  66. data/hoy/app/graphql/types/connections/article_connection.rb +3 -0
  67. data/hoy/app/graphql/types/connections/base_connection.rb +14 -0
  68. data/hoy/app/graphql/types/connections/user_connection.rb +3 -0
  69. data/hoy/app/graphql/types/edges/article_category_edge.rb +5 -0
  70. data/hoy/app/graphql/types/edges/article_edge.rb +5 -0
  71. data/hoy/app/graphql/types/edges/base_edge.rb +4 -0
  72. data/hoy/app/graphql/types/edges/user_edge.rb +5 -0
  73. data/hoy/app/graphql/types/user_type.rb +22 -0
  74. data/hoy/app/models/article.rb +4 -0
  75. data/hoy/app/models/article_category.rb +3 -0
  76. data/hoy/app/models/user.rb +19 -0
  77. data/hoy/app/policies/application_policy.rb +40 -0
  78. data/hoy/app/policies/article_category_policy.rb +31 -0
  79. data/hoy/app/policies/article_policy.rb +31 -0
  80. data/hoy/app/policies/user_policy.rb +35 -0
  81. data/hoy/app/utils/association_loader.rb +50 -0
  82. data/hoy/app/utils/firebase_id_token.rb +4 -0
  83. data/hoy/app/utils/json_web_token.rb +13 -0
  84. data/hoy/app/utils/record_loader.rb +10 -0
  85. data/hoy/app/utils/souls_helper.rb +96 -0
  86. data/hoy/cloudbuild.yml +32 -0
  87. data/hoy/config.ru +17 -0
  88. data/hoy/config/database.yml +33 -0
  89. data/hoy/config/souls.rb +4 -0
  90. data/hoy/constants/areas.rb +71 -0
  91. data/hoy/constants/column_name_ja.rb +27 -0
  92. data/hoy/db/migrate/20200006095538_create_users.rb +30 -0
  93. data/hoy/db/migrate/20200712180236_create_article_categories.rb +12 -0
  94. data/hoy/db/migrate/20200714215521_create_articles.rb +22 -0
  95. data/hoy/db/schema.rb +78 -0
  96. data/hoy/db/seeds.rb +44 -0
  97. data/hoy/github/workflows/delivery.yml +81 -0
  98. data/hoy/log/.keep +0 -0
  99. data/hoy/spec/factories/article_categories.rb +9 -0
  100. data/hoy/spec/factories/articles.rb +17 -0
  101. data/hoy/spec/factories/users.rb +23 -0
  102. data/hoy/spec/models/article_category_spec.rb +7 -0
  103. data/hoy/spec/models/article_spec.rb +7 -0
  104. data/hoy/spec/models/user_spec.rb +7 -0
  105. data/hoy/spec/mutations/base/article_category_spec.rb +46 -0
  106. data/hoy/spec/mutations/base/article_spec.rb +70 -0
  107. data/hoy/spec/mutations/base/user_spec.rb +76 -0
  108. data/hoy/spec/policies/article_category_policy_spec.rb +25 -0
  109. data/hoy/spec/policies/article_policy_spec.rb +25 -0
  110. data/hoy/spec/policies/user_policy_spec.rb +5 -0
  111. data/hoy/spec/queries/article_category_spec.rb +39 -0
  112. data/hoy/spec/queries/article_spec.rb +53 -0
  113. data/hoy/spec/queries/user_spec.rb +59 -0
  114. data/hoy/spec/resolvers/article_category_search_spec.rb +54 -0
  115. data/hoy/spec/resolvers/article_search_spec.rb +68 -0
  116. data/hoy/spec/resolvers/user_search_spec.rb +74 -0
  117. data/hoy/spec/spec_helper.rb +110 -0
  118. data/hoy/tmp/.keep +0 -0
  119. data/lib/souls.rb +47 -9
  120. data/lib/souls/generate/mutation.rb +4 -6
  121. data/lib/souls/init.rb +16 -9
  122. data/lib/souls/version.rb +1 -1
  123. data/souls.gemspec +3 -1
  124. metadata +146 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 528a4d39a90460bdc9a89980c07ae18301013df362646bcc39fc2bb8f24e4c3e
4
- data.tar.gz: 8eef3a84012274225e698c8abfdde1908a1b363f38b4356eca61974e05569553
3
+ metadata.gz: f6517df7f62ab9f2d60547d4c969966866f2259df1d6d9e8c60894607706a126
4
+ data.tar.gz: f7688cebc8f9776cfd414bc251d13687e5a48619486a880ffb9322c6e6ee1ab1
5
5
  SHA512:
6
- metadata.gz: da9769f157ced4c02c859d5630dc511c125136f7304796274a7717431bfa11c0788bf2db8dc9aacfe2757e953ae00619052a2199fedbc1be90192ed9fb4ad3f7
7
- data.tar.gz: b1d6c97485513c180e47bf388fd4db863ece5fa657af211470025b3c796674e6894df6d6625cee41b125df51bc9f5da611217fa5b0750658f4b79e16b5e06253
6
+ metadata.gz: b9c12b8d22cbcba8c2b830e4745f7d63d3d24a9e74fcf1e8520152c2dc9b5769bfaee2140a867d63a4e9ea5645920f2bd7536f133389371b89edc005a41d9989
7
+ data.tar.gz: 1115378bab9c486a6a0a31510bec9231a7f72ee49afe00cc63bd0dcc62b1ec3c20015ee38a3ce41f9dcc6891e036e307ce235aa6cff8ab9429aecc464ff62b3f
data/Gemfile CHANGED
@@ -10,3 +10,4 @@ gem "rake", "13.0.6"
10
10
  gem "rspec", "3.10.0"
11
11
  gem "rubocop", "1.18.3"
12
12
  gem "steep", "0.44.1"
13
+ gem "whirly", "0.3.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- souls (0.22.3)
4
+ souls (0.22.7)
5
+ paint (= 2.2.1)
6
+ whirly (= 0.3.0)
5
7
 
6
8
  GEM
7
9
  remote: https://rubygems.org/
@@ -57,7 +59,7 @@ GEM
57
59
  rubocop-ast (>= 1.7.0, < 2.0)
58
60
  ruby-progressbar (~> 1.7)
59
61
  unicode-display_width (>= 1.4.0, < 3.0)
60
- rubocop-ast (1.7.0)
62
+ rubocop-ast (1.8.0)
61
63
  parser (>= 3.0.1.1)
62
64
  ruby-progressbar (1.11.0)
63
65
  steep (0.44.1)
@@ -74,6 +76,8 @@ GEM
74
76
  tzinfo (2.0.4)
75
77
  concurrent-ruby (~> 1.0)
76
78
  unicode-display_width (2.0.0)
79
+ whirly (0.3.0)
80
+ unicode-display_width (>= 1.1)
77
81
  zeitwerk (2.4.2)
78
82
 
79
83
  PLATFORMS
@@ -88,6 +92,7 @@ DEPENDENCIES
88
92
  rubocop (= 1.18.3)
89
93
  souls!
90
94
  steep (= 0.44.1)
95
+ whirly (= 0.3.0)
91
96
 
92
97
  BUNDLED WITH
93
98
  2.2.23
data/exe/souls CHANGED
@@ -8,16 +8,32 @@ end
8
8
  begin
9
9
  case ARGV[0]
10
10
  when "new"
11
- STRAINS = ["api", "worker", "media", "admin"]
11
+ STRAINS = ["api", "worker", "console", "admin", "media"]
12
12
  if ARGV[1].nil?
13
13
  puts "you need to specify your app name \n `souls new app_name`"
14
14
  exit
15
15
  end
16
- puts "Which framework: \n 1. SOULs GraphQL API \n 2. SOULs Worker \n 3. SOULs Media Web \n 4. SOULs Admin Web \n Enter Number: "
16
+ first_message = Paint % [
17
+ "Select Strain: %{red_text} %{yellow_text} %{green_text} %{blue_text} %{cyan_text}",
18
+ :white,
19
+ {
20
+ red_text: ["\n1. SOULs GraphQL API", :red],
21
+ yellow_text: ["\n2. SOULs Worker", :yellow],
22
+ green_text: ["\n3. SOULs Console Web", :green],
23
+ blue_text: ["\n4. SOULs Admin Web", :blue],
24
+ cyan_text: ["\n5. SOULs Media Web", :cyan]
25
+ }
26
+ ]
27
+ puts first_message
17
28
  strain = STDIN.gets.chomp.to_i
18
- (1..4).include?(strain) ? puts("Generating SOULs.. \n") : raise(StandardError, "Choose Number 1..4")
19
- Souls::Init.download_souls app_name: ARGV[1], repository_name: "souls_#{STRAINS[strain.to_i - 1]}"
20
- Souls::Init.initial_config_init app_name: ARGV[1], strain: STRAINS[strain.to_i - 1]
29
+ case strain
30
+ when 1, 2
31
+ Souls::Init.download_souls app_name: ARGV[1], repository_name: "souls_#{STRAINS[strain.to_i - 1]}"
32
+ Souls::Init.initial_config_init app_name: ARGV[1], strain: STRAINS[strain.to_i - 1]
33
+ else
34
+ puts "Coming Soon..."
35
+ end
36
+
21
37
  when "s", "server"
22
38
  strain = Souls.configuration.strain
23
39
  case strain
@@ -48,7 +64,12 @@ begin
48
64
  when "-v", "--version"
49
65
  puts Souls::VERSION
50
66
  when "gem:update", "gemfile:update"
51
- Souls.update_gemfile
67
+ status = Paint["Checking for updates...", :yellow]
68
+ Whirly.start spinner: "clock", color: :false, interval: 1000, stop: "🎉" do
69
+ Whirly.status = status
70
+ Souls.update_gemfile
71
+ Whirly.status = "Done!"
72
+ end
52
73
  when "add"
53
74
  case ARGV[1]
54
75
  when "mutation"
data/hoy/.env.sample ADDED
@@ -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
data/hoy/.gitignore ADDED
@@ -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/hoy/.irbrc ADDED
@@ -0,0 +1 @@
1
+ require "./app"
data/hoy/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/hoy/.rubocop.yml ADDED
@@ -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
data/hoy/.ruby-version ADDED
@@ -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/
data/hoy/Dockerfile ADDED
@@ -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.23
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 3000
17
+ CMD ["foreman", "start", "-f", "Procfile.dev"]
data/hoy/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.22.6"
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