rubypitaya 2.18.0 → 2.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubypitaya/app-template/Gemfile +1 -1
  3. data/lib/rubypitaya/app-template/Gemfile.lock +7 -8
  4. data/lib/rubypitaya/app-template/Makefile +1 -1
  5. data/lib/rubypitaya/app-template/Rakefile +5 -10
  6. data/lib/rubypitaya/app-template/app/bll/player_bll.rb +1 -1
  7. data/lib/rubypitaya/app-template/app/config/initial_player.json +4 -1
  8. data/lib/rubypitaya/app-template/app/setup/rubypitaya.yml +27 -0
  9. data/lib/rubypitaya/app-template/bin/console +1 -2
  10. data/lib/rubypitaya/app-template/docker-compose.yml +0 -11
  11. data/lib/rubypitaya/app-template/docker/dev/Dockerfile +11 -6
  12. data/lib/rubypitaya/app-template/docker/entrypoint.sh +5 -4
  13. data/lib/rubypitaya/app-template/docker/prod/Dockerfile +16 -7
  14. data/lib/rubypitaya/app-template/docker/wait_for.sh +184 -0
  15. data/lib/rubypitaya/app-template/features/player.feature +1 -1
  16. data/lib/rubypitaya/app-template/helm/Chart.yaml +4 -0
  17. data/lib/rubypitaya/app-template/helm/templates/config-maps/nginx-config.yaml +9 -0
  18. data/lib/rubypitaya/app-template/helm/templates/deployments/connector.yaml +38 -0
  19. data/lib/rubypitaya/app-template/helm/templates/deployments/gameserver-nginx.yaml +40 -0
  20. data/lib/rubypitaya/app-template/helm/templates/deployments/rubypitaya.yaml +67 -0
  21. data/lib/rubypitaya/app-template/helm/templates/role-bindings/rubypitaya.yaml +12 -0
  22. data/lib/rubypitaya/app-template/helm/templates/roles/rubypitaya.yaml +31 -0
  23. data/lib/rubypitaya/app-template/helm/templates/service-accounts/rubypitaya.yaml +4 -0
  24. data/lib/rubypitaya/app-template/helm/templates/services/connector.yaml +13 -0
  25. data/lib/rubypitaya/app-template/helm/templates/services/etcd.yaml +18 -0
  26. data/lib/rubypitaya/app-template/helm/templates/services/gameserver-nginx.yaml +20 -0
  27. data/lib/rubypitaya/app-template/helm/templates/services/gameserver.yaml +20 -0
  28. data/lib/rubypitaya/app-template/helm/templates/services/nats.yaml +13 -0
  29. data/lib/rubypitaya/app-template/helm/templates/services/redis.yaml +14 -0
  30. data/lib/rubypitaya/app-template/helm/templates/services/rubypitaya.yaml +13 -0
  31. data/lib/rubypitaya/app-template/helm/templates/statefulsets/etcd.yaml +28 -0
  32. data/lib/rubypitaya/app-template/helm/templates/statefulsets/nats.yaml +26 -0
  33. data/lib/rubypitaya/app-template/helm/templates/statefulsets/redis.yaml +26 -0
  34. data/lib/rubypitaya/app-template/helm/values.yaml +36 -0
  35. data/lib/rubypitaya/app-template/kubernetes/deployment-rubypitaya.yaml +10 -14
  36. data/lib/rubypitaya/app-template/spec/player_handler_spec.rb +4 -3
  37. data/lib/rubypitaya/core/config.rb +10 -1
  38. data/lib/rubypitaya/core/database_config.rb +15 -10
  39. data/lib/rubypitaya/core/handler_base.rb +11 -0
  40. data/lib/rubypitaya/core/handler_router.rb +3 -11
  41. data/lib/rubypitaya/core/helpers/setup_helper.rb +1 -2
  42. data/lib/rubypitaya/core/http_routes.rb +33 -3
  43. data/lib/rubypitaya/core/main.rb +16 -13
  44. data/lib/rubypitaya/core/path.rb +0 -2
  45. data/lib/rubypitaya/core/setup.rb +10 -0
  46. data/lib/rubypitaya/core/spec-helpers/config_spec_helper.rb +2 -2
  47. data/lib/rubypitaya/core/spec-helpers/handler_spec_helper.rb +3 -1
  48. data/lib/rubypitaya/version.rb +1 -1
  49. metadata +37 -18
  50. data/lib/rubypitaya/app-template/app/setup/initial_player.yml +0 -2
  51. data/lib/rubypitaya/app-template/config/database.yml +0 -20
@@ -1,2 +0,0 @@
1
- wallet:
2
- gold: 10
@@ -1,20 +0,0 @@
1
- default: &default
2
- adapter: postgresql
3
- encoding: unicode
4
- pool: <%= ENV['RUBYPITAYA_MAX_THREADS'] { 5 } %>
5
- host: <%= ENV['DATABASE_HOST'] %>
6
- user: <%= ENV['DATABASE_USER'] %>
7
- password: <%= ENV['DATABASE_PASSWORD'] %>
8
-
9
- development:
10
- <<: *default
11
- database: <%= "#{ENV['DATABASE_NAME']}" %>
12
-
13
- test:
14
- <<: *default
15
- database: <%= "#{ENV['DATABASE_NAME']}_test" %>
16
-
17
- production:
18
- <<: *default
19
- database: <%= "#{ENV['DATABASE_NAME']}" %>
20
-