akzhan-premailer 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +62 -0
- data/README.rdoc +66 -0
- data/bin/premailer +76 -0
- data/bin/trollop.rb +739 -0
- data/init.rb +1 -0
- data/lib/premailer.rb +6 -0
- data/lib/premailer/html_to_plain_text.rb +81 -0
- data/lib/premailer/premailer.rb +506 -0
- data/misc/client_support.yaml +230 -0
- metadata +127 -0
@@ -0,0 +1,230 @@
|
|
1
|
+
# Capabilities of e-mail clients
|
2
|
+
#
|
3
|
+
# Sources
|
4
|
+
# * http://campaignmonitor.com/css/
|
5
|
+
# * http://www.campaignmonitor.com/blog/archives/2007/04/a_guide_to_css_support_in_emai_2.html
|
6
|
+
# * http://www.campaignmonitor.com/blog/archives/2007/11/do_image_maps_work_in_html_ema.html
|
7
|
+
# * http://www.campaignmonitor.com/blog/archives/2007/11/how_forms_perform_in_html_emai.html
|
8
|
+
# * http://www.xavierfrenette.com/articles/css-support-in-webmail/
|
9
|
+
# * http://www.email-standards.org/
|
10
|
+
# Updated 2008-08-26
|
11
|
+
#
|
12
|
+
# Support: 1 = SAFE, 2 = POOR, 3 = RISKY
|
13
|
+
elements:
|
14
|
+
map:
|
15
|
+
support: 2
|
16
|
+
unsupported_in: [GMail]
|
17
|
+
area:
|
18
|
+
support: 2
|
19
|
+
unsupported_in: [GMail]
|
20
|
+
form:
|
21
|
+
support: 3
|
22
|
+
unsupported_in: [Mobile Me, Old Yahoo, AOL, Live Mail, Outlook 07, Outlook 03]
|
23
|
+
link:
|
24
|
+
support: 2
|
25
|
+
unsupported_in: [GMail, Hotmail, Old Yahoo]
|
26
|
+
attributes:
|
27
|
+
ismap:
|
28
|
+
support: 2
|
29
|
+
unsupported_in: [GMail]
|
30
|
+
css_properties:
|
31
|
+
color:
|
32
|
+
unsupported_in: [Eudora]
|
33
|
+
support_level: 92%
|
34
|
+
support: 1
|
35
|
+
font-size:
|
36
|
+
unsupported_in: [Eudora]
|
37
|
+
support_level: 92%
|
38
|
+
support: 1
|
39
|
+
font-style:
|
40
|
+
unsupported_in: [Eudora]
|
41
|
+
support_level: 92%
|
42
|
+
support: 1
|
43
|
+
font-weight:
|
44
|
+
unsupported_in: [Eudora]
|
45
|
+
support_level: 92%
|
46
|
+
support: 1
|
47
|
+
text-align:
|
48
|
+
unsupported_in: [Eudora]
|
49
|
+
support_level: 92%
|
50
|
+
support: 1
|
51
|
+
text-decoration:
|
52
|
+
unsupported_in: [Eudora]
|
53
|
+
support_level: 92%
|
54
|
+
support: 1
|
55
|
+
background-color:
|
56
|
+
unsupported_in: [Notes 6, Eudora]
|
57
|
+
support_level: 85%
|
58
|
+
support: 2
|
59
|
+
border: &border_shorthand
|
60
|
+
unsupported_in: [Notes 6, Eudora]
|
61
|
+
support_level: 85%
|
62
|
+
support: 2
|
63
|
+
border-bottom: *border_shorthand
|
64
|
+
border-left: *border_shorthand
|
65
|
+
border-right: *border_shorthand
|
66
|
+
border-top: *border_shorthand
|
67
|
+
display:
|
68
|
+
unsupported_in: [Outlook 07, Eudora]
|
69
|
+
support_level: 85%
|
70
|
+
support: 2
|
71
|
+
font-family:
|
72
|
+
unsupported_in: [Eudora, Old GMail, New GMail]
|
73
|
+
support_level: 92%
|
74
|
+
support: 2
|
75
|
+
font-variant:
|
76
|
+
unsupported_in: [Notes 6, Eudora]
|
77
|
+
support_level: 85%
|
78
|
+
support: 2
|
79
|
+
letter-spacing:
|
80
|
+
unsupported_in: [Notes 6, Eudora]
|
81
|
+
support_level: 85%
|
82
|
+
support: 2
|
83
|
+
line-height:
|
84
|
+
unsupported_in: [Notes 6, Eudora]
|
85
|
+
support_level: 85%
|
86
|
+
support: 2
|
87
|
+
padding: &padding_shorthand
|
88
|
+
unsupported_in: [Notes 6, Eudora]
|
89
|
+
support_level: 85%
|
90
|
+
support: 2
|
91
|
+
padding-bottom: *padding_shorthand
|
92
|
+
padding-left: *padding_shorthand
|
93
|
+
padding-right: *padding_shorthand
|
94
|
+
padding-top: *padding_shorthand
|
95
|
+
table-layout:
|
96
|
+
unsupported_in: [Notes 6, Eudora]
|
97
|
+
support_level: 85%
|
98
|
+
support: 2
|
99
|
+
text-indent:
|
100
|
+
unsupported_in: [Notes 6, Eudora]
|
101
|
+
support_level: 85%
|
102
|
+
support: 2
|
103
|
+
text-transform:
|
104
|
+
unsupported_in: [Notes 6, Eudora]
|
105
|
+
support_level: 85%
|
106
|
+
support: 2
|
107
|
+
border-collapse:
|
108
|
+
unsupported_in: [Entourage 2004, Notes 6, Eudora]
|
109
|
+
support_level: 77%
|
110
|
+
support: 3
|
111
|
+
clear:
|
112
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora]
|
113
|
+
support_level: 77%
|
114
|
+
support: 3
|
115
|
+
direction:
|
116
|
+
unsupported_in: [Outlook 07, Entourage 2004, Eudora, New GMail]
|
117
|
+
support_level: 77%
|
118
|
+
support: 3
|
119
|
+
float:
|
120
|
+
unsupported_in: [Outlook 07, Eudora, Old GMail]
|
121
|
+
support_level: 85%
|
122
|
+
support: 3
|
123
|
+
vertical-align:
|
124
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora]
|
125
|
+
support_level: 77%
|
126
|
+
support: 3
|
127
|
+
width:
|
128
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora]
|
129
|
+
support_level: 77%
|
130
|
+
support: 3
|
131
|
+
word-spacing:
|
132
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora]
|
133
|
+
support_level: 77%
|
134
|
+
support: 3
|
135
|
+
height:
|
136
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old GMail]
|
137
|
+
support_level: 77%
|
138
|
+
support: 3
|
139
|
+
list-style-type:
|
140
|
+
unsupported_in: [Outlook 07, Eudora, Hotmail]
|
141
|
+
support_level: 85%
|
142
|
+
support: 3
|
143
|
+
overflow:
|
144
|
+
unsupported_in: [Outlook 07, Entourage 2004, Notes 6, Eudora]
|
145
|
+
support_level: 69%
|
146
|
+
support: 3
|
147
|
+
visibility:
|
148
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old GMail, New GMail, aolWeb]
|
149
|
+
support_level: 77%
|
150
|
+
support: 3
|
151
|
+
white-space:
|
152
|
+
unsupported_in: [Outlook 03, Windows Mail, AOL 9, AOL 10, Notes 6, Eudora, Mobile Me]
|
153
|
+
support_level: 54%
|
154
|
+
support: 3
|
155
|
+
background-image:
|
156
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old GMail, New GMail, Live Mail]
|
157
|
+
support_level: 77%
|
158
|
+
support: 3
|
159
|
+
background-repeat:
|
160
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old GMail, New GMail, Live Mail]
|
161
|
+
support_level: 77%
|
162
|
+
support: 3
|
163
|
+
clip:
|
164
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, New Yahoo, New GMail, Live Mail, Mobile Me]
|
165
|
+
support_level: 77%
|
166
|
+
support: 3
|
167
|
+
cursor:
|
168
|
+
unsupported_in: [Outlook 07, Entourage 2004, Notes 6, Eudora, Old GMail, New GMail]
|
169
|
+
support_level: 69%
|
170
|
+
support: 3
|
171
|
+
list-style-image:
|
172
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old GMail, New GMail, Live Mail]
|
173
|
+
support_level: 77%
|
174
|
+
support: 3
|
175
|
+
list-style-position:
|
176
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old Yahoo, Hotmail]
|
177
|
+
support_level: 77%
|
178
|
+
support: 3
|
179
|
+
margin: &margin_shorthand
|
180
|
+
unsupported_in: [AOL 9, Notes 6, Eudora, Live Mail, Hotmail]
|
181
|
+
support_level: 77%
|
182
|
+
support: 3
|
183
|
+
margin-bottom: *margin_shorthand
|
184
|
+
margin-left: *margin_shorthand
|
185
|
+
margin-right: *margin_shorthand
|
186
|
+
margin-top: *margin_shorthand
|
187
|
+
z-index:
|
188
|
+
unsupported_in: [Notes 6, Eudora, New Yahoo, Old GMail, New GMail, Live Mail]
|
189
|
+
support_level: 85%
|
190
|
+
support: 3
|
191
|
+
left:
|
192
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, New Yahoo, Old GMail, New GMail, Live Mail]
|
193
|
+
support_level: 77%
|
194
|
+
support: 3
|
195
|
+
right:
|
196
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, New Yahoo, Old GMail, New GMail, Live Mail]
|
197
|
+
support_level: 77%
|
198
|
+
support: 3
|
199
|
+
top:
|
200
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, New Yahoo, Old GMail, New GMail, Live Mail]
|
201
|
+
support_level: 77%
|
202
|
+
support: 3
|
203
|
+
background-position:
|
204
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old Yahoo, Old GMail, New GMail, Live Mail, Hotmail]
|
205
|
+
support_level: 77%
|
206
|
+
support: 3
|
207
|
+
border-spacing:
|
208
|
+
unsupported_in: [Outlook 03, Outlook 07, Windows Mail, Entourage 2004, AOL 10, Notes 6, Eudora, Live Mail, Hotmail]
|
209
|
+
support_level: 46%
|
210
|
+
support: 3
|
211
|
+
bottom:
|
212
|
+
unsupported_in: [Outlook 07, AOL 9, Notes 6, Eudora, New Yahoo, Old GMail, New GMail, Live Mail]
|
213
|
+
support_level: 69%
|
214
|
+
support: 3
|
215
|
+
empty-cells:
|
216
|
+
unsupported_in: [Outlook 03, Outlook 07, Windows Mail, Entourage 2004, AOL 9, AOL 10, Notes 6, Eudora, Hotmail]
|
217
|
+
support_level: 38%
|
218
|
+
support: 3
|
219
|
+
position:
|
220
|
+
unsupported_in: [Outlook 07, Notes 6, Eudora, Old Yahoo, New Yahoo, Old GMail, New GMail, Live Mail, Hotmail, Mobile Me]
|
221
|
+
support_level: 77%
|
222
|
+
support: 3
|
223
|
+
caption-side:
|
224
|
+
unsupported_in: [Outlook 03, Outlook 07, Windows Mail, Mac Mail, Entourage 2004, Entourage 2008, AOL 9, AOL 10, AOL Desktop for Mac, Notes 6, Eudora, New Yahoo, Hotmail]
|
225
|
+
support_level: 15%
|
226
|
+
support: 3
|
227
|
+
opacity:
|
228
|
+
unsupported_in: [Outlook 03, Outlook 07, Windows Mail, Entourage 2004, Notes 6, Eudora, New Yahoo, Old GMail, New GMail, Live Mail, Hotmail]
|
229
|
+
support_level: 54%
|
230
|
+
support: 3
|
metadata
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: akzhan-premailer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 5
|
9
|
+
- 5
|
10
|
+
version: 1.5.5
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Alex Dunae
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2009-12-03 00:00:00 +03:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: nokogiri
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 4
|
33
|
+
- 0
|
34
|
+
version: 1.4.0
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: css_parser
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 57
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 9
|
49
|
+
- 1
|
50
|
+
version: 0.9.1
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: htmlentities
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 63
|
62
|
+
segments:
|
63
|
+
- 4
|
64
|
+
- 0
|
65
|
+
- 0
|
66
|
+
version: 4.0.0
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
69
|
+
description: Improve the rendering of HTML emails by making CSS inline, converting links and warning about unsupported code.
|
70
|
+
email: code@dunae.ca
|
71
|
+
executables:
|
72
|
+
- premailer
|
73
|
+
extensions: []
|
74
|
+
|
75
|
+
extra_rdoc_files:
|
76
|
+
- CHANGELOG.rdoc
|
77
|
+
- README.rdoc
|
78
|
+
files:
|
79
|
+
- init.rb
|
80
|
+
- bin/premailer
|
81
|
+
- bin/trollop.rb
|
82
|
+
- lib/premailer.rb
|
83
|
+
- lib/premailer/html_to_plain_text.rb
|
84
|
+
- lib/premailer/premailer.rb
|
85
|
+
- misc/client_support.yaml
|
86
|
+
- CHANGELOG.rdoc
|
87
|
+
- README.rdoc
|
88
|
+
has_rdoc: true
|
89
|
+
homepage: http://premailer.dialect.ca/
|
90
|
+
licenses: []
|
91
|
+
|
92
|
+
post_install_message:
|
93
|
+
rdoc_options:
|
94
|
+
- --all
|
95
|
+
- --inline-source
|
96
|
+
- --line-numbers
|
97
|
+
- --charset
|
98
|
+
- utf-8
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
version: "0"
|
119
|
+
requirements: []
|
120
|
+
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 1.3.7
|
123
|
+
signing_key:
|
124
|
+
specification_version: 3
|
125
|
+
summary: Preflight for HTML e-mail.
|
126
|
+
test_files: []
|
127
|
+
|