rubypitaya 2.16.0 → 2.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubypitaya/app-template/Gemfile +1 -1
- data/lib/rubypitaya/app-template/Gemfile.lock +17 -24
- data/lib/rubypitaya/app-template/Makefile +1 -1
- data/lib/rubypitaya/app-template/app/bll/player_bll.rb +2 -2
- data/lib/rubypitaya/app-template/app/handlers/player_handler.rb +1 -1
- data/lib/rubypitaya/app-template/docker-compose.yml +4 -0
- data/lib/rubypitaya/app-template/docker/dev/Dockerfile +15 -7
- data/lib/rubypitaya/app-template/docker/entrypoint.sh +2 -4
- data/lib/rubypitaya/app-template/docker/prod/Dockerfile +26 -18
- data/lib/rubypitaya/app-template/docker/wait_for.sh +184 -0
- data/lib/rubypitaya/app-template/helm/Chart.yaml +4 -0
- data/lib/rubypitaya/app-template/helm/templates/config-maps/nginx-config.yaml +9 -0
- data/lib/rubypitaya/app-template/helm/templates/deployments/connector.yaml +38 -0
- data/lib/rubypitaya/app-template/helm/templates/deployments/gameserver-nginx.yaml +40 -0
- data/lib/rubypitaya/app-template/helm/templates/deployments/rubypitaya.yaml +71 -0
- data/lib/rubypitaya/app-template/helm/templates/role-bindings/rubypitaya.yaml +12 -0
- data/lib/rubypitaya/app-template/helm/templates/roles/rubypitaya.yaml +31 -0
- data/lib/rubypitaya/app-template/helm/templates/service-accounts/rubypitaya.yaml +4 -0
- data/lib/rubypitaya/app-template/helm/templates/services/connector.yaml +13 -0
- data/lib/rubypitaya/app-template/helm/templates/services/etcd.yaml +18 -0
- data/lib/rubypitaya/app-template/helm/templates/services/gameserver-nginx.yaml +20 -0
- data/lib/rubypitaya/app-template/helm/templates/services/gameserver.yaml +20 -0
- data/lib/rubypitaya/app-template/helm/templates/services/nats.yaml +13 -0
- data/lib/rubypitaya/app-template/helm/templates/services/redis.yaml +14 -0
- data/lib/rubypitaya/app-template/helm/templates/services/rubypitaya.yaml +13 -0
- data/lib/rubypitaya/app-template/helm/templates/statefulsets/etcd.yaml +28 -0
- data/lib/rubypitaya/app-template/helm/templates/statefulsets/nats.yaml +26 -0
- data/lib/rubypitaya/app-template/helm/templates/statefulsets/redis.yaml +26 -0
- data/lib/rubypitaya/app-template/helm/values.yaml +32 -0
- data/lib/rubypitaya/core/config.rb +12 -4
- data/lib/rubypitaya/core/config_core.rb +4 -21
- data/lib/rubypitaya/core/handler_base.rb +11 -0
- data/lib/rubypitaya/core/handler_router.rb +3 -11
- data/lib/rubypitaya/core/http_routes.rb +30 -0
- data/lib/rubypitaya/core/main.rb +8 -7
- data/lib/rubypitaya/core/parameters.rb +449 -138
- data/lib/rubypitaya/core/spec-helpers/config_spec_helper.rb +2 -2
- data/lib/rubypitaya/version.rb +1 -1
- metadata +22 -16
@@ -15,7 +15,7 @@ module RubyPitaya
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def config_mock=(value)
|
18
|
-
@config_mock = value
|
18
|
+
@config_mock = value.deep_symbolize_keys.stringify_keys
|
19
19
|
end
|
20
20
|
|
21
21
|
def config_core_override=(value)
|
@@ -24,7 +24,7 @@ module RubyPitaya
|
|
24
24
|
def add(key, value)
|
25
25
|
keys = key.split('.')
|
26
26
|
add_hash = undig(*keys, value)
|
27
|
-
@config_mock = merge_recursively(@config_mock, add_hash)
|
27
|
+
@config_mock = merge_recursively(@config_mock, add_hash).deep_symbolize_keys.stringify_keys
|
28
28
|
end
|
29
29
|
|
30
30
|
private
|
data/lib/rubypitaya/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubypitaya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luciano Prestes Cavalcanti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -150,20 +150,6 @@ dependencies:
|
|
150
150
|
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 6.1.3
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: eventmachine
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 1.2.7
|
160
|
-
type: :runtime
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 1.2.7
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: pry
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -269,11 +255,31 @@ files:
|
|
269
255
|
- "./lib/rubypitaya/app-template/docker/dev/Dockerfile"
|
270
256
|
- "./lib/rubypitaya/app-template/docker/entrypoint.sh"
|
271
257
|
- "./lib/rubypitaya/app-template/docker/prod/Dockerfile"
|
258
|
+
- "./lib/rubypitaya/app-template/docker/wait_for.sh"
|
272
259
|
- "./lib/rubypitaya/app-template/features/hello_world.feature"
|
273
260
|
- "./lib/rubypitaya/app-template/features/player.feature"
|
274
261
|
- "./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb"
|
275
262
|
- "./lib/rubypitaya/app-template/features/step_definitions/rubypitaya_steps.rb"
|
276
263
|
- "./lib/rubypitaya/app-template/features/support/env.rb"
|
264
|
+
- "./lib/rubypitaya/app-template/helm/Chart.yaml"
|
265
|
+
- "./lib/rubypitaya/app-template/helm/templates/config-maps/nginx-config.yaml"
|
266
|
+
- "./lib/rubypitaya/app-template/helm/templates/deployments/connector.yaml"
|
267
|
+
- "./lib/rubypitaya/app-template/helm/templates/deployments/gameserver-nginx.yaml"
|
268
|
+
- "./lib/rubypitaya/app-template/helm/templates/deployments/rubypitaya.yaml"
|
269
|
+
- "./lib/rubypitaya/app-template/helm/templates/role-bindings/rubypitaya.yaml"
|
270
|
+
- "./lib/rubypitaya/app-template/helm/templates/roles/rubypitaya.yaml"
|
271
|
+
- "./lib/rubypitaya/app-template/helm/templates/service-accounts/rubypitaya.yaml"
|
272
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/connector.yaml"
|
273
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/etcd.yaml"
|
274
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/gameserver-nginx.yaml"
|
275
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/gameserver.yaml"
|
276
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/nats.yaml"
|
277
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/redis.yaml"
|
278
|
+
- "./lib/rubypitaya/app-template/helm/templates/services/rubypitaya.yaml"
|
279
|
+
- "./lib/rubypitaya/app-template/helm/templates/statefulsets/etcd.yaml"
|
280
|
+
- "./lib/rubypitaya/app-template/helm/templates/statefulsets/nats.yaml"
|
281
|
+
- "./lib/rubypitaya/app-template/helm/templates/statefulsets/redis.yaml"
|
282
|
+
- "./lib/rubypitaya/app-template/helm/values.yaml"
|
277
283
|
- "./lib/rubypitaya/app-template/kubernetes/README.md"
|
278
284
|
- "./lib/rubypitaya/app-template/kubernetes/deployment-connector.yaml"
|
279
285
|
- "./lib/rubypitaya/app-template/kubernetes/deployment-rubypitaya.yaml"
|