pdm-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pdm-rails/delivery.rb +2 -4
- data/lib/pdm-rails/railtie.rb +2 -1
- data/lib/pdm-rails/version.rb +1 -1
- metadata +3 -3
data/lib/pdm-rails/delivery.rb
CHANGED
@@ -18,10 +18,8 @@ module Pdm
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def deliver_without_pdm!(mail)
|
21
|
-
|
22
|
-
|
23
|
-
mail.deliver!
|
24
|
-
end
|
21
|
+
ActionMailer::Base.wrap_delivery_behavior(mail, @fallback)
|
22
|
+
mail.deliver!
|
25
23
|
end
|
26
24
|
|
27
25
|
def deliver!(mail)
|
data/lib/pdm-rails/railtie.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "pdm"
|
2
|
+
|
1
3
|
module Pdm
|
2
4
|
module Rails
|
3
5
|
|
@@ -10,7 +12,6 @@ module Pdm
|
|
10
12
|
# +pdm_settings+ method to customize the various bits.
|
11
13
|
settings = {
|
12
14
|
:api_key => nil,
|
13
|
-
:logger => ::Rails.logger,
|
14
15
|
}
|
15
16
|
settings = Pdm.default_options.merge(settings)
|
16
17
|
ActionMailer::Base.add_delivery_method(:pdm, Pdm::Rails::Delivery, settings)
|
data/lib/pdm-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdm-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- PipeDevMail
|