mail_spy 0.0.5 → 0.0.6
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/README.rdoc +58 -2
- data/app/assets/javascripts/mail_spy/application.js +2 -0
- data/app/assets/javascripts/mail_spy/sendgrid.js +2 -0
- data/app/assets/stylesheets/mail_spy/application.css +0 -1
- data/app/assets/stylesheets/mail_spy/global.css.scss +0 -0
- data/app/assets/stylesheets/mail_spy/sendgrid.css +4 -0
- data/app/controllers/mail_spy/sendgrid_controller.rb +26 -0
- data/app/controllers/mail_spy/tracking_controller.rb +3 -10
- data/app/helpers/mail_spy/email_helper.rb +13 -4
- data/app/helpers/mail_spy/sendgrid_helper.rb +4 -0
- data/app/mailers/mail_spy/core_mailer.rb +6 -12
- data/app/models/mail_spy/email.rb +19 -4
- data/app/views/mail_spy/reports/campaigns.html.erb +48 -0
- data/config/routes.rb +6 -0
- data/lib/generators/mail_spy/templates/mail_spy.rb +5 -0
- data/lib/mail_spy/manager.rb +68 -16
- data/lib/mail_spy/sendgrid/smtp_api_header.rb +68 -0
- data/lib/mail_spy/version.rb +1 -1
- data/lib/mail_spy.rb +4 -1
- data/test/dummy/config/initializers/mail_spy.rb +4 -0
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/log/test.log +2204 -0
- data/test/functional/mail_spy/sendgrid_controller_test.rb +9 -0
- data/test/functional/mail_spy/tracking_controller_test.rb +2 -1
- data/test/unit/helpers/mail_spy/sendgrid_helper_test.rb +6 -0
- metadata +13 -2
@@ -4,6 +4,7 @@ module MailSpy
|
|
4
4
|
class TrackingControllerTest < ActionController::TestCase
|
5
5
|
|
6
6
|
def setup
|
7
|
+
MailSpy::Email.delete_all
|
7
8
|
create_emails(:campaign => "tests", :stream => "a-stream", :component => "a-helper_test")
|
8
9
|
@email = MailSpy::Email.first
|
9
10
|
end
|
@@ -66,7 +67,7 @@ module MailSpy
|
|
66
67
|
email = @email.reload
|
67
68
|
assert(email.actions.length == 1, "The email should only have on action at this point")
|
68
69
|
assert(email.actions.first.action_type == params[:action_type],"Action type should be conversion")
|
69
|
-
assert(email.actions.first.count == params[:count], "the action count should be
|
70
|
+
assert(email.actions.first.count == params[:count], "the action count should be 3")
|
70
71
|
|
71
72
|
end
|
72
73
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mail_spy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Timothy Cardenas
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-01
|
13
|
+
date: 2012-02-01 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -188,13 +188,18 @@ extra_rdoc_files: []
|
|
188
188
|
|
189
189
|
files:
|
190
190
|
- app/assets/javascripts/mail_spy/application.js
|
191
|
+
- app/assets/javascripts/mail_spy/sendgrid.js
|
191
192
|
- app/assets/javascripts/mail_spy/tracking.js
|
192
193
|
- app/assets/stylesheets/mail_spy/application.css
|
194
|
+
- app/assets/stylesheets/mail_spy/global.css.scss
|
195
|
+
- app/assets/stylesheets/mail_spy/sendgrid.css
|
193
196
|
- app/assets/stylesheets/mail_spy/tracking.css
|
194
197
|
- app/controllers/mail_spy/application_controller.rb
|
198
|
+
- app/controllers/mail_spy/sendgrid_controller.rb
|
195
199
|
- app/controllers/mail_spy/tracking_controller.rb
|
196
200
|
- app/helpers/mail_spy/application_helper.rb
|
197
201
|
- app/helpers/mail_spy/email_helper.rb
|
202
|
+
- app/helpers/mail_spy/sendgrid_helper.rb
|
198
203
|
- app/mailers/mail_spy/core_mailer.rb
|
199
204
|
- app/models/mail_spy/action.rb
|
200
205
|
- app/models/mail_spy/campaign_report.rb
|
@@ -202,11 +207,13 @@ files:
|
|
202
207
|
- app/models/mail_spy/email.rb
|
203
208
|
- app/models/mail_spy/stream_report.rb
|
204
209
|
- app/views/layouts/mail_spy/application.html.erb
|
210
|
+
- app/views/mail_spy/reports/campaigns.html.erb
|
205
211
|
- config/routes.rb
|
206
212
|
- lib/generators/mail_spy/initializer_generator.rb
|
207
213
|
- lib/generators/mail_spy/templates/mail_spy.rb
|
208
214
|
- lib/mail_spy/engine.rb
|
209
215
|
- lib/mail_spy/manager.rb
|
216
|
+
- lib/mail_spy/sendgrid/smtp_api_header.rb
|
210
217
|
- lib/mail_spy/version.rb
|
211
218
|
- lib/mail_spy.rb
|
212
219
|
- lib/tasks/mail_spy_tasks.rake
|
@@ -257,12 +264,14 @@ files:
|
|
257
264
|
- test/fixtures/mail_spy/emails.yml
|
258
265
|
- test/fixtures/mail_spy/stream_reports.yml
|
259
266
|
- test/functional/mail_spy/core_mailer_test.rb
|
267
|
+
- test/functional/mail_spy/sendgrid_controller_test.rb
|
260
268
|
- test/functional/mail_spy/tracking_controller_test.rb
|
261
269
|
- test/integration/navigation_test.rb
|
262
270
|
- test/mail_spy_test.rb
|
263
271
|
- test/test_email_credentials.yml
|
264
272
|
- test/test_email_credentials.yml.sample
|
265
273
|
- test/test_helper.rb
|
274
|
+
- test/unit/helpers/mail_spy/sendgrid_helper_test.rb
|
266
275
|
- test/unit/helpers/mail_spy/tracking_helper_test.rb
|
267
276
|
- test/unit/mail_spy/action_test.rb
|
268
277
|
- test/unit/mail_spy/campaign_report_test.rb
|
@@ -342,12 +351,14 @@ test_files:
|
|
342
351
|
- test/fixtures/mail_spy/emails.yml
|
343
352
|
- test/fixtures/mail_spy/stream_reports.yml
|
344
353
|
- test/functional/mail_spy/core_mailer_test.rb
|
354
|
+
- test/functional/mail_spy/sendgrid_controller_test.rb
|
345
355
|
- test/functional/mail_spy/tracking_controller_test.rb
|
346
356
|
- test/integration/navigation_test.rb
|
347
357
|
- test/mail_spy_test.rb
|
348
358
|
- test/test_email_credentials.yml
|
349
359
|
- test/test_email_credentials.yml.sample
|
350
360
|
- test/test_helper.rb
|
361
|
+
- test/unit/helpers/mail_spy/sendgrid_helper_test.rb
|
351
362
|
- test/unit/helpers/mail_spy/tracking_helper_test.rb
|
352
363
|
- test/unit/mail_spy/action_test.rb
|
353
364
|
- test/unit/mail_spy/campaign_report_test.rb
|