smailer 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,7 @@ module Smailer
53
53
  protected
54
54
 
55
55
  def update_mail_campaign_counts
56
- if opened_changed?
56
+ if opened_changed? && mail_campaign
57
57
  mail_campaign.opened_mails_count += opened_was ? -1 : 1
58
58
  Compatibility.save_without_validation mail_campaign
59
59
  end
@@ -9,7 +9,7 @@ module Smailer
9
9
 
10
10
  belongs_to :mailing_list
11
11
  has_many :queued_mails, :dependent => :destroy
12
- has_many :finished_mails
12
+ has_many :finished_mails, :dependent => :destroy
13
13
 
14
14
  validates_presence_of :mailing_list_id, :from
15
15
  validates_numericality_of :mailing_list_id, :unsubscribe_methods, :only_integer => true, :allow_nil => true
@@ -1,3 +1,7 @@
1
1
  module Smailer
2
- VERSION = "0.4.3"
2
+ MAJOR = 0
3
+ MINOR = 4
4
+ PATCH = 4
5
+
6
+ VERSION = [MAJOR, MINOR, PATCH].join('.')
3
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smailer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dimitar Dimitrov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-06 00:00:00 +03:00
18
+ date: 2011-10-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency