resque_mailer 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 2.2.3 / 2013-02-27
2
+ * MessageDecoy should handle non rails current_env (Hunter Haydel)
3
+
1
4
  ### 2.2.2 / 2013-01-27
2
5
  * Fall back to deliver (not deliver!) on actual message, expected
3
6
  behavios when perform_deliveries is false, etc.
data/lib/resque_mailer.rb CHANGED
@@ -91,7 +91,11 @@ module Resque
91
91
  end
92
92
 
93
93
  def current_env
94
- ::Rails.env
94
+ if defined?(Rails)
95
+ ::Resque::Mailer.current_env || ::Rails.env
96
+ else
97
+ ::Resque::Mailer.current_env
98
+ end
95
99
  end
96
100
 
97
101
  def environment_excluded?
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Mailer
3
- VERSION = "2.2.2"
3
+ VERSION = "2.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-27 00:00:00.000000000 Z
12
+ date: 2013-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionmailer
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  segments:
90
90
  - 0
91
- hash: 303777324103558683
91
+ hash: -3399216281292573074
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  none: false
94
94
  requirements:
@@ -97,10 +97,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: 303777324103558683
100
+ hash: -3399216281292573074
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 1.8.24
103
+ rubygems_version: 1.8.25
104
104
  signing_key:
105
105
  specification_version: 3
106
106
  summary: Rails plugin for sending asynchronous email with ActionMailer and Resque.