actionmailer_inline_css 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/README.md +1 -1
- data/actionmailer_inline_css.gemspec +2 -1
- data/lib/actionmailer_inline_css.rb +2 -7
- metadata +10 -9
data/.gitignore
ADDED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ The [Guide to CSS support in email](http://www.campaignmonitor.com/css/) from
|
|
9
9
|
[campaignmonitor.com](http://www.campaignmonitor.com) shows that Gmail doesn't
|
10
10
|
support `<style>` tags.
|
11
11
|
|
12
|
-
Thus,
|
12
|
+
Thus, the only correct way to send HTML emails is when CSS is inlined on each element.
|
13
13
|
|
14
14
|
|
15
15
|
### [Email Client Popularity](http://www.campaignmonitor.com/stats/email-clients/):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "actionmailer_inline_css"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.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"
|
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.files = `git ls-files`.split("\n")
|
12
12
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
13
13
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
14
|
+
s.require_paths = ["lib"]
|
14
15
|
s.add_dependency('actionmailer', '>= 3.0.0')
|
15
16
|
s.add_dependency('premailer', '>= 1.7.1')
|
16
17
|
s.add_dependency('nokogiri', '>= 1.4.4')
|
@@ -3,11 +3,6 @@ require 'nokogiri'
|
|
3
3
|
require 'action_mailer/inline_css_hook'
|
4
4
|
require 'action_mailer/inline_css_helper'
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
config.after_initialize do
|
9
|
-
ActionMailer::Base.register_interceptor ActionMailer::InlineCssHook
|
10
|
-
ActionMailer::Base.send :helper, ActionMailer::InlineCssHelper
|
11
|
-
end
|
12
|
-
end
|
6
|
+
ActionMailer::Base.register_interceptor ActionMailer::InlineCssHook
|
7
|
+
ActionMailer::Base.send :helper, ActionMailer::InlineCssHelper
|
13
8
|
|
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.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionmailer
|
16
|
-
requirement: &
|
16
|
+
requirement: &23304640 !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: *
|
24
|
+
version_requirements: *23304640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: premailer
|
27
|
-
requirement: &
|
27
|
+
requirement: &23303720 !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: *
|
35
|
+
version_requirements: *23303720
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
38
|
-
requirement: &
|
38
|
+
requirement: &23302940 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 1.4.4
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *23302940
|
47
47
|
description: Module for ActionMailer to improve the rendering of HTML emails by using
|
48
48
|
the 'premailer' gem, which inlines CSS and makes relative links absolute.
|
49
49
|
email: nathan.f77@gmail.com
|
@@ -51,6 +51,7 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
+
- .gitignore
|
54
55
|
- Gemfile
|
55
56
|
- README.md
|
56
57
|
- Rakefile.rb
|
@@ -72,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
73
|
version: '0'
|
73
74
|
segments:
|
74
75
|
- 0
|
75
|
-
hash:
|
76
|
+
hash: 3717499583811940156
|
76
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
78
|
none: false
|
78
79
|
requirements:
|
@@ -81,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
82
|
version: '0'
|
82
83
|
segments:
|
83
84
|
- 0
|
84
|
-
hash:
|
85
|
+
hash: 3717499583811940156
|
85
86
|
requirements: []
|
86
87
|
rubyforge_project:
|
87
88
|
rubygems_version: 1.8.8
|