cartero 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +11 -0
- data/cartero.gemspec +24 -0
- data/lib/cartero.rb +5 -0
- data/lib/cartero/document.rb +52 -0
- data/lib/cartero/version.rb +3 -0
- data/test/fixtures/31_140311-premailer.html +200 -0
- data/test/fixtures/31_140311-text.txt +13 -0
- data/test/fixtures/31_140311.html +220 -0
- data/test/fixtures/premailer_2.html +200 -0
- data/test/lib/cartero/document_test.rb +58 -0
- data/test/lib/cartero/version_test.rb +7 -0
- data/test/test_helper.rb +6 -0
- metadata +113 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 40b697a16855c665371ffadc0fef5fff1a893e5f
|
|
4
|
+
data.tar.gz: d93bac7a1bf236a47fb36b29daffedc40f77a280
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: db2cab1ded1f0e4be5b7af69c7046fb5927833463febd9a160f74d5edad305ff06a83f54cab2e6db3f39814783d8434ce8c8c5256f8ae753a721683e92cdfabb
|
|
7
|
+
data.tar.gz: 947c1b63d91a374cd6e9f429988b13dec934572af5ef4ee3becedebbf55821b2ba8ae42cebef40d5a80a9ae71570d0c93855b1259237b671262d8ed95c845b24
|
data/.gitignore
ADDED
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cartero
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby-2.1.0
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2014 Adam Dawkins
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Cartero
|
|
2
|
+
|
|
3
|
+
TODO: Write a gem description
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to your application's Gemfile:
|
|
8
|
+
|
|
9
|
+
gem 'cartero'
|
|
10
|
+
|
|
11
|
+
And then execute:
|
|
12
|
+
|
|
13
|
+
$ bundle
|
|
14
|
+
|
|
15
|
+
Or install it yourself as:
|
|
16
|
+
|
|
17
|
+
$ gem install cartero
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
TODO: Write usage instructions here
|
|
22
|
+
|
|
23
|
+
## Contributing
|
|
24
|
+
|
|
25
|
+
1. Fork it ( http://github.com/<my-github-username>/cartero/fork )
|
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/cartero.gemspec
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'cartero/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "cartero"
|
|
8
|
+
spec.version = Cartero::VERSION
|
|
9
|
+
spec.authors = ["Adam Dawkins"]
|
|
10
|
+
spec.email = ["adamdawkins@gmail.com"]
|
|
11
|
+
spec.summary = %q{Prepare emails for sending}
|
|
12
|
+
spec.description = %q{Wraps premailer.dialect.ca}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
23
|
+
spec.add_development_dependency "turn"
|
|
24
|
+
end
|
data/lib/cartero.rb
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
require 'uri'
|
|
2
|
+
require 'open-uri'
|
|
3
|
+
require 'net/http'
|
|
4
|
+
require 'json'
|
|
5
|
+
|
|
6
|
+
module Cartero
|
|
7
|
+
class Document
|
|
8
|
+
@@premailer_uri = URI.parse('http://premailer.dialect.ca/api/0.1/documents')
|
|
9
|
+
attr_accessor :original_html, :original_path, :processed
|
|
10
|
+
|
|
11
|
+
def initialize path
|
|
12
|
+
@original_html = File.read path
|
|
13
|
+
@original_path = path
|
|
14
|
+
@processed = {}
|
|
15
|
+
# premailer
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def premailer
|
|
19
|
+
response = Net::HTTP.post_form(
|
|
20
|
+
@@premailer_uri,
|
|
21
|
+
{html: @original_html}
|
|
22
|
+
)
|
|
23
|
+
documents = JSON.parse(response.body)['documents']
|
|
24
|
+
premailer_html_url = documents['html']
|
|
25
|
+
premailer_text_url = documents['txt']
|
|
26
|
+
|
|
27
|
+
@processed[:html] = open(premailer_html_url).read
|
|
28
|
+
@processed[:text] = open(premailer_text_url).read
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def save_processed_html path
|
|
32
|
+
if @processed[:html] == nil
|
|
33
|
+
premailer
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
File.open(File.expand_path(path), 'wb') do |f|
|
|
37
|
+
f.write @processed[:html]
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def save_processed_text path
|
|
42
|
+
if @processed[:text] == nil
|
|
43
|
+
premailer
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
File.open(File.expand_path(path), 'wb') do |f|
|
|
47
|
+
f.write @processed[:text]
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
5
|
+
<title>The Mid Season SALE continues</title>
|
|
6
|
+
<style type="text/css" media="screen">
|
|
7
|
+
|
|
8
|
+
td.super-preview p {
|
|
9
|
+
color: #999999 !important;
|
|
10
|
+
font-family: Arial, sans-serif;
|
|
11
|
+
text-transform: uppercase;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
td.super-preview a {
|
|
17
|
+
display: block;
|
|
18
|
+
color: #999999 !important;
|
|
19
|
+
font-family: Arial, sans-serif;
|
|
20
|
+
text-align: center;
|
|
21
|
+
font-size: 10px;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
td.footer-links a, td.footer-links p {
|
|
26
|
+
font-size: 10px;
|
|
27
|
+
color: #999999 !important;
|
|
28
|
+
font-family: Arial, sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
img {
|
|
32
|
+
border: none;
|
|
33
|
+
display: block;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding:0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
</style>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<table width="100%" cellspacing="0" cellpadding="0"><tr>
|
|
42
|
+
<td width="613" align="center" valign="top">
|
|
43
|
+
<table class="main" width="613" cellspacing="0" cellpadding="0" border="0">
|
|
44
|
+
<tr>
|
|
45
|
+
<td class="super-preview" style="padding-top: 20px;">
|
|
46
|
+
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
|
|
47
|
+
<td align="left" valign="middle">
|
|
48
|
+
<p style="color: #999999 !important; font-family: Arial, sans-serif; text-transform: uppercase; text-align: center; font-size: 10px;" align="center">The mid season sale continues</p>
|
|
49
|
+
</td>
|
|
50
|
+
</tr></table>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td align="center" class="super-preview">
|
|
55
|
+
<a href="http://www.elabs12.com/functions/message_view.html?mid=%%MLM_MID%%&mlid=%%MLM_MLID%%&siteid=%%MLM_SITEID%%&uid=%%MLM_UNIQUEID%%" target="_blank" style="display: block; color: #999999 !important; font-family: Arial, sans-serif; text-align: center; font-size: 10px; text-decoration: none;">Having problems viewing this email? Click here</a>
|
|
56
|
+
</td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<td height="60" width="613" align="center" valign="middle">
|
|
60
|
+
<a href="http://www.mintvelvet.co.uk/" target="_blank">
|
|
61
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/31-131128/mint-velvet.jpg" alt="Mint Velvet" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td width="613" align="center" valign="top">
|
|
66
|
+
<table width="613" cellspacing="0" cellpadding="0" border="0"><tr>
|
|
67
|
+
<td width="200">
|
|
68
|
+
|
|
69
|
+
</td>
|
|
70
|
+
<td width="56" height="13">
|
|
71
|
+
<a href="http://www.mintvelvet.co.uk/NEW_IN/dept/fcp-category/list?resetFilters=true">
|
|
72
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/new-in.jpg" alt="new in" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
73
|
+
</td>
|
|
74
|
+
<td width="70" height="13" align="center">
|
|
75
|
+
<a href="http://www.mintvelvet.co.uk/tops/dept/fcp-category/list?resetFilters=true">
|
|
76
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/shop.jpg" alt="shop" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
77
|
+
</td>
|
|
78
|
+
<td width="60" height="13">
|
|
79
|
+
<a href="http://www.mintvelvet.co.uk/pws/StoreFinder.ice?country=GB&countryRegion=&findStore=findStore&page=stores&link=navstores">
|
|
80
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/stores.jpg" alt="stores" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
81
|
+
</td>
|
|
82
|
+
<td width="214">
|
|
83
|
+
|
|
84
|
+
</td>
|
|
85
|
+
</tr></table>
|
|
86
|
+
</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<td height="50">
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td width="613" height="331" valign="_top">
|
|
94
|
+
<a href="http://www.mintvelvet.co.uk/SALE/dept/fcp-category/list?resetFilters=true" target="_blank=">
|
|
95
|
+
<img src="http://www.elabs12.com/content/2012000705/50-140407_sale.jpg" alt="The mid season sale is now on" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
96
|
+
</td>
|
|
97
|
+
</tr>
|
|
98
|
+
<tr>
|
|
99
|
+
<td height="40">
|
|
100
|
+
</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td class="footer">
|
|
104
|
+
<table width="613" align="center" cellspacing="0" cellpadding="0">
|
|
105
|
+
<tr>
|
|
106
|
+
<td colspan="19" width="613" height="17">
|
|
107
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/31-131128/footer-border.jpg" width="613" alt="border" style="display: block; margin: 0; padding: 0; border: none;">
|
|
108
|
+
</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<td height="48" valign="top" align="left" width="48">
|
|
112
|
+
<p> </p>
|
|
113
|
+
</td>
|
|
114
|
+
<td height="48" valign="top" align="left" width="60">
|
|
115
|
+
<a href="http://www.mintvelvet.co.uk/pws/StoreFinder.ice?country=GB&countryRegion=&findStore=findStore&page=stores" target="_blank">
|
|
116
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c3.jpg" alt="stores" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
117
|
+
</td>
|
|
118
|
+
<td height="48" valign="top" align="left" width="23">
|
|
119
|
+
<p> </p>
|
|
120
|
+
</td>
|
|
121
|
+
|
|
122
|
+
<td height="48" valign="top" align="left" width="30">
|
|
123
|
+
<a href="https://www.facebook.com/mint.velvet">
|
|
124
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c5.jpg" alt="facebook" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
125
|
+
</td>
|
|
126
|
+
<td height="48" valign="top" align="left" width="18">
|
|
127
|
+
<p> </p>
|
|
128
|
+
</td>
|
|
129
|
+
<td height="48" valign="top" align="left" width="30">
|
|
130
|
+
<a href="https://twitter.com/mintvelvet" target="_blank">
|
|
131
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c8.jpg" alt="twitter" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
132
|
+
</td>
|
|
133
|
+
<td height="48" valign="top" align="left" width="18">
|
|
134
|
+
<p> </p>
|
|
135
|
+
</td>
|
|
136
|
+
<td height="48" valign="top" align="left" width="30">
|
|
137
|
+
<a href="http://instagram.com/mintvelvet_official">
|
|
138
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c12.jpg" alt="Instagram" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
139
|
+
</td>
|
|
140
|
+
<td height="48" valign="top" align="left" width="18">
|
|
141
|
+
<p> </p>
|
|
142
|
+
</td>
|
|
143
|
+
<td height="48" valign="top" align="left" width="30">
|
|
144
|
+
<a href="http://www.pinterest.com/mintvelvet/">
|
|
145
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c14.jpg" alt="pinterest" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
146
|
+
</td>
|
|
147
|
+
<td height="48" valign="top" align="left" width="18">
|
|
148
|
+
<p> </p>
|
|
149
|
+
</td>
|
|
150
|
+
<td height="48" valign="top" align="left" width="30">
|
|
151
|
+
<a href="http://www.youtube.com/mintvelvettv">
|
|
152
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c18.jpg" alt="Youtube" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
153
|
+
</td>
|
|
154
|
+
<td height="48" valign="top" align="left" width="18">
|
|
155
|
+
<p> </p>
|
|
156
|
+
</td>
|
|
157
|
+
<td height="48" valign="top" align="left" width="30">
|
|
158
|
+
<a href="http://www.mintvelvet.co.uk/fi/magazine" target="_blank">
|
|
159
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c21.jpg" alt="magazine" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
160
|
+
</td>
|
|
161
|
+
<td height="48" valign="top" align="left" width="20">
|
|
162
|
+
<p> </p>
|
|
163
|
+
</td>
|
|
164
|
+
<td height="48" valign="top" align="left" width="30">
|
|
165
|
+
<a href="http://www.mintvelvet.co.uk/delivery-and-returns/content/fcp-content" target="_blank">
|
|
166
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c26.jpg" alt="delivery and returns" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
167
|
+
</td>
|
|
168
|
+
<td height="48" valign="top" align="left" width="20">
|
|
169
|
+
<p> </p>
|
|
170
|
+
</td>
|
|
171
|
+
<td height="48" valign="top" align="left" width="82">
|
|
172
|
+
<a href="http://www.mintvelvet.co.uk/contact-us/content/fcp-content" target="_blank">
|
|
173
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c29.jpg" alt="customer services" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
174
|
+
</td>
|
|
175
|
+
<td height="48" valign="top" align="left" width="60">
|
|
176
|
+
<p> </p>
|
|
177
|
+
</td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr>
|
|
180
|
+
<td colspan="19" width="613" valign="middle" height="80" align="center" class="footer-links">
|
|
181
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">
|
|
182
|
+
<a href="http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=preferences" style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">Update your subscription preferences</a>
|
|
183
|
+
</p>
|
|
184
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">
|
|
185
|
+
<a href="http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=subscription" style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">To unsubscribe to this email please click here</a>
|
|
186
|
+
</p>
|
|
187
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">
|
|
188
|
+
<a href="http://www.mintvelvet.co.uk/contact-us/content/fcp-content" style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">To contact customer services, please click here</a>
|
|
189
|
+
</p>
|
|
190
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">© 2014 Mint Velvet</p>
|
|
191
|
+
</td>
|
|
192
|
+
</tr>
|
|
193
|
+
</table>
|
|
194
|
+
</td>
|
|
195
|
+
</tr>
|
|
196
|
+
</table>
|
|
197
|
+
</td>
|
|
198
|
+
</tr></table>
|
|
199
|
+
</body>
|
|
200
|
+
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
The mid season sale continues
|
|
2
|
+
|
|
3
|
+
Having problems viewing this email? Click here ( http://www.elabs12.com/functions/message_view.html?mid=%%MLM_MID%%&mlid=%%MLM_MLID%%&siteid=%%MLM_SITEID%%&uid=%%MLM_UNIQUEID%% )
|
|
4
|
+
|
|
5
|
+
Update your subscription preferences ( http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=preferences )
|
|
6
|
+
|
|
7
|
+
To unsubscribe to this email please click
|
|
8
|
+
here ( http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=subscription )
|
|
9
|
+
|
|
10
|
+
To contact customer services, please
|
|
11
|
+
click here ( http://www.mintvelvet.co.uk/contact-us/content/fcp-content )
|
|
12
|
+
|
|
13
|
+
© 2014 Mint Velvet
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
4
|
+
|
|
5
|
+
<title>The Mid Season SALE continues</title>
|
|
6
|
+
<style type="text/css" media="screen">
|
|
7
|
+
|
|
8
|
+
td.super-preview p {
|
|
9
|
+
color: #999999 !important;
|
|
10
|
+
font-family: Arial, sans-serif;
|
|
11
|
+
text-transform: uppercase;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
td.super-preview a {
|
|
17
|
+
display: block;
|
|
18
|
+
color: #999999 !important;
|
|
19
|
+
font-family: Arial, sans-serif;
|
|
20
|
+
text-align: center;
|
|
21
|
+
font-size: 10px;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
td.footer-links a, td.footer-links p {
|
|
26
|
+
font-size: 10px;
|
|
27
|
+
color: #999999 !important;
|
|
28
|
+
font-family: Arial, sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
img {
|
|
32
|
+
border: none;
|
|
33
|
+
display: block;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding:0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
</style>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<table width="100%" cellspacing="0" cellpadding="0">
|
|
42
|
+
<tr>
|
|
43
|
+
<td width="613" align="center" valign="top">
|
|
44
|
+
<table class="main" width="613" cellspacing="0" cellpadding="0" border="0">
|
|
45
|
+
<tr>
|
|
46
|
+
<td class="super-preview" style="padding-top: 20px;">
|
|
47
|
+
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
48
|
+
<tr>
|
|
49
|
+
<td align="left" valign="middle">
|
|
50
|
+
<p>The mid season sale continues</p>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
</table>
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<td align="center" class="super-preview">
|
|
58
|
+
<a href="http://www.elabs12.com/functions/message_view.html?mid=%%MLM_MID%%&mlid=%%MLM_MLID%%&siteid=%%MLM_SITEID%%&uid=%%MLM_UNIQUEID%%" target="_blank">Having problems viewing this email? Click here</a>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td height="60" width="613" align="center" valign="middle">
|
|
63
|
+
<a href="http://www.mintvelvet.co.uk/" target="_blank">
|
|
64
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/31-131128/mint-velvet.jpg" alt="Mint Velvet"/>
|
|
65
|
+
</a>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<td width="613" align="center" valign="top">
|
|
70
|
+
<table width="613" cellspacing="0" cellpadding="0" border="0">
|
|
71
|
+
<tr>
|
|
72
|
+
<td width="200">
|
|
73
|
+
|
|
74
|
+
</td>
|
|
75
|
+
<td width="56" height="13">
|
|
76
|
+
<a href="http://www.mintvelvet.co.uk/NEW_IN/dept/fcp-category/list?resetFilters=true">
|
|
77
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/new-in.jpg" alt="new in"/>
|
|
78
|
+
</a>
|
|
79
|
+
</td>
|
|
80
|
+
<td width="70" height="13" align="center">
|
|
81
|
+
<a href="http://www.mintvelvet.co.uk/tops/dept/fcp-category/list?resetFilters=true">
|
|
82
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/shop.jpg" alt="shop"/>
|
|
83
|
+
</a>
|
|
84
|
+
</td>
|
|
85
|
+
<td width="60" height="13">
|
|
86
|
+
<a href="http://www.mintvelvet.co.uk/pws/StoreFinder.ice?country=GB&countryRegion=&findStore=findStore&page=stores&link=navstores">
|
|
87
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/stores.jpg" alt="stores"/>
|
|
88
|
+
</a>
|
|
89
|
+
</td>
|
|
90
|
+
<td width="214">
|
|
91
|
+
|
|
92
|
+
</td>
|
|
93
|
+
</tr>
|
|
94
|
+
</table>
|
|
95
|
+
</td>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<td height="50">
|
|
99
|
+
</td>
|
|
100
|
+
</tr>
|
|
101
|
+
<tr>
|
|
102
|
+
<td width="613" height="331" valign="_top">
|
|
103
|
+
<a href="http://www.mintvelvet.co.uk/SALE/dept/fcp-category/list?resetFilters=true" target="_blank=">
|
|
104
|
+
<img src="http://www.elabs12.com/content/2012000705/50-140407_sale.jpg" alt="The mid season sale is now on" />
|
|
105
|
+
</a>
|
|
106
|
+
</td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<td height="40">
|
|
110
|
+
</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<tr>
|
|
113
|
+
<td class="footer">
|
|
114
|
+
<table width="613" align="center" cellspacing="0" cellpadding="0">
|
|
115
|
+
<tr>
|
|
116
|
+
<td colspan="19" width="613" height="17">
|
|
117
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/31-131128/footer-border.jpg" width="613" alt="border"/>
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
<tr>
|
|
121
|
+
<td height="48" valign="top" align="left" width="48">
|
|
122
|
+
<p> </p>
|
|
123
|
+
</td>
|
|
124
|
+
<td height="48" valign="top" align="left" width="60">
|
|
125
|
+
<a href="http://www.mintvelvet.co.uk/pws/StoreFinder.ice?country=GB&countryRegion=&findStore=findStore&page=stores" target="_blank">
|
|
126
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c3.jpg" alt="stores"/>
|
|
127
|
+
</a>
|
|
128
|
+
</td>
|
|
129
|
+
<td height="48" valign="top" align="left" width="23">
|
|
130
|
+
<p> </p>
|
|
131
|
+
</td>
|
|
132
|
+
|
|
133
|
+
<td height="48" valign="top" align="left" width="30">
|
|
134
|
+
<a href="https://www.facebook.com/mint.velvet">
|
|
135
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c5.jpg" alt="facebook" />
|
|
136
|
+
</a>
|
|
137
|
+
</td>
|
|
138
|
+
<td height="48" valign="top" align="left" width="18">
|
|
139
|
+
<p> </p>
|
|
140
|
+
</td>
|
|
141
|
+
<td height="48" valign="top" align="left" width="30">
|
|
142
|
+
<a href="https://twitter.com/mintvelvet" target="_blank">
|
|
143
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c8.jpg" alt="twitter"/>
|
|
144
|
+
</a>
|
|
145
|
+
</td>
|
|
146
|
+
<td height="48" valign="top" align="left" width="18">
|
|
147
|
+
<p> </p>
|
|
148
|
+
</td>
|
|
149
|
+
<td height="48" valign="top" align="left" width="30">
|
|
150
|
+
<a href="http://instagram.com/mintvelvet_official">
|
|
151
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c12.jpg" alt="Instagram"/>
|
|
152
|
+
</a>
|
|
153
|
+
</td>
|
|
154
|
+
<td height="48" valign="top" align="left" width="18">
|
|
155
|
+
<p> </p>
|
|
156
|
+
</td>
|
|
157
|
+
<td height="48" valign="top" align="left" width="30">
|
|
158
|
+
<a href="http://www.pinterest.com/mintvelvet/">
|
|
159
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c14.jpg" alt="pinterest"/>
|
|
160
|
+
</a>
|
|
161
|
+
</td>
|
|
162
|
+
<td height="48" valign="top" align="left" width="18">
|
|
163
|
+
<p> </p>
|
|
164
|
+
</td>
|
|
165
|
+
<td height="48" valign="top" align="left" width="30">
|
|
166
|
+
<a href="http://www.youtube.com/mintvelvettv">
|
|
167
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c18.jpg" alt="Youtube" />
|
|
168
|
+
</a>
|
|
169
|
+
</td>
|
|
170
|
+
<td height="48" valign="top" align="left" width="18">
|
|
171
|
+
<p> </p>
|
|
172
|
+
</td>
|
|
173
|
+
<td height="48" valign="top" align="left" width="30">
|
|
174
|
+
<a href="http://www.mintvelvet.co.uk/fi/magazine" target="_blank">
|
|
175
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c21.jpg" alt="magazine"/>
|
|
176
|
+
</a>
|
|
177
|
+
</td>
|
|
178
|
+
<td height="48" valign="top" align="left" width="20">
|
|
179
|
+
<p> </p>
|
|
180
|
+
</td>
|
|
181
|
+
<td height="48" valign="top" align="left" width="30">
|
|
182
|
+
<a href="http://www.mintvelvet.co.uk/delivery-and-returns/content/fcp-content" target="_blank">
|
|
183
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c26.jpg" alt="delivery and returns"/>
|
|
184
|
+
</a>
|
|
185
|
+
</td>
|
|
186
|
+
<td height="48" valign="top" align="left" width="20">
|
|
187
|
+
<p> </p>
|
|
188
|
+
</td>
|
|
189
|
+
<td height="48" valign="top" align="left" width="82">
|
|
190
|
+
<a href="http://www.mintvelvet.co.uk/contact-us/content/fcp-content" target="_blank">
|
|
191
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c29.jpg" alt="customer services"/>
|
|
192
|
+
</a>
|
|
193
|
+
</td>
|
|
194
|
+
<td height="48" valign="top" align="left" width="60">
|
|
195
|
+
<p> </p>
|
|
196
|
+
</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td colspan="19" width="613" valign="middle" height="80" align="center" class="footer-links">
|
|
200
|
+
<p>
|
|
201
|
+
<a href="http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=preferences">Update your subscription preferences</a>
|
|
202
|
+
</p>
|
|
203
|
+
<p>
|
|
204
|
+
<a href="http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=subscription">To unsubscribe to this email please click here</a>
|
|
205
|
+
</p>
|
|
206
|
+
<p>
|
|
207
|
+
<a href="http://www.mintvelvet.co.uk/contact-us/content/fcp-content">To contact customer services, please click here</a>
|
|
208
|
+
</p>
|
|
209
|
+
<p>© 2014 Mint Velvet</p>
|
|
210
|
+
</td>
|
|
211
|
+
</tr>
|
|
212
|
+
</table>
|
|
213
|
+
</td>
|
|
214
|
+
</tr>
|
|
215
|
+
</table>
|
|
216
|
+
</td>
|
|
217
|
+
</tr>
|
|
218
|
+
</table>
|
|
219
|
+
</body>
|
|
220
|
+
</html>
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
5
|
+
<title>The Mid Season SALE continues</title>
|
|
6
|
+
<style type="text/css" media="screen">
|
|
7
|
+
|
|
8
|
+
td.super-preview p {
|
|
9
|
+
color: #999999 !important;
|
|
10
|
+
font-family: Arial, sans-serif;
|
|
11
|
+
text-transform: uppercase;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
td.super-preview a {
|
|
17
|
+
display: block;
|
|
18
|
+
color: #999999 !important;
|
|
19
|
+
font-family: Arial, sans-serif;
|
|
20
|
+
text-align: center;
|
|
21
|
+
font-size: 10px;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
td.footer-links a, td.footer-links p {
|
|
26
|
+
font-size: 10px;
|
|
27
|
+
color: #999999 !important;
|
|
28
|
+
font-family: Arial, sans-serif;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
img {
|
|
32
|
+
border: none;
|
|
33
|
+
display: block;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding:0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
</style>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
<table width="100%" cellspacing="0" cellpadding="0"><tr>
|
|
42
|
+
<td width="613" align="center" valign="top">
|
|
43
|
+
<table class="main" width="613" cellspacing="0" cellpadding="0" border="0">
|
|
44
|
+
<tr>
|
|
45
|
+
<td class="super-preview" style="padding-top: 20px;">
|
|
46
|
+
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
|
|
47
|
+
<td align="left" valign="middle">
|
|
48
|
+
<p style="color: #999999 !important; font-family: Arial, sans-serif; text-transform: uppercase; text-align: center; font-size: 10px;" align="center">The mid season sale continues</p>
|
|
49
|
+
</td>
|
|
50
|
+
</tr></table>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td align="center" class="super-preview">
|
|
55
|
+
<a href="http://www.elabs12.com/functions/message_view.html?mid=%%MLM_MID%%&mlid=%%MLM_MLID%%&siteid=%%MLM_SITEID%%&uid=%%MLM_UNIQUEID%%" target="_blank" style="display: block; color: #999999 !important; font-family: Arial, sans-serif; text-align: center; font-size: 10px; text-decoration: none;">Having problems viewing this email? Click here</a>
|
|
56
|
+
</td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<td height="60" width="613" align="center" valign="middle">
|
|
60
|
+
<a href="http://www.mintvelvet.co.uk/" target="_blank">
|
|
61
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/31-131128/mint-velvet.jpg" alt="Mint Velvet" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td width="613" align="center" valign="top">
|
|
66
|
+
<table width="613" cellspacing="0" cellpadding="0" border="0"><tr>
|
|
67
|
+
<td width="200">
|
|
68
|
+
|
|
69
|
+
</td>
|
|
70
|
+
<td width="56" height="13">
|
|
71
|
+
<a href="http://www.mintvelvet.co.uk/NEW_IN/dept/fcp-category/list?resetFilters=true">
|
|
72
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/new-in.jpg" alt="new in" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
73
|
+
</td>
|
|
74
|
+
<td width="70" height="13" align="center">
|
|
75
|
+
<a href="http://www.mintvelvet.co.uk/tops/dept/fcp-category/list?resetFilters=true">
|
|
76
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/shop.jpg" alt="shop" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
77
|
+
</td>
|
|
78
|
+
<td width="60" height="13">
|
|
79
|
+
<a href="http://www.mintvelvet.co.uk/pws/StoreFinder.ice?country=GB&countryRegion=&findStore=findStore&page=stores&link=navstores">
|
|
80
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/30-131121/large/stores.jpg" alt="stores" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
81
|
+
</td>
|
|
82
|
+
<td width="214">
|
|
83
|
+
|
|
84
|
+
</td>
|
|
85
|
+
</tr></table>
|
|
86
|
+
</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<td height="50">
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td width="613" height="331" valign="_top">
|
|
94
|
+
<a href="http://www.mintvelvet.co.uk/SALE/dept/fcp-category/list?resetFilters=true" target="_blank=">
|
|
95
|
+
<img src="http://www.elabs12.com/content/2012000705/50-140407_sale.jpg" alt="The mid season sale is now on" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
96
|
+
</td>
|
|
97
|
+
</tr>
|
|
98
|
+
<tr>
|
|
99
|
+
<td height="40">
|
|
100
|
+
</td>
|
|
101
|
+
</tr>
|
|
102
|
+
<tr>
|
|
103
|
+
<td class="footer">
|
|
104
|
+
<table width="613" align="center" cellspacing="0" cellpadding="0">
|
|
105
|
+
<tr>
|
|
106
|
+
<td colspan="19" width="613" height="17">
|
|
107
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/31-131128/footer-border.jpg" width="613" alt="border" style="display: block; margin: 0; padding: 0; border: none;">
|
|
108
|
+
</td>
|
|
109
|
+
</tr>
|
|
110
|
+
<tr>
|
|
111
|
+
<td height="48" valign="top" align="left" width="48">
|
|
112
|
+
<p> </p>
|
|
113
|
+
</td>
|
|
114
|
+
<td height="48" valign="top" align="left" width="60">
|
|
115
|
+
<a href="http://www.mintvelvet.co.uk/pws/StoreFinder.ice?country=GB&countryRegion=&findStore=findStore&page=stores" target="_blank">
|
|
116
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c3.jpg" alt="stores" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
117
|
+
</td>
|
|
118
|
+
<td height="48" valign="top" align="left" width="23">
|
|
119
|
+
<p> </p>
|
|
120
|
+
</td>
|
|
121
|
+
|
|
122
|
+
<td height="48" valign="top" align="left" width="30">
|
|
123
|
+
<a href="https://www.facebook.com/mint.velvet">
|
|
124
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c5.jpg" alt="facebook" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
125
|
+
</td>
|
|
126
|
+
<td height="48" valign="top" align="left" width="18">
|
|
127
|
+
<p> </p>
|
|
128
|
+
</td>
|
|
129
|
+
<td height="48" valign="top" align="left" width="30">
|
|
130
|
+
<a href="https://twitter.com/mintvelvet" target="_blank">
|
|
131
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c8.jpg" alt="twitter" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
132
|
+
</td>
|
|
133
|
+
<td height="48" valign="top" align="left" width="18">
|
|
134
|
+
<p> </p>
|
|
135
|
+
</td>
|
|
136
|
+
<td height="48" valign="top" align="left" width="30">
|
|
137
|
+
<a href="http://instagram.com/mintvelvet_official">
|
|
138
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c12.jpg" alt="Instagram" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
139
|
+
</td>
|
|
140
|
+
<td height="48" valign="top" align="left" width="18">
|
|
141
|
+
<p> </p>
|
|
142
|
+
</td>
|
|
143
|
+
<td height="48" valign="top" align="left" width="30">
|
|
144
|
+
<a href="http://www.pinterest.com/mintvelvet/">
|
|
145
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c14.jpg" alt="pinterest" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
146
|
+
</td>
|
|
147
|
+
<td height="48" valign="top" align="left" width="18">
|
|
148
|
+
<p> </p>
|
|
149
|
+
</td>
|
|
150
|
+
<td height="48" valign="top" align="left" width="30">
|
|
151
|
+
<a href="http://www.youtube.com/mintvelvettv">
|
|
152
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c18.jpg" alt="Youtube" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
153
|
+
</td>
|
|
154
|
+
<td height="48" valign="top" align="left" width="18">
|
|
155
|
+
<p> </p>
|
|
156
|
+
</td>
|
|
157
|
+
<td height="48" valign="top" align="left" width="30">
|
|
158
|
+
<a href="http://www.mintvelvet.co.uk/fi/magazine" target="_blank">
|
|
159
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c21.jpg" alt="magazine" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
160
|
+
</td>
|
|
161
|
+
<td height="48" valign="top" align="left" width="20">
|
|
162
|
+
<p> </p>
|
|
163
|
+
</td>
|
|
164
|
+
<td height="48" valign="top" align="left" width="30">
|
|
165
|
+
<a href="http://www.mintvelvet.co.uk/delivery-and-returns/content/fcp-content" target="_blank">
|
|
166
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c26.jpg" alt="delivery and returns" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
167
|
+
</td>
|
|
168
|
+
<td height="48" valign="top" align="left" width="20">
|
|
169
|
+
<p> </p>
|
|
170
|
+
</td>
|
|
171
|
+
<td height="48" valign="top" align="left" width="82">
|
|
172
|
+
<a href="http://www.mintvelvet.co.uk/contact-us/content/fcp-content" target="_blank">
|
|
173
|
+
<img src="http://www.mintvelvet.co.uk/pws/client/images/newsletters/1314/26-131023/nl_wk26_berry_rast_r25_c29.jpg" alt="customer services" style="display: block; margin: 0; padding: 0; border: none;"></a>
|
|
174
|
+
</td>
|
|
175
|
+
<td height="48" valign="top" align="left" width="60">
|
|
176
|
+
<p> </p>
|
|
177
|
+
</td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr>
|
|
180
|
+
<td colspan="19" width="613" valign="middle" height="80" align="center" class="footer-links">
|
|
181
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">
|
|
182
|
+
<a href="http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=preferences" style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">Update your subscription preferences</a>
|
|
183
|
+
</p>
|
|
184
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">
|
|
185
|
+
<a href="http://news.newsmintvelvet.co.uk/index.php?m=%%EMAIL_ADDRESS%%&h=%%MLM_UNIQUEID%%&a=subscription" style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">To unsubscribe to this email please click here</a>
|
|
186
|
+
</p>
|
|
187
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">
|
|
188
|
+
<a href="http://www.mintvelvet.co.uk/contact-us/content/fcp-content" style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">To contact customer services, please click here</a>
|
|
189
|
+
</p>
|
|
190
|
+
<p style="font-size: 10px; color: #999999 !important; font-family: Arial, sans-serif;">© 2014 Mint Velvet</p>
|
|
191
|
+
</td>
|
|
192
|
+
</tr>
|
|
193
|
+
</table>
|
|
194
|
+
</td>
|
|
195
|
+
</tr>
|
|
196
|
+
</table>
|
|
197
|
+
</td>
|
|
198
|
+
</tr></table>
|
|
199
|
+
</body>
|
|
200
|
+
</html>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
require_relative '../../test_helper'
|
|
2
|
+
|
|
3
|
+
describe Cartero::Document do
|
|
4
|
+
before do
|
|
5
|
+
@path = File.expand_path 'test/fixtures/31_140311.html'
|
|
6
|
+
@doc = Cartero::Document.new @path
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
describe 'initialize' do
|
|
10
|
+
describe 'with valid document path' do
|
|
11
|
+
it 'sets original_html to the document contents' do
|
|
12
|
+
@doc.original_html.must_equal File.read @path
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it 'sets original_path to the path' do
|
|
16
|
+
@doc.original_path.must_equal @path
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
describe '#premailer' do
|
|
22
|
+
before :all do
|
|
23
|
+
@doc.premailer
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
it 'sets processed[:html] to the premailer HTML' do
|
|
27
|
+
#@doc.processed[:html].must_equal File.read File.expand_path('test/fixtures/31_140311-premailer.html')
|
|
28
|
+
@doc.processed[:html].class.name.must_equal 'String'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
it 'sets processed[:text] to the premailer text version' do
|
|
32
|
+
#@doc.processed[:text].must_equal File.read File.expand_path('test/fixtures/31_140311-text.txt')
|
|
33
|
+
@doc.processed[:text].class.name.must_equal 'String'
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
describe '#save_processed_html' do
|
|
38
|
+
before :all do
|
|
39
|
+
@test_processed_path = 'test/output/new_premailer_test.html'
|
|
40
|
+
@doc.save_processed_html @test_processed_path
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
it 'creates a file with the path' do
|
|
44
|
+
File.open(File.expand_path(@test_processed_path)).must_be_kind_of File
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe '#save_processed_text' do
|
|
49
|
+
before :all do
|
|
50
|
+
@test_processed_path = 'test/output/new_premailer_test.txt'
|
|
51
|
+
@doc.save_processed_text @test_processed_path
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
it 'creates a file with the path' do
|
|
55
|
+
File.open(File.expand_path(@test_processed_path)).must_be_kind_of File
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cartero
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Adam Dawkins
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.5'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.5'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: turn
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
description: Wraps premailer.dialect.ca
|
|
56
|
+
email:
|
|
57
|
+
- adamdawkins@gmail.com
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- ".gitignore"
|
|
63
|
+
- ".ruby-gemset"
|
|
64
|
+
- ".ruby-version"
|
|
65
|
+
- Gemfile
|
|
66
|
+
- LICENSE.txt
|
|
67
|
+
- README.md
|
|
68
|
+
- Rakefile
|
|
69
|
+
- cartero.gemspec
|
|
70
|
+
- lib/cartero.rb
|
|
71
|
+
- lib/cartero/document.rb
|
|
72
|
+
- lib/cartero/version.rb
|
|
73
|
+
- test/fixtures/31_140311-premailer.html
|
|
74
|
+
- test/fixtures/31_140311-text.txt
|
|
75
|
+
- test/fixtures/31_140311.html
|
|
76
|
+
- test/fixtures/premailer_2.html
|
|
77
|
+
- test/lib/cartero/document_test.rb
|
|
78
|
+
- test/lib/cartero/version_test.rb
|
|
79
|
+
- test/output/new_premailer_test.html
|
|
80
|
+
- test/test_helper.rb
|
|
81
|
+
homepage: ''
|
|
82
|
+
licenses:
|
|
83
|
+
- MIT
|
|
84
|
+
metadata: {}
|
|
85
|
+
post_install_message:
|
|
86
|
+
rdoc_options: []
|
|
87
|
+
require_paths:
|
|
88
|
+
- lib
|
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
|
+
requirements:
|
|
91
|
+
- - ">="
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0'
|
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- - ">="
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '0'
|
|
99
|
+
requirements: []
|
|
100
|
+
rubyforge_project:
|
|
101
|
+
rubygems_version: 2.2.0
|
|
102
|
+
signing_key:
|
|
103
|
+
specification_version: 4
|
|
104
|
+
summary: Prepare emails for sending
|
|
105
|
+
test_files:
|
|
106
|
+
- test/fixtures/31_140311-premailer.html
|
|
107
|
+
- test/fixtures/31_140311-text.txt
|
|
108
|
+
- test/fixtures/31_140311.html
|
|
109
|
+
- test/fixtures/premailer_2.html
|
|
110
|
+
- test/lib/cartero/document_test.rb
|
|
111
|
+
- test/lib/cartero/version_test.rb
|
|
112
|
+
- test/output/new_premailer_test.html
|
|
113
|
+
- test/test_helper.rb
|