smailer 0.2.14 → 0.2.15

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.
@@ -4,12 +4,14 @@ module Smailer
4
4
  module Tasks
5
5
  class Send
6
6
  def self.execute
7
+ rails_delivery_method = if Compatibility.rails_3?
8
+ Rails.configuration.action_mailer.delivery_method
9
+ else
10
+ ActionMailer::Base.delivery_method
11
+ end
12
+
7
13
  Mail.defaults do
8
- delivery_method if ::Compatibility.rails_3?
9
- Rails.configuration.action_mailer.delivery_method
10
- else
11
- ActionMailer::Base.delivery_method
12
- end
14
+ delivery_method rails_delivery_method
13
15
  end
14
16
 
15
17
  batch_size = (Smailer::Models::Property.get('queue.batch_size') || 100).to_i
@@ -1,3 +1,3 @@
1
1
  module Smailer
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
data/release-version ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ git push
4
+ gem build smailer.gemspec && gem push smailer-* && rm -f smailer-*
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 14
10
- version: 0.2.14
9
+ - 15
10
+ version: 0.2.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dimitar Dimitrov
@@ -66,6 +66,7 @@ files:
66
66
  - lib/smailer/tasks/send.rb
67
67
  - lib/smailer/version.rb
68
68
  - rails/init.rb
69
+ - release-version
69
70
  - smailer.gemspec
70
71
  has_rdoc: true
71
72
  homepage: http://github.com/mitio/smailer