acpc_table_manager 3.0.10 → 3.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acpc_table_manager/dealer.rb +0 -3
- data/lib/acpc_table_manager/maintainer.rb +0 -4
- data/lib/acpc_table_manager/match.rb +7 -6
- data/lib/acpc_table_manager/match_slice.rb +0 -3
- data/lib/acpc_table_manager/table_queue.rb +1 -1
- data/lib/acpc_table_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6045e649f8474fe093e827a3fd6c659aa639a26
|
4
|
+
data.tar.gz: c19ca84bbb26ce0285dbcb6d7a2bae23dda3c341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58888e75fd4f7918cd41a3ad5cb23be6406d05a28e52a38fed941552e8f8ff68519008bdadf84f8fe1a53d3dcbb99cd2d463bf3e1d08d62c811f3a1649303cb
|
7
|
+
data.tar.gz: 0356b56a54da1ae702bacd23c575cc541c184f127db14ceb5a1ce2ba812ffcfe49f47900551c9e50909fffeb16dbf2627f9ae27a2604a981be7fedecdfed7b9d
|
@@ -50,6 +50,13 @@ class Match
|
|
50
50
|
:possibly_running,
|
51
51
|
where(:proxy_pid.gt => 0).and.where(:dealer_pid.gt => 0)
|
52
52
|
)
|
53
|
+
# @return The matches to be started (have not been started and not
|
54
|
+
# currently running) ordered from newest to oldest.
|
55
|
+
scope :queue, not_started.and.ready_to_start.desc(:updated_at)
|
56
|
+
|
57
|
+
index({ game_definition_key: 1 })
|
58
|
+
index({ proxy_pid: 1, dealer_pid: 1 })
|
59
|
+
index({ user_name: 1 })
|
53
60
|
|
54
61
|
class << self
|
55
62
|
# @todo Move to AcpcDealer
|
@@ -109,12 +116,6 @@ class Match
|
|
109
116
|
running(matches).inject([]) { |ports, m| ports += m.port_numbers }
|
110
117
|
end
|
111
118
|
|
112
|
-
# @return The matches to be started (have not been started and not
|
113
|
-
# currently running) ordered from newest to oldest.
|
114
|
-
def start_queue(matches=all)
|
115
|
-
matches.not_started.and.ready_to_start.desc(:updated_at)
|
116
|
-
end
|
117
|
-
|
118
119
|
def kill_all_orphan_processes!(matches=all)
|
119
120
|
matches.each { |m| m.kill_orphan_processes! }
|
120
121
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acpc_table_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Morrill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pony
|