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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/iro/alert.rb +11 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7749289ed7e8a7219b042aad08c08fb7010e5c395dbe0865bb07dc8c78fa45f7
4
- data.tar.gz: 875a7cdc16b68fb4c70aaaf9db0a93eb0ba1bf7995420b4a3cea478c7b91b0bf
3
+ metadata.gz: f2b30096d80bf9a313e727c174b2d7f1255954e7eb4ab4cc158a80395ae13af5
4
+ data.tar.gz: 7dbc3734a72d4669fb1daa9a400ce4b6e1409dae04eaf9d37de189fd5706fd2e
5
5
  SHA512:
6
- metadata.gz: f5d94b1bb120aa7ae0573ed95b014b2656bdb3579fae55b014701cdc1d6c366efdf6d21dc1e656696dbfdbaebee451dc7e552975bf8e2c3827c69b7593977558
7
- data.tar.gz: 48b8de44fb84f21357f6d9e73051e00b5c3476514ddccfa5f8b6b1d3912bcba4bc0cc09d99e950b667b936c45395e3bda2742484ea72a399a66cc5f4ae499f5b
6
+ metadata.gz: 1c0a7e7f057d4c065b6976b4ff0bf236a6ce5e43ab0ca6943878e4567b6fbef7aa420a16b28ad7142accb1c0f359f873e4ef05a028c62b1530a417b24afe384b
7
+ data.tar.gz: 444a6658828e564757d82133822defa0964497c4a4e7c63d188a33024b4f8c4f0a54960a915be8d9de7da5ffa7006cff7f8ba0bda082766e4b9e9856e03ce802
@@ -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.3
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-20 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails