has_emails 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  == master
2
2
 
3
+ == 0.2.1 / 2008-01-11
4
+
5
+ * Add compatibility with has_messages 0.3.1 / state_machine 0.5.0
6
+
3
7
  == 0.2.0 / 2008-12-14
4
8
 
5
9
  * Remove the PluginAWeek namespace
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/contrib/sshpublisher'
5
5
 
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = 'has_emails'
8
- s.version = '0.2.0'
8
+ s.version = '0.2.1'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.summary = 'Demonstrates a reference implementation for sending emails with logging and asynchronous support.'
11
11
 
@@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s|
13
13
  s.require_path = 'lib'
14
14
  s.has_rdoc = true
15
15
  s.test_files = Dir['test/**/*_test.rb']
16
- s.add_dependency 'has_messages', '>= 0.3.0'
16
+ s.add_dependency 'has_messages', '>= 0.3.1'
17
17
  s.add_dependency 'validates_as_email_address', '>= 0.0.2'
18
18
 
19
19
  s.author = 'Aaron Pfeifer'
data/app/models/email.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # delivered.
4
4
  class Email < Message
5
5
  state_machine :state do
6
- after_transition :on => 'deliver', :do => :deliver_email
6
+ after_transition :on => :deliver, :do => :deliver_email
7
7
  end
8
8
 
9
9
  private
data/lib/has_emails.rb CHANGED
@@ -41,13 +41,13 @@ module HasEmails
41
41
  # Composed emails that have not yet been sent. These consists of all
42
42
  # emails that are currently in the "unsent" state.
43
43
  def unsent_emails
44
- emails.with_state('unsent')
44
+ emails.with_state(:unsent)
45
45
  end
46
46
 
47
47
  # Composed emails that have already been sent. These consist of all emails
48
48
  # that are currently in the "queued" or "sent states.
49
49
  def sent_emails
50
- emails.with_states(%w(queued sent))
50
+ emails.with_states(:queued, :sent)
51
51
  end
52
52
  end
53
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_emails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-14 00:00:00 -05:00
12
+ date: 2009-01-11 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.3.0
23
+ version: 0.3.1
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: validates_as_email_address