gameoverseer 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -3
- data/Gemfile +3 -10
- data/Gemfile.lock +30 -34
- data/README.md +51 -48
- data/gameoverseer.gemspec +2 -2
- data/lib/gameoverseer/channels/channel_manager.rb +49 -36
- data/lib/gameoverseer/clients/client_manager.rb +66 -50
- data/lib/gameoverseer/console/console.rb +206 -207
- data/lib/gameoverseer/encryption_handler/encryption_handler.rb +40 -0
- data/lib/gameoverseer/input_handler/input_handler.rb +36 -30
- data/lib/gameoverseer/messages/message_manager.rb +42 -36
- data/lib/gameoverseer/packet_handler/packet_handler.rb +35 -0
- data/lib/gameoverseer/server/renet_server.rb +126 -84
- data/lib/gameoverseer/services/service.rb +111 -90
- data/lib/gameoverseer/services/services.rb +38 -31
- data/lib/gameoverseer/version.rb +4 -4
- data/lib/gameoverseer.rb +59 -57
- data/test/test_helper.rb +1 -0
- data/test-clients/protocol-lib.rb +13 -13
- data/test-clients/test-client-alpha.rb +36 -36
- data/test-clients/test-client-beta.rb +37 -37
- data/test-clients/test-client-gamma.rb +62 -59
- metadata +23 -30
- data/lib/gameoverseer/server/encryption.rb +0 -31
metadata
CHANGED
@@ -1,78 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameoverseer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Cyberarm
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: gosu
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 0.10.6
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: 0.10.6
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: concurrent-ruby
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: renet
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: multi_json
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
description: GameOverseer is designed to simplify the making of multiplayer games
|
@@ -83,7 +74,7 @@ executables: []
|
|
83
74
|
extensions: []
|
84
75
|
extra_rdoc_files: []
|
85
76
|
files:
|
86
|
-
- .gitignore
|
77
|
+
- ".gitignore"
|
87
78
|
- Gemfile
|
88
79
|
- Gemfile.lock
|
89
80
|
- README.md
|
@@ -92,9 +83,10 @@ files:
|
|
92
83
|
- lib/gameoverseer/channels/channel_manager.rb
|
93
84
|
- lib/gameoverseer/clients/client_manager.rb
|
94
85
|
- lib/gameoverseer/console/console.rb
|
86
|
+
- lib/gameoverseer/encryption_handler/encryption_handler.rb
|
95
87
|
- lib/gameoverseer/input_handler/input_handler.rb
|
96
88
|
- lib/gameoverseer/messages/message_manager.rb
|
97
|
-
- lib/gameoverseer/
|
89
|
+
- lib/gameoverseer/packet_handler/packet_handler.rb
|
98
90
|
- lib/gameoverseer/server/renet_server.rb
|
99
91
|
- lib/gameoverseer/services/service.rb
|
100
92
|
- lib/gameoverseer/services/services.rb
|
@@ -104,29 +96,30 @@ files:
|
|
104
96
|
- test-clients/test-client-alpha.rb
|
105
97
|
- test-clients/test-client-beta.rb
|
106
98
|
- test-clients/test-client-gamma.rb
|
99
|
+
- test/test_helper.rb
|
107
100
|
homepage: https://github.com/cyberarm/rewrite-gameoverseer
|
108
101
|
licenses: []
|
102
|
+
metadata: {}
|
109
103
|
post_install_message:
|
110
104
|
rdoc_options: []
|
111
105
|
require_paths:
|
112
106
|
- lib
|
113
107
|
- bin
|
114
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
109
|
requirements:
|
117
|
-
- -
|
110
|
+
- - ">="
|
118
111
|
- !ruby/object:Gem::Version
|
119
112
|
version: '0'
|
120
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
114
|
requirements:
|
123
|
-
- -
|
115
|
+
- - ">="
|
124
116
|
- !ruby/object:Gem::Version
|
125
117
|
version: '0'
|
126
118
|
requirements: []
|
127
119
|
rubyforge_project:
|
128
|
-
rubygems_version:
|
120
|
+
rubygems_version: 2.6.3
|
129
121
|
signing_key:
|
130
|
-
specification_version:
|
122
|
+
specification_version: 4
|
131
123
|
summary: Generic game server.
|
132
124
|
test_files: []
|
125
|
+
has_rdoc:
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module GameOverseer
|
2
|
-
module Encryption
|
3
|
-
|
4
|
-
# OpenSSL Public/Private Key Encryption For Initial Handshaking And Authentication Masking.
|
5
|
-
def generate(size = 512)
|
6
|
-
@openssl_keys = OpenSSL::PKey::RSA.new(size)
|
7
|
-
end
|
8
|
-
|
9
|
-
def public_key
|
10
|
-
generate unless defined?(@openssl_keys)
|
11
|
-
@openssl_keys.public_key.to_pem
|
12
|
-
end
|
13
|
-
|
14
|
-
def openssl_keys
|
15
|
-
generate unless defined?(@openssl_keys)
|
16
|
-
@openssl_keys
|
17
|
-
end
|
18
|
-
|
19
|
-
# return encrypted string
|
20
|
-
def encrypt(string)
|
21
|
-
generate unless defined?(@openssl_keys)
|
22
|
-
@openssl_keys.private_encrypt(string)
|
23
|
-
end
|
24
|
-
|
25
|
-
# return decrypted string
|
26
|
-
def decrypt(string)
|
27
|
-
generate unless defined?(@openssl_keys)
|
28
|
-
@openssl_keys.public_decrypt(string)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|