surety 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/surety/message.rb +4 -1
- data/surety.gemspec +1 -1
- metadata +4 -4
data/lib/surety/message.rb
CHANGED
@@ -2,6 +2,9 @@ module Surety
|
|
2
2
|
class Message < ActiveRecord::Base
|
3
3
|
require 'state_machine'
|
4
4
|
establish_connection Surety::Configuration.database
|
5
|
+
|
6
|
+
scope :unprocessed, where(:state => 'unprocessed')
|
7
|
+
scope :processed, where(:state => 'processed')
|
5
8
|
|
6
9
|
scope :needs_processing, lambda {
|
7
10
|
puts ActiveRecord::Base.default_timezone
|
@@ -75,4 +78,4 @@ module Surety
|
|
75
78
|
end
|
76
79
|
|
77
80
|
end
|
78
|
-
end
|
81
|
+
end
|
data/surety.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: surety
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Monica McArthur
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: yajl-ruby
|