pdm-rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,16 +17,15 @@ module ActionMailer
17
17
  end
18
18
 
19
19
  def render_with_pdm(opts)
20
- unless ::Pdm::Rails::Delivery === message.delivery_method
21
- return render_without_pdm(opts)
22
- end
23
-
24
- if message.delivery_method.personalization?
20
+ if ::Pdm::Rails::Delivery === message.delivery_method &&
21
+ message.delivery_method.personalization?
25
22
  assign_pdm_template(opts[:template])
23
+ return("") # The result of this method is shoved in 'body'
26
24
  end
27
-
28
- "" # The result of this method is shoved in 'body'
25
+
26
+ return render_without_pdm(opts)
29
27
  end
30
- alias_method_chain :render, :pdm
28
+
31
29
  end
30
+ alias_method_chain :render, :pdm
32
31
  end
@@ -2,7 +2,7 @@ module Pdm
2
2
  module Rails
3
3
 
4
4
  def version
5
- "0.0.4"
5
+ "0.0.5"
6
6
  end
7
7
  module_function :version
8
8
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - PipeDevMail
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-20 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-11-20 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
22
  none: false
24
23
  requirements:
25
24
  - - ">="
@@ -28,12 +27,12 @@ dependencies:
28
27
  segments:
29
28
  - 0
30
29
  version: "0"
31
- version_requirements: *id001
32
- name: rake
33
- type: :development
34
30
  prerelease: false
31
+ requirement: *id001
32
+ type: :development
33
+ name: rake
35
34
  - !ruby/object:Gem::Dependency
36
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
37
36
  none: false
38
37
  requirements:
39
38
  - - ">="
@@ -44,12 +43,12 @@ dependencies:
44
43
  - 0
45
44
  - 0
46
45
  version: 3.0.0
47
- version_requirements: *id002
48
- name: rails
49
- type: :runtime
50
46
  prerelease: false
47
+ requirement: *id002
48
+ type: :runtime
49
+ name: rails
51
50
  - !ruby/object:Gem::Dependency
52
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
53
52
  none: false
54
53
  requirements:
55
54
  - - ">="
@@ -58,10 +57,10 @@ dependencies:
58
57
  segments:
59
58
  - 0
60
59
  version: "0"
61
- version_requirements: *id003
62
- name: pdm
63
- type: :runtime
64
60
  prerelease: false
61
+ requirement: *id003
62
+ type: :runtime
63
+ name: pdm
65
64
  description: Use the PipeDevMail gem within Rails
66
65
  email:
67
66
  - support@pipedevmail.com
@@ -81,7 +80,6 @@ files:
81
80
  - lib/pdm-rails/railtie.rb
82
81
  - lib/pdm-rails/version.rb
83
82
  - pdm-rails.gemspec
84
- has_rdoc: true
85
83
  homepage: ""
86
84
  licenses: []
87
85
 
@@ -111,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
109
  requirements: []
112
110
 
113
111
  rubyforge_project:
114
- rubygems_version: 1.6.2
112
+ rubygems_version: 1.8.11
115
113
  signing_key:
116
114
  specification_version: 3
117
115
  summary: Interact with the PDM API from Rails