surety 0.1.7 → 0.1.8

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.
Files changed (3) hide show
  1. data/lib/surety/message.rb +4 -1
  2. data/surety.gemspec +1 -1
  3. metadata +4 -4
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'surety'
3
- s.version = '0.1.7'
3
+ s.version = '0.1.8'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
  s.summary = 'A lightweight guaranteed-delivery messaging system.'
6
6
  s.homepage = ''
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: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
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-10 00:00:00 Z
18
+ date: 2012-01-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: yajl-ruby