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.
@@ -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
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency 'mail'
25
25
 
26
26
  s.add_dependency 'nokogiri'
27
- s.add_dependency 'facets'
28
27
  s.add_dependency 'css_parser'
29
28
  s.add_dependency 'maca-fork-csspool'
30
29
  end
@@ -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? m}
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
 
@@ -1,3 +1,3 @@
1
1
  class InlineStyle
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
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
- prerelease: false
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
- date: 2011-03-24 00:00:00 -06:00
19
- default_executable:
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
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
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
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- version: "0"
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
- requirement: &id003 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- version: "0"
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
- requirement: &id004 !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
- version: "0"
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
- requirement: &id005 !ruby/object:Gem::Requirement
77
- none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- version: "0"
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
- requirement: &id006 !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- segments:
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
- prerelease: false
102
- requirement: &id007 !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
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
- requirement: &id008 !ruby/object:Gem::Requirement
116
- none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- segments:
121
- - 0
122
- version: "0"
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
- version_requirements: *id008
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
- has_rdoc: true
166
- homepage: ""
147
+ homepage: ''
167
148
  licenses: []
168
-
169
- post_install_message: Please read documentation for changes on the default css parser gem, specifically if you use csspool
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
- none: false
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- segments:
180
- - 0
181
- version: "0"
182
- required_rubygems_version: !ruby/object:Gem::Requirement
183
- none: false
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: 1.3.7
167
+ rubygems_version: 2.0.0
194
168
  signing_key:
195
- specification_version: 3
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
@@ -1,4 +0,0 @@
1
- == 0.0.1 2009-10-16
2
-
3
- * 1 major enhancement:
4
- * Initial release
@@ -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