ish_models 0.0.33.228 → 0.0.33.229

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72c17273c98a213fb3173169bf9cf80ac5679d575cf1c0eba0b52862a5a2bf60
4
- data.tar.gz: ab4da31fe3114aba80c648b51cf58eef1a9e2f6a78649d37f99f944806596196
3
+ metadata.gz: c5a2776eca852c5a7e11aa0a03e7d9032e54ff2b3d0d7f8a6b4364df63029d8f
4
+ data.tar.gz: 9ad2d817b825868f4e299c99eb8c915a0436df006c43499d5ea834b0072487a4
5
5
  SHA512:
6
- metadata.gz: b7070edc5d664690a478d7c767e742b8881b49c5670474dd5314a6cf85b44b46a2b04132bcc7e0a4de6d036c1168a62e40aecaf7c5d26d091134daf622c5b7b5
7
- data.tar.gz: a9eb167806f67e420a6638a1d951a851dc10b22f4975b450bc7b42c015981e2c0d160f9dc47f7830d85e35f088a6d4bb5acd573610e807a59b2c7cd2eee3dadb
6
+ metadata.gz: d8441aa5354f28cbeaf28273b1a896066d7416e46258bbf5245d041f4a53ae6fe6f2613456a80c4e4568f49c9a6df3feeb7c29090bca50c5e12138ee41b389fe
7
+ data.tar.gz: be17d74a00957011492cdf197f17c2666bb187bcdbf9bd55c2d0d18db83846e743c5071c2d1afadd176a4e85472caad6917daa553b38ee083aadce65bf38dfb5
@@ -1,6 +1,8 @@
1
1
 
2
+ ##
3
+ ## for alerting
4
+ ##
2
5
  class Iro::OptionWatch
3
-
4
6
  include Mongoid::Document
5
7
  include Mongoid::Timestamps
6
8
  store_in collection: 'iro_option_watches'
@@ -49,14 +49,18 @@ class ::Ish::EmailContext
49
49
  field :send_at, type: DateTime
50
50
 
51
51
 
52
- def self.unsent; new.unsent; end
53
- def unsent; Ish::EmailContext.where( sent_at: nil ); end
52
+ def notsent
53
+ Ish::EmailContext.where( sent_at: nil )
54
+ end
55
+ def self.notsent; new.notsent; end
56
+
54
57
 
55
- def self.scheduled; new.scheduled; end
56
58
  def scheduled
57
59
  # or({ :send_at.lte => Time.now }, { :send_at => nil }) ## This won't work b/c I need draft state!
58
60
  Ish::EmailContext.where({ :send_at.lte => Time.now })
59
61
  end
62
+ def self.scheduled; new.scheduled; end
63
+
60
64
 
61
65
  def self.from_email_list
62
66
  Ish::EmailCampaign.from_email_list
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.228
4
+ version: 0.0.33.229
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox