rubix 0.5.0 → 0.5.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.
- data/VERSION +1 -1
- data/lib/rubix/models/medium.rb +10 -10
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/rubix/models/medium.rb
CHANGED
@@ -3,19 +3,19 @@ module Rubix
|
|
3
3
|
class Medium < Model
|
4
4
|
|
5
5
|
# Numeric codes that correspond to accepting triggers that are any
|
6
|
-
# priority
|
7
|
-
# control is possible, i.e. - accepting :not_classified
|
8
|
-
# :
|
9
|
-
# interests of simplicity, we avoid exposing that degree of
|
6
|
+
# priority greater than or equal to that listed. More fine
|
7
|
+
# grained control is possible, i.e. - accepting :not_classified
|
8
|
+
# and :warning triggers but rejecting :information triggers. In
|
9
|
+
# the interests of simplicity, we avoid exposing that degree of
|
10
10
|
# freedom here.
|
11
11
|
PRIORITY_CODES = {
|
12
12
|
:none => 0,
|
13
|
-
:not_classified =>
|
14
|
-
:information =>
|
15
|
-
:warning =>
|
16
|
-
:average =>
|
17
|
-
:high =>
|
18
|
-
:disaster =>
|
13
|
+
:not_classified => 63,
|
14
|
+
:information => 62,
|
15
|
+
:warning => 60,
|
16
|
+
:average => 56,
|
17
|
+
:high => 48,
|
18
|
+
:disaster => 32,
|
19
19
|
:all => 63,
|
20
20
|
nil => 63
|
21
21
|
}.freeze
|