iron_warbler 2.0.7.3 → 2.0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/iro/alert.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2b30096d80bf9a313e727c174b2d7f1255954e7eb4ab4cc158a80395ae13af5
|
4
|
+
data.tar.gz: 7dbc3734a72d4669fb1daa9a400ce4b6e1409dae04eaf9d37de189fd5706fd2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0a7e7f057d4c065b6976b4ff0bf236a6ce5e43ab0ca6943878e4567b6fbef7aa420a16b28ad7142accb1c0f359f873e4ef05a028c62b1530a417b24afe384b
|
7
|
+
data.tar.gz: 444a6658828e564757d82133822defa0964497c4a4e7c63d188a33024b4f8c4f0a54960a915be8d9de7da5ffa7006cff7f8ba0bda082766e4b9e9856e03ce802
|
data/app/models/iro/alert.rb
CHANGED
@@ -2,10 +2,21 @@
|
|
2
2
|
class Iro::Alert < Iro::ApplicationRecord
|
3
3
|
self.table_name = 'iro_alerts'
|
4
4
|
|
5
|
+
|
5
6
|
DIRECTION_ABOVE = 'ABOVE'
|
6
7
|
DIRECTION_BELOW = 'BELOW'
|
7
8
|
def self.directions_list
|
8
9
|
[ nil, DIRECTION_ABOVE, DIRECTION_BELOW ]
|
9
10
|
end
|
10
11
|
|
12
|
+
STATUS_ACTIVE = 'active'
|
13
|
+
STATUS_INACTIVE = 'inactive'
|
14
|
+
STATUSES = [ 'active', 'inactive' ]
|
15
|
+
|
16
|
+
|
17
|
+
def self.active
|
18
|
+
where( status: STATUS_ACTIVE )
|
19
|
+
end
|
20
|
+
|
21
|
+
|
11
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_warbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.7.
|
4
|
+
version: 2.0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|