inline-style 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/inline-style.gemspec +0 -1
- data/lib/inline-style/mail-interceptor.rb +2 -1
- data/lib/inline-style/version.rb +1 -1
- metadata +122 -136
- data/History.txt +0 -4
- data/Manifest.txt +0 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1e2fc640b0925feba53d2f46c3cdefe60f95cf41
|
4
|
+
data.tar.gz: fae6dd6e39581e50dd5cef8157682c3ecdf15238
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fa055ab217e8d32017c0b2a0ea84381567495c450691b9bb1a28c7a82417f3fac50ef4ba5424ed4bede434a6030d8344bcd44ad6cb7ea6bd1bfdef36dd8e7e90
|
7
|
+
data.tar.gz: a1356e5c4bdc9c1903ee04642eeb3180f0bce9c98d017cb5cf48b59e18efdeeb143df536a04c6b5aac9c16ef80ae61bb6c4a3c101880876de2213d72e3f1ef00
|
data/inline-style.gemspec
CHANGED
@@ -27,8 +27,9 @@ module InlineStyle::Mail
|
|
27
27
|
for part in part.parts
|
28
28
|
delivering_email part
|
29
29
|
end
|
30
|
-
elsif INLINE_MIME_TYPES.any? {|m| part.content_type.starts_with?
|
30
|
+
elsif INLINE_MIME_TYPES.any? {|m| part.content_type && part.content_type.starts_with?(m)}
|
31
31
|
part.body = InlineStyle.process(part.body.to_s, @options)
|
32
|
+
part.content_transfer_encoding = nil
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
data/lib/inline-style/version.rb
CHANGED
metadata
CHANGED
@@ -1,143 +1,125 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline-style
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 5
|
8
|
-
- 0
|
9
|
-
version: 0.5.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.1
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Macario Ortega
|
13
8
|
- Eric Anderson
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-07-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rspec
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
32
21
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: rack
|
36
22
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rack
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
45
35
|
type: :development
|
46
|
-
version_requirements: *id002
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rspec-core
|
49
36
|
prerelease: false
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec-core
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
58
49
|
type: :development
|
59
|
-
version_requirements: *id003
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: mail
|
62
50
|
prerelease: false
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: mail
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
71
63
|
type: :development
|
72
|
-
version_requirements: *id004
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: nokogiri
|
75
64
|
prerelease: false
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: nokogiri
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
84
77
|
type: :runtime
|
85
|
-
version_requirements: *id005
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: facets
|
88
78
|
prerelease: false
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
- 0
|
96
|
-
version: "0"
|
97
|
-
type: :runtime
|
98
|
-
version_requirements: *id006
|
99
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
100
85
|
name: css_parser
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
segments:
|
108
|
-
- 0
|
109
|
-
version: "0"
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
110
91
|
type: :runtime
|
111
|
-
version_requirements: *id007
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: maca-fork-csspool
|
114
92
|
prerelease: false
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: maca-fork-csspool
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
123
105
|
type: :runtime
|
124
|
-
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
125
112
|
description: Inlines CSS for html email delivery
|
126
|
-
email:
|
113
|
+
email:
|
127
114
|
- macarui@gmail.com
|
128
115
|
executables: []
|
129
|
-
|
130
116
|
extensions: []
|
131
|
-
|
132
117
|
extra_rdoc_files: []
|
133
|
-
|
134
|
-
files:
|
118
|
+
files:
|
135
119
|
- .gitignore
|
136
120
|
- .rspec
|
137
121
|
- Gemfile
|
138
122
|
- Gemfile.lock
|
139
|
-
- History.txt
|
140
|
-
- Manifest.txt
|
141
123
|
- README.rdoc
|
142
124
|
- Rakefile
|
143
125
|
- example.rb
|
@@ -162,37 +144,41 @@ files:
|
|
162
144
|
- spec/interceptor_spec.rb
|
163
145
|
- spec/rack_middleware_spec.rb
|
164
146
|
- spec/spec_helper.rb
|
165
|
-
|
166
|
-
homepage: ""
|
147
|
+
homepage: ''
|
167
148
|
licenses: []
|
168
|
-
|
169
|
-
post_install_message: Please read documentation for changes on the default css parser
|
149
|
+
metadata: {}
|
150
|
+
post_install_message: Please read documentation for changes on the default css parser
|
151
|
+
gem, specifically if you use csspool
|
170
152
|
rdoc_options: []
|
171
|
-
|
172
|
-
require_paths:
|
153
|
+
require_paths:
|
173
154
|
- lib
|
174
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
segments:
|
188
|
-
- 0
|
189
|
-
version: "0"
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
190
165
|
requirements: []
|
191
|
-
|
192
166
|
rubyforge_project:
|
193
|
-
rubygems_version:
|
167
|
+
rubygems_version: 2.0.0
|
194
168
|
signing_key:
|
195
|
-
specification_version:
|
169
|
+
specification_version: 4
|
196
170
|
summary: Inlines CSS for html email delivery
|
197
|
-
test_files:
|
198
|
-
|
171
|
+
test_files:
|
172
|
+
- spec/css_inlining_spec.rb
|
173
|
+
- spec/css_parsing_spec.rb
|
174
|
+
- spec/fixtures/all.css
|
175
|
+
- spec/fixtures/boletin.html
|
176
|
+
- spec/fixtures/box-model.html
|
177
|
+
- spec/fixtures/inline.html
|
178
|
+
- spec/fixtures/none.css
|
179
|
+
- spec/fixtures/print.css
|
180
|
+
- spec/fixtures/selectors.html
|
181
|
+
- spec/fixtures/style.css
|
182
|
+
- spec/interceptor_spec.rb
|
183
|
+
- spec/rack_middleware_spec.rb
|
184
|
+
- spec/spec_helper.rb
|
data/History.txt
DELETED
data/Manifest.txt
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
README.txt
|
4
|
-
Rakefile
|
5
|
-
example.rb
|
6
|
-
inline-style.gemspec
|
7
|
-
lib/inline-style.rb
|
8
|
-
lib/inline-style/css_parsers.rb
|
9
|
-
lib/inline-style/css_parsers/css_parser.rb
|
10
|
-
lib/inline-style/css_parsers/csspool.rb
|
11
|
-
lib/inline-style/mail/interceptor.rb
|
12
|
-
lib/inline-style/rack/middleware.rb
|
13
|
-
spec/as_middleware_spec.rb
|
14
|
-
spec/css_inlining_spec.rb
|
15
|
-
spec/css_parsers_spec.rb
|
16
|
-
spec/factory_spec.rb
|
17
|
-
spec/fixtures/all.css
|
18
|
-
spec/fixtures/boletin.html
|
19
|
-
spec/fixtures/box-model.html
|
20
|
-
spec/fixtures/inline.html
|
21
|
-
spec/fixtures/none.css
|
22
|
-
spec/fixtures/print.css
|
23
|
-
spec/fixtures/selectors.html
|
24
|
-
spec/fixtures/style.css
|
25
|
-
spec/interceptor_spec.rb
|
26
|
-
spec/spec_helper.rb
|