acpc_table_manager 3.0.8 → 3.0.9
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/acpc_table_manager/match.rb +2 -6
- data/lib/acpc_table_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbbf4a6246c71fcf7aa637c8e1885c2a0f215faf
|
4
|
+
data.tar.gz: ac2ecf21144df58b7e9919b71e7f3fadcf85b44b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c12cc900964eac3d80b947e55e419719d9e6d3065283833c57a716c421a2bce3a50cf7b8d42d0f97a4e838d4c33c97c7226edfe0d0adb88fc1072ecb872e5785
|
7
|
+
data.tar.gz: 491308db161bf4221231eaea32d1aafc2309da39129056bbcc007b3c50395f4d29407dfa6f78f4430154e0d4f4f74f359c3484cf8274eb712fa14a13324e038c
|
@@ -93,11 +93,7 @@ class Match
|
|
93
93
|
matches.possibly_running.select { |match| match.running? }
|
94
94
|
end
|
95
95
|
def not_running(matches=all)
|
96
|
-
|
97
|
-
matches.not.possibly_running.to_a + (
|
98
|
-
matches.possibly_running.select { |match| !match.running? }
|
99
|
-
)
|
100
|
-
)
|
96
|
+
matches.select { |match| !match.running? }
|
101
97
|
end
|
102
98
|
def finished(matches=all)
|
103
99
|
matches.select { |match| match.finished? }
|
@@ -116,7 +112,7 @@ class Match
|
|
116
112
|
# @return The matches to be started (have not been started and not
|
117
113
|
# currently running) ordered from newest to oldest.
|
118
114
|
def start_queue(matches=all)
|
119
|
-
|
115
|
+
matches.not_started.and.ready_to_start.desc(:updated_at)
|
120
116
|
end
|
121
117
|
|
122
118
|
def kill_all_orphan_processes!(matches=all)
|