rubypitaya 1.3.1 → 1.6.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.
- checksums.yaml +4 -4
- data/lib/rubypitaya/app-template/Gemfile +1 -1
- data/lib/rubypitaya/app-template/Gemfile.lock +2 -2
- data/lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb +10 -8
- data/lib/rubypitaya/app-template/config/routes.rb +11 -0
- data/lib/rubypitaya/app-template/docker-compose.yml +1 -0
- data/lib/rubypitaya/app-template/kubernetes/README.md +60 -0
- data/lib/rubypitaya/app-template/kubernetes/deployment-connector.yaml +35 -0
- data/lib/rubypitaya/app-template/kubernetes/deployment-rubypitaya.yaml +48 -0
- data/lib/rubypitaya/app-template/kubernetes/persistent-volume.yaml +11 -0
- data/lib/rubypitaya/app-template/kubernetes/service-connector.yaml +12 -0
- data/lib/rubypitaya/app-template/kubernetes/service-etcd.yaml +17 -0
- data/lib/rubypitaya/app-template/kubernetes/service-nats.yaml +12 -0
- data/lib/rubypitaya/app-template/kubernetes/service-postgres.yaml +12 -0
- data/lib/rubypitaya/app-template/kubernetes/service-redis.yaml +13 -0
- data/lib/rubypitaya/app-template/kubernetes/service-rubypitaya.yaml +12 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-etcd.yaml +25 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-nats.yaml +23 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-postgres.yaml +35 -0
- data/lib/rubypitaya/app-template/kubernetes/statefulset-redis.yaml +23 -0
- data/lib/rubypitaya/core/etcd_connector.rb +41 -5
- data/lib/rubypitaya/core/handler_router.rb +18 -1
- data/lib/rubypitaya/core/main.rb +6 -2
- data/lib/rubypitaya/core/path.rb +2 -0
- data/lib/rubypitaya/core/routes_base.rb +36 -0
- data/lib/rubypitaya/version.rb +1 -2
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca8b3f228a70fa12fad3f4c813354ec41e924c78786044da97804c00c1766404
|
4
|
+
data.tar.gz: 48dde9ca6f70a0a161451173ab9014398ddde0f0eebd9982b0c2c4f35461e3c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ebec6b4e01a88a4c8ebda46aaaa850874425d7fdb577f1cfa4657f992fd2f182236e3548ab513bb4f8d27ae8e86940ae1cf38e77963d35188645cc717719578
|
7
|
+
data.tar.gz: dee2ad020e8b54d91b2713da3fd407236857c796ae1b02d0b77a3ff6c9f8b9883678764cfa84e0a30c9588fed619dfc9b1b72f2694f77f0ce2192cb50165a879
|
@@ -62,7 +62,7 @@ GEM
|
|
62
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
63
|
rspec-support (~> 3.8.0)
|
64
64
|
rspec-support (3.8.3)
|
65
|
-
rubypitaya (1.
|
65
|
+
rubypitaya (1.6.1)
|
66
66
|
activerecord (= 6.0.2)
|
67
67
|
etcdv3 (= 0.10.2)
|
68
68
|
eventmachine (= 1.2.7)
|
@@ -85,7 +85,7 @@ DEPENDENCIES
|
|
85
85
|
pry (= 0.12.2)
|
86
86
|
rake (= 10.0)
|
87
87
|
rspec (= 3.8.0)
|
88
|
-
rubypitaya (= 1.
|
88
|
+
rubypitaya (= 1.6.1)
|
89
89
|
|
90
90
|
BUNDLED WITH
|
91
91
|
1.17.2
|
@@ -1,11 +1,13 @@
|
|
1
|
-
|
1
|
+
module MyApp
|
2
|
+
class HelloWorldHandler < RubyPitaya::HandlerBase
|
2
3
|
|
3
|
-
|
4
|
+
non_authenticated_actions :sayHello
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
def sayHello
|
7
|
+
response = {
|
8
|
+
code: 'RP-200',
|
9
|
+
msg: 'Hello!'
|
10
|
+
}
|
11
|
+
end
|
10
12
|
end
|
11
|
-
end
|
13
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Kubernetes Configuration
|
2
|
+
========================
|
3
|
+
|
4
|
+
Set namespace
|
5
|
+
-------------
|
6
|
+
|
7
|
+
Open files "deployment-*.yaml" and set the correct namespace on links
|
8
|
+
|
9
|
+
|
10
|
+
Apply sequence
|
11
|
+
--------------
|
12
|
+
|
13
|
+
Run the following command on the listed files.
|
14
|
+
But remember to put your namespace and your KUBECONFIG env var if you need.
|
15
|
+
|
16
|
+
```sh
|
17
|
+
$ kubectl apply -f [file-path]
|
18
|
+
```
|
19
|
+
|
20
|
+
persistent-volume.yaml
|
21
|
+
|
22
|
+
statefulset-etcd.yaml
|
23
|
+
statefulset-nats.yaml
|
24
|
+
statefulset-postgres.yaml
|
25
|
+
statefulset-redis.yaml
|
26
|
+
|
27
|
+
service-etcd.yaml
|
28
|
+
service-nats.yaml
|
29
|
+
service-postgres.yaml
|
30
|
+
service-redis.yaml
|
31
|
+
|
32
|
+
deployment-connector.yaml
|
33
|
+
service-connector.yaml
|
34
|
+
|
35
|
+
|
36
|
+
Create gitlab-registry secret
|
37
|
+
-----------------------------
|
38
|
+
|
39
|
+
Run the following command.
|
40
|
+
But remember to put your namespace and your KUBECONFIG env var if you need.
|
41
|
+
|
42
|
+
```sh
|
43
|
+
$ kubectl create secret docker-registry gitlab-registry --docker-server=[registry-server] --docker-username=[username] --docker-password=[password]
|
44
|
+
```
|
45
|
+
|
46
|
+
If you use a different registry name instead of "gitlab-registry" change the deployment-rubypitaya.yaml imagePullSecrets.name
|
47
|
+
|
48
|
+
|
49
|
+
Apply sequence
|
50
|
+
--------------
|
51
|
+
|
52
|
+
Run the following command on the listed files.
|
53
|
+
But remember to put your namespace and your KUBECONFIG env var if you need.
|
54
|
+
|
55
|
+
```sh
|
56
|
+
$ kubectl apply -f [file-path]
|
57
|
+
```
|
58
|
+
|
59
|
+
deployment-rubypitaya.yaml
|
60
|
+
service-rubypitaya.yaml
|
@@ -0,0 +1,35 @@
|
|
1
|
+
apiVersion: apps/v1
|
2
|
+
kind: Deployment
|
3
|
+
metadata:
|
4
|
+
name: connector
|
5
|
+
labels:
|
6
|
+
app: connector
|
7
|
+
spec:
|
8
|
+
replicas: 1
|
9
|
+
selector:
|
10
|
+
matchLabels:
|
11
|
+
app: connector
|
12
|
+
template:
|
13
|
+
metadata:
|
14
|
+
labels:
|
15
|
+
app: connector
|
16
|
+
spec:
|
17
|
+
containers:
|
18
|
+
- name: connector
|
19
|
+
image: registry.gitlab.com/lucianopc/pitaya-connector:0.2.0
|
20
|
+
ports:
|
21
|
+
- containerPort: 3250
|
22
|
+
name: connector
|
23
|
+
env:
|
24
|
+
- name: PITAYA_CLUSTER_RPC_SERVER_NATS_CONNECT
|
25
|
+
value: "nats://nats.default.svc.cluster.local:4222"
|
26
|
+
- name: PITAYA_CLUSTER_RPC_CLIENT_NATS_CONNECT
|
27
|
+
value: "nats://nats.default.svc.cluster.local:4222"
|
28
|
+
- name: PITAYA_CLUSTER_RPC_CLIENT_NATS_REQUESTTIMEOUT
|
29
|
+
value: "10s"
|
30
|
+
- name: PITAYA_CLUSTER_SD_ETCD_ENDPOINTS
|
31
|
+
value: "etcd.default.svc.cluster.local:2379"
|
32
|
+
- name: PITAYA_CLUSTER_SD_ETCD_PREFIX
|
33
|
+
value: "rubypitaya/"
|
34
|
+
- name: SERVER_ROUTES
|
35
|
+
value: "rubypitaya"
|
@@ -0,0 +1,48 @@
|
|
1
|
+
apiVersion: apps/v1
|
2
|
+
kind: Deployment
|
3
|
+
metadata:
|
4
|
+
name: rubypitaya
|
5
|
+
labels:
|
6
|
+
app: rubypitaya
|
7
|
+
spec:
|
8
|
+
replicas: 1
|
9
|
+
selector:
|
10
|
+
matchLabels:
|
11
|
+
app: rubypitaya
|
12
|
+
template:
|
13
|
+
metadata:
|
14
|
+
labels:
|
15
|
+
app: rubypitaya
|
16
|
+
spec:
|
17
|
+
containers:
|
18
|
+
- name: rubypitaya
|
19
|
+
image: git.topfreegames.com:4567/prestes/tech-prototype/rubypitaya:latest
|
20
|
+
command: ["bundle", "exec", "rubypitaya", "run"]
|
21
|
+
ports:
|
22
|
+
- containerPort: 4567
|
23
|
+
name: rubypitaya
|
24
|
+
env:
|
25
|
+
- name: SERVER_NAME
|
26
|
+
value: "rubypitaya"
|
27
|
+
- name: RUBYPITAYA_ENV
|
28
|
+
value: "production"
|
29
|
+
- name: NATS_URL
|
30
|
+
value: "nats://nats.default.svc.cluster.local:4222"
|
31
|
+
- name: ETCD_URL
|
32
|
+
value: "http://etcd.default.svc.cluster.local:2379"
|
33
|
+
- name: ETCD_PREFIX
|
34
|
+
value: "rubypitaya/"
|
35
|
+
- name: ETCD_LEASE_SECONDS
|
36
|
+
value: "60"
|
37
|
+
- name: REDIS_URL
|
38
|
+
value: "redis://redis.default.svc.cluster.local:6379"
|
39
|
+
- name: DATABASE_HOST
|
40
|
+
value: "postgres.default.svc.cluster.local"
|
41
|
+
- name: DATABASE_USER
|
42
|
+
value: "postgres"
|
43
|
+
- name: DATABASE_PASSWORD
|
44
|
+
value: ""
|
45
|
+
- name: DATABASE_NAME
|
46
|
+
value: "ruby_pitaya"
|
47
|
+
imagePullSecrets:
|
48
|
+
- name: gitlab-registry
|
@@ -0,0 +1,17 @@
|
|
1
|
+
apiVersion: v1
|
2
|
+
kind: Service
|
3
|
+
metadata:
|
4
|
+
name: etcd
|
5
|
+
spec:
|
6
|
+
selector:
|
7
|
+
app: etcd
|
8
|
+
ports:
|
9
|
+
- protocol: TCP
|
10
|
+
port: 2379
|
11
|
+
targetPort: 2379
|
12
|
+
name: etcd-2379
|
13
|
+
- protocol: TCP
|
14
|
+
port: 2380
|
15
|
+
targetPort: 2380
|
16
|
+
name: etcd-2380
|
17
|
+
type: LoadBalancer
|
@@ -0,0 +1,25 @@
|
|
1
|
+
apiVersion: apps/v1
|
2
|
+
kind: StatefulSet
|
3
|
+
metadata:
|
4
|
+
name: etcd
|
5
|
+
labels:
|
6
|
+
app: etcd
|
7
|
+
spec:
|
8
|
+
serviceName: "etcd"
|
9
|
+
replicas: 1
|
10
|
+
selector:
|
11
|
+
matchLabels:
|
12
|
+
app: etcd
|
13
|
+
template:
|
14
|
+
metadata:
|
15
|
+
labels:
|
16
|
+
app: etcd
|
17
|
+
spec:
|
18
|
+
containers:
|
19
|
+
- name: etcd
|
20
|
+
image: appcelerator/etcd:3.0.15
|
21
|
+
ports:
|
22
|
+
- containerPort: 2379
|
23
|
+
name: etcd-2379
|
24
|
+
- containerPort: 2380
|
25
|
+
name: etcd-2380
|
@@ -0,0 +1,23 @@
|
|
1
|
+
apiVersion: apps/v1
|
2
|
+
kind: StatefulSet
|
3
|
+
metadata:
|
4
|
+
name: nats
|
5
|
+
labels:
|
6
|
+
app: nats
|
7
|
+
spec:
|
8
|
+
serviceName: "nats"
|
9
|
+
replicas: 1
|
10
|
+
selector:
|
11
|
+
matchLabels:
|
12
|
+
app: nats
|
13
|
+
template:
|
14
|
+
metadata:
|
15
|
+
labels:
|
16
|
+
app: nats
|
17
|
+
spec:
|
18
|
+
containers:
|
19
|
+
- name: nats
|
20
|
+
image: nats:2.1.4
|
21
|
+
ports:
|
22
|
+
- containerPort: 4222
|
23
|
+
name: nats
|
@@ -0,0 +1,35 @@
|
|
1
|
+
apiVersion: apps/v1
|
2
|
+
kind: StatefulSet
|
3
|
+
metadata:
|
4
|
+
name: postgres
|
5
|
+
labels:
|
6
|
+
app: postgres
|
7
|
+
spec:
|
8
|
+
serviceName: "postgres"
|
9
|
+
replicas: 1
|
10
|
+
selector:
|
11
|
+
matchLabels:
|
12
|
+
app: postgres
|
13
|
+
template:
|
14
|
+
metadata:
|
15
|
+
labels:
|
16
|
+
app: postgres
|
17
|
+
spec:
|
18
|
+
containers:
|
19
|
+
- name: postgres
|
20
|
+
image: postgres:9.6.17
|
21
|
+
env:
|
22
|
+
- name: POSTGRES_HOST_AUTH_METHOD
|
23
|
+
value: "trust"
|
24
|
+
- name: PGDATA
|
25
|
+
value: "/var/lib/postgresql/data/pgdata"
|
26
|
+
ports:
|
27
|
+
- containerPort: 5432
|
28
|
+
name: postgres
|
29
|
+
volumeMounts:
|
30
|
+
- name: postgres
|
31
|
+
mountPath: /var/lib/postgresql/data
|
32
|
+
volumes:
|
33
|
+
- name: postgres
|
34
|
+
persistentVolumeClaim:
|
35
|
+
claimName: postgres-pvc
|
@@ -0,0 +1,23 @@
|
|
1
|
+
apiVersion: apps/v1
|
2
|
+
kind: StatefulSet
|
3
|
+
metadata:
|
4
|
+
name: redis
|
5
|
+
labels:
|
6
|
+
app: redis
|
7
|
+
spec:
|
8
|
+
serviceName: "redis"
|
9
|
+
replicas: 1
|
10
|
+
selector:
|
11
|
+
matchLabels:
|
12
|
+
app: redis
|
13
|
+
template:
|
14
|
+
metadata:
|
15
|
+
labels:
|
16
|
+
app: redis
|
17
|
+
spec:
|
18
|
+
containers:
|
19
|
+
- name: redis
|
20
|
+
image: redis:3.2.5-alpine
|
21
|
+
ports:
|
22
|
+
- containerPort: 6379
|
23
|
+
name: redis
|
@@ -6,35 +6,71 @@ module RubyPitaya
|
|
6
6
|
class EtcdConnector
|
7
7
|
|
8
8
|
def initialize(server_uuid, desktop_name, server_name, etcd_prefix,
|
9
|
-
|
9
|
+
etcd_address, allow_reconnect, lease_seconds)
|
10
10
|
@server_uuid = server_uuid
|
11
11
|
@server_name = server_name
|
12
12
|
@desktop_name = desktop_name
|
13
13
|
@etcd_prefix = etcd_prefix
|
14
14
|
@etcd_address = etcd_address
|
15
15
|
@allow_reconnect = allow_reconnect
|
16
|
+
@lease_seconds = lease_seconds
|
17
|
+
|
18
|
+
@renew_connection_seconds = lease_seconds / 2.0
|
19
|
+
|
20
|
+
@renew_connection_key = nil
|
21
|
+
@renew_connection_value = nil
|
22
|
+
@renew_connection_thread = nil
|
16
23
|
end
|
17
24
|
|
18
25
|
def connect
|
26
|
+
connection_key = get_connection_key
|
27
|
+
connection_value = get_connection_value
|
28
|
+
|
19
29
|
@connection = Etcdv3.new(endpoints: @etcd_address,
|
20
30
|
allow_reconnect: @allow_reconnect)
|
21
|
-
|
31
|
+
|
32
|
+
@lease = @connection.lease_grant(@lease_seconds)
|
33
|
+
|
34
|
+
@connection.put(connection_key, connection_value, lease: @lease.ID)
|
35
|
+
|
36
|
+
@renew_connection_key = connection_key
|
37
|
+
@renew_connection_value = connection_value
|
38
|
+
|
39
|
+
renew_connection
|
22
40
|
end
|
23
41
|
|
24
42
|
def disconnect
|
25
|
-
@connection.del(
|
43
|
+
@connection.del(get_connection_key)
|
26
44
|
end
|
27
45
|
|
28
46
|
private
|
29
47
|
|
30
|
-
def
|
48
|
+
def get_connection_key
|
31
49
|
"#{@etcd_prefix}servers/#{@server_name}/#{@server_uuid}"
|
32
50
|
end
|
33
51
|
|
34
|
-
def
|
52
|
+
def get_connection_value
|
35
53
|
JSON.generate(get_server_data)
|
36
54
|
end
|
37
55
|
|
56
|
+
def renew_connection
|
57
|
+
stop_renew_connection
|
58
|
+
|
59
|
+
@renew_connection_thread = Thread.new do
|
60
|
+
loop do
|
61
|
+
sleep(@renew_connection_seconds)
|
62
|
+
|
63
|
+
@lease = @connection.lease_grant(@lease_seconds)
|
64
|
+
@connection.put(@renew_connection_key, @renew_connection_value,
|
65
|
+
lease: @lease.ID)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def stop_renew_connection
|
71
|
+
@renew_connection_thread.exit unless @renew_connection_thread.nil?
|
72
|
+
end
|
73
|
+
|
38
74
|
def get_server_data
|
39
75
|
{
|
40
76
|
id: @server_uuid,
|
@@ -4,11 +4,26 @@ module RubyPitaya
|
|
4
4
|
|
5
5
|
class HandlerRouter
|
6
6
|
|
7
|
-
def initialize(handler_folder_path)
|
7
|
+
def initialize(handler_folder_path, routes_path)
|
8
|
+
import_routes_file(routes_path)
|
8
9
|
import_handler_files(handler_folder_path)
|
10
|
+
|
11
|
+
import_routes_class
|
9
12
|
import_handler_classes
|
10
13
|
end
|
11
14
|
|
15
|
+
def import_routes_file(routes_path)
|
16
|
+
require routes_path
|
17
|
+
end
|
18
|
+
|
19
|
+
def import_routes_class
|
20
|
+
routes_classes = ObjectSpace.each_object(RoutesBase.singleton_class).select do |klass|
|
21
|
+
klass != RoutesBase
|
22
|
+
end
|
23
|
+
|
24
|
+
@routes = routes_classes.first.new
|
25
|
+
end
|
26
|
+
|
12
27
|
def import_handler_files(handler_folder_path)
|
13
28
|
Gem.find_files("#{handler_folder_path}/*.rb").each { |path| require path }
|
14
29
|
end
|
@@ -22,6 +37,8 @@ module RubyPitaya
|
|
22
37
|
|
23
38
|
@handler_name_map = @handlers.map do |handler|
|
24
39
|
handler_name = handler.class.to_s
|
40
|
+
handler_name = @routes.get_new_handler_name(handler_name)
|
41
|
+
handler_name = handler_name.split('::').last
|
25
42
|
handler_name = handler_name[0].downcase + handler_name[1..-1]
|
26
43
|
|
27
44
|
[handler_name, handler]
|
data/lib/rubypitaya/core/main.rb
CHANGED
@@ -7,6 +7,7 @@ require 'rubypitaya/core/config'
|
|
7
7
|
require 'rubypitaya/core/session'
|
8
8
|
require 'rubypitaya/core/postman'
|
9
9
|
require 'rubypitaya/core/parameters'
|
10
|
+
require 'rubypitaya/core/routes_base'
|
10
11
|
require 'rubypitaya/core/handler_router'
|
11
12
|
require 'rubypitaya/core/etcd_connector'
|
12
13
|
require 'rubypitaya/core/nats_connector'
|
@@ -38,10 +39,12 @@ module RubyPitaya
|
|
38
39
|
|
39
40
|
@etcd_prefix = ENV['ETCD_PREFIX']
|
40
41
|
@etcd_address = ENV['ETCD_URL']
|
42
|
+
@etcd_lease_seconds = ENV['ETCD_LEASE_SECONDS'].to_i
|
41
43
|
@allow_reconnect = false
|
42
44
|
@etcd_connector = EtcdConnector.new(@service_uuid, @desktop_name,
|
43
45
|
@server_name, @etcd_prefix,
|
44
|
-
@etcd_address, @allow_reconnect
|
46
|
+
@etcd_address, @allow_reconnect,
|
47
|
+
@etcd_lease_seconds)
|
45
48
|
@etcd_connector.connect
|
46
49
|
|
47
50
|
@nats_address = ENV['NATS_URL']
|
@@ -67,7 +70,8 @@ module RubyPitaya
|
|
67
70
|
@initializer_broadcast = InitializerBroadcast.new
|
68
71
|
@initializer_broadcast.run(@initializer_content)
|
69
72
|
|
70
|
-
@handler_router = HandlerRouter.new(Path::HANDLERS_FOLDER_PATH
|
73
|
+
@handler_router = HandlerRouter.new(Path::HANDLERS_FOLDER_PATH,
|
74
|
+
Path::ROUTES_FILE_PATH)
|
71
75
|
|
72
76
|
run_server
|
73
77
|
end
|
data/lib/rubypitaya/core/path.rb
CHANGED
@@ -9,5 +9,7 @@ module RubyPitaya
|
|
9
9
|
HANDLERS_FOLDER_PATH = File.join(Dir.pwd, 'app/handlers/')
|
10
10
|
APP_CONFIG_FOLDER_PATH = File.join(Dir.pwd, 'app/config/')
|
11
11
|
MIGRATIONS_FOLDER_PATH = File.join(Dir.pwd, 'db/migrate/')
|
12
|
+
|
13
|
+
ROUTES_FILE_PATH = File.join(Dir.pwd, 'config/routes.rb')
|
12
14
|
end
|
13
15
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
module RubyPitaya
|
3
|
+
|
4
|
+
class RoutesBase
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@handler_name_map = {}
|
8
|
+
|
9
|
+
setup
|
10
|
+
end
|
11
|
+
|
12
|
+
def setup
|
13
|
+
end
|
14
|
+
|
15
|
+
def match(route_name, to:)
|
16
|
+
handler_name, action_name = to.split('#')
|
17
|
+
new_handler_name, new_action_name = route_name.split('.')
|
18
|
+
|
19
|
+
if new_action_name.nil?
|
20
|
+
set_handler_name(handler_name, new_handler_name)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def get_new_handler_name(handler_name)
|
25
|
+
return handler_name unless @handler_name_map.include?(handler_name)
|
26
|
+
|
27
|
+
@handler_name_map[handler_name]
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def set_handler_name(handler_name, new_handler_name)
|
33
|
+
@handler_name_map[handler_name] = new_handler_name
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
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: 1.
|
4
|
+
version: 1.6.1
|
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: 2020-
|
11
|
+
date: 2020-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -201,8 +201,10 @@ files:
|
|
201
201
|
- "./lib/rubypitaya/app-template/app/handlers/player_handler.rb"
|
202
202
|
- "./lib/rubypitaya/app-template/app/models/player.rb"
|
203
203
|
- "./lib/rubypitaya/app-template/app/models/user.rb"
|
204
|
+
- "./lib/rubypitaya/app-template/apptemplate-0.1.0.gem"
|
204
205
|
- "./lib/rubypitaya/app-template/bin/console"
|
205
206
|
- "./lib/rubypitaya/app-template/config/database.yml"
|
207
|
+
- "./lib/rubypitaya/app-template/config/routes.rb"
|
206
208
|
- "./lib/rubypitaya/app-template/db/migrate/001_create_user_migration.rb"
|
207
209
|
- "./lib/rubypitaya/app-template/db/migrate/002_create_player_migration.rb"
|
208
210
|
- "./lib/rubypitaya/app-template/docker-compose.yml"
|
@@ -210,6 +212,20 @@ files:
|
|
210
212
|
- "./lib/rubypitaya/app-template/docker/entrypoint.sh"
|
211
213
|
- "./lib/rubypitaya/app-template/docker/prod/Dockerfile"
|
212
214
|
- "./lib/rubypitaya/app-template/docker/prod/Makefile"
|
215
|
+
- "./lib/rubypitaya/app-template/kubernetes/README.md"
|
216
|
+
- "./lib/rubypitaya/app-template/kubernetes/deployment-connector.yaml"
|
217
|
+
- "./lib/rubypitaya/app-template/kubernetes/deployment-rubypitaya.yaml"
|
218
|
+
- "./lib/rubypitaya/app-template/kubernetes/persistent-volume.yaml"
|
219
|
+
- "./lib/rubypitaya/app-template/kubernetes/service-connector.yaml"
|
220
|
+
- "./lib/rubypitaya/app-template/kubernetes/service-etcd.yaml"
|
221
|
+
- "./lib/rubypitaya/app-template/kubernetes/service-nats.yaml"
|
222
|
+
- "./lib/rubypitaya/app-template/kubernetes/service-postgres.yaml"
|
223
|
+
- "./lib/rubypitaya/app-template/kubernetes/service-redis.yaml"
|
224
|
+
- "./lib/rubypitaya/app-template/kubernetes/service-rubypitaya.yaml"
|
225
|
+
- "./lib/rubypitaya/app-template/kubernetes/statefulset-etcd.yaml"
|
226
|
+
- "./lib/rubypitaya/app-template/kubernetes/statefulset-nats.yaml"
|
227
|
+
- "./lib/rubypitaya/app-template/kubernetes/statefulset-postgres.yaml"
|
228
|
+
- "./lib/rubypitaya/app-template/kubernetes/statefulset-redis.yaml"
|
213
229
|
- "./lib/rubypitaya/core/application_files_importer.rb"
|
214
230
|
- "./lib/rubypitaya/core/config.rb"
|
215
231
|
- "./lib/rubypitaya/core/database_config.rb"
|
@@ -227,6 +243,7 @@ files:
|
|
227
243
|
- "./lib/rubypitaya/core/path.rb"
|
228
244
|
- "./lib/rubypitaya/core/postman.rb"
|
229
245
|
- "./lib/rubypitaya/core/redis_connector.rb"
|
246
|
+
- "./lib/rubypitaya/core/routes_base.rb"
|
230
247
|
- "./lib/rubypitaya/core/session.rb"
|
231
248
|
- "./lib/rubypitaya/version.rb"
|
232
249
|
- bin/rubypitaya
|