gameoverseer 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gameoverseer.gemspec +0 -1
- data/lib/gameoverseer/console/namespace_creator.rb +4 -0
- data/lib/gameoverseer/version.rb +1 -1
- data/lib/gameoverseer.rb +14 -3
- metadata +2 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d3a55d13dda70786ed10781f46094031df06eb4
|
4
|
+
data.tar.gz: d1435409e75de708fbe9b9860ebc7e6959af5789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 540a6cc5212f1a1a30e430a31efcd92ba31f411ef70559de2f46cde0802a4ef395fdeb7729a3d277a397693de51ed3a4ed58b3f2d3bf2e753e67d051311230ca
|
7
|
+
data.tar.gz: f37e496848ca40fc3316e3dd7a2125f919aec507209c9e183e14d9d649755e9bc741db14a57c4c9af9daf6945d3a9cb6ec72e1ab411ed9a71e6fdbdce0f66d2f
|
data/gameoverseer.gemspec
CHANGED
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib", "bin"]
|
18
18
|
|
19
|
-
s.add_runtime_dependency "gosu", "~> 0.10", ">= 0.10.6"
|
20
19
|
s.add_runtime_dependency "concurrent-ruby"
|
21
20
|
s.add_runtime_dependency "renet", "~> 0.2", ">= 0.2.2"
|
22
21
|
s.add_runtime_dependency "multi_json"
|
data/lib/gameoverseer/version.rb
CHANGED
data/lib/gameoverseer.rb
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
require "set"
|
2
2
|
require "openssl"
|
3
3
|
|
4
|
-
require "gosu"
|
5
4
|
require "concurrent"
|
6
5
|
require "renet"
|
7
6
|
require "multi_json"
|
8
7
|
|
9
8
|
require_relative "gameoverseer/version"
|
10
9
|
|
11
|
-
|
10
|
+
begin
|
11
|
+
require_relative "gameoverseer/console/console"
|
12
|
+
rescue => e
|
13
|
+
require_relative "gameoverseer/console/namespace_creator"
|
14
|
+
require_relative "gameoverseer/console/console"
|
15
|
+
end
|
12
16
|
|
13
17
|
require_relative "gameoverseer/channels/channel_manager"
|
14
18
|
|
@@ -33,6 +37,13 @@ module GameOverseer
|
|
33
37
|
|
34
38
|
# Start server
|
35
39
|
def self.activate(host, port, use_inbuilt_console = false, packet_handler = PacketHandler, encryption_handler = nil)
|
40
|
+
begin
|
41
|
+
GameOverseer::Console.log "Using inbuilt console"
|
42
|
+
require "gosu" if use_inbuilt_console
|
43
|
+
rescue LoadError
|
44
|
+
fatal "Install gosu 0.10.8 or later to use inbuilt console."
|
45
|
+
end
|
46
|
+
|
36
47
|
GameOverseer::ChannelManager.new
|
37
48
|
GameOverseer::MessageManager.new
|
38
49
|
GameOverseer::ClientManager.new
|
@@ -47,7 +58,7 @@ module GameOverseer
|
|
47
58
|
at_exit do
|
48
59
|
GameOverseer::Console.instance.close if use_inbuilt_console
|
49
60
|
@server.supervisor.terminate if defined?(@server.supervisor.terminate)
|
50
|
-
|
61
|
+
GameOverseer::Console.log "Server Shutdown"
|
51
62
|
end
|
52
63
|
end
|
53
64
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameoverseer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyberarm
|
@@ -10,26 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: gosu
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.10'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.10.6
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.10'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.10.6
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: concurrent-ruby
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,6 +75,7 @@ files:
|
|
95
75
|
- lib/gameoverseer/channels/channel_manager.rb
|
96
76
|
- lib/gameoverseer/clients/client_manager.rb
|
97
77
|
- lib/gameoverseer/console/console.rb
|
78
|
+
- lib/gameoverseer/console/namespace_creator.rb
|
98
79
|
- lib/gameoverseer/encryption_handler/encryption_handler.rb
|
99
80
|
- lib/gameoverseer/input_handler/input_handler.rb
|
100
81
|
- lib/gameoverseer/messages/message_manager.rb
|