actionmailer_inline_css 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,3 +4,10 @@ gem 'rake'
4
4
 
5
5
  gemspec
6
6
 
7
+ group :development, :test do
8
+ unless ENV['TRAVIS']
9
+ gem 'ruby-debug', :platform => :mri_18
10
+ gem 'ruby-debug19', :platform => :mri_19, :require => 'ruby-debug'
11
+ end
12
+ end
13
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "actionmailer_inline_css"
3
- s.version = "1.2.0"
3
+ s.version = "1.2.1"
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
  s.summary = "Always send HTML e-mails with inline CSS, using the 'premailer' gem"
6
6
  s.email = "nathan.f77@gmail.com"
@@ -4,7 +4,6 @@
4
4
  module ActionMailer
5
5
  class InlineCssHook
6
6
  def self.delivering_email(message)
7
- message.charset = 'UTF-8'
8
7
  if html_part = (message.html_part || (message.content_type =~ /text\/html/ && message))
9
8
  premailer = ::Premailer.new(html_part.body.to_s, :with_html_string => true)
10
9
  existing_text_part = message.text_part && message.text_part.body.to_s
@@ -17,6 +16,7 @@ module ActionMailer
17
16
  end
18
17
  # Add a text part with either the pre-existing text part, or one generated with premailer.
19
18
  message.text_part do
19
+ content_type "text/plain; charset=utf-8"
20
20
  body existing_text_part || premailer.to_plain_text
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailer_inline_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-17 00:00:00.000000000Z
12
+ date: 2011-09-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionmailer
16
- requirement: &13196380 !ruby/object:Gem::Requirement
16
+ requirement: &79452640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *13196380
24
+ version_requirements: *79452640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: premailer
27
- requirement: &13195380 !ruby/object:Gem::Requirement
27
+ requirement: &79451970 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.7.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *13195380
35
+ version_requirements: *79451970
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &13194580 !ruby/object:Gem::Requirement
38
+ requirement: &79451160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.4.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *13194580
46
+ version_requirements: *79451160
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mocha
49
- requirement: &13193500 !ruby/object:Gem::Requirement
49
+ requirement: &79450260 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 0.10.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *13193500
57
+ version_requirements: *79450260
58
58
  description: Module for ActionMailer to improve the rendering of HTML emails by using
59
59
  the 'premailer' gem, which inlines CSS and makes relative links absolute.
60
60
  email: nathan.f77@gmail.com
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: 397510790940445982
92
+ hash: 455282451
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
@@ -98,10 +98,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: 397510790940445982
101
+ hash: 455282451
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 1.8.8
104
+ rubygems_version: 1.8.10
105
105
  signing_key:
106
106
  specification_version: 3
107
107
  summary: Always send HTML e-mails with inline CSS, using the 'premailer' gem