mail_spy 0.0.2 → 0.1.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.
- data/README.rdoc +86 -24
- data/app/assets/images/mail_spy/background_tile.gif +0 -0
- data/app/assets/images/mail_spy/mailspy_sprite.png +0 -0
- data/app/assets/images/mail_spy/spy.ico +0 -0
- data/app/assets/javascripts/mail_spy/lib/backbone.js +1256 -0
- data/app/assets/javascripts/mail_spy/lib/underscore.js +999 -0
- data/app/assets/javascripts/mail_spy/reports.js +2 -0
- data/app/assets/javascripts/mail_spy/sendgrid.js +2 -0
- data/app/assets/stylesheets/mail_spy/application.css +62 -1
- data/app/assets/stylesheets/mail_spy/reports.css.scss +128 -0
- data/app/assets/stylesheets/mail_spy/sendgrid.css +4 -0
- data/app/controllers/mail_spy/reports_controller.rb +29 -0
- data/app/controllers/mail_spy/sendgrid_controller.rb +26 -0
- data/app/controllers/mail_spy/tracking_controller.rb +19 -11
- data/app/helpers/mail_spy/email_helper.rb +21 -3
- data/app/helpers/mail_spy/reports_helper.rb +4 -0
- data/app/helpers/mail_spy/sendgrid_helper.rb +4 -0
- data/app/mailers/mail_spy/core_mailer.rb +15 -18
- data/app/models/mail_spy/email.rb +127 -19
- data/app/models/mail_spy/process_log.rb +25 -0
- data/app/views/layouts/mail_spy/application.html.erb +3 -0
- data/app/views/mail_spy/reports/campaigns.html.erb +138 -0
- data/config/routes.rb +6 -0
- data/lib/generators/mail_spy/templates/mail_spy.rb +25 -1
- data/lib/mail_spy/manager.rb +100 -54
- data/lib/mail_spy/sendgrid/smtp_api_header.rb +68 -0
- data/lib/mail_spy/version.rb +1 -1
- data/lib/mail_spy.rb +39 -5
- data/test/dummy/app/views/email_templates/helper_test.html.erb +15 -0
- data/test/dummy/app/views/email_templates/helper_test.text.erb +11 -0
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/dummy/config/environments/production.rb +5 -1
- data/test/dummy/config/environments/test.rb +4 -1
- data/test/dummy/config/initializers/mail_spy.rb +42 -0
- data/test/dummy/config/routes.rb +1 -2
- data/test/dummy/db/schema.rb +16 -0
- data/test/dummy/db/seeds.rb +16 -13
- data/test/dummy/lib/tasks/emails.rake +8 -0
- data/test/dummy/log/development.log +782 -0
- data/test/dummy/log/test.log +9952 -0
- data/test/fixtures/mail_spy/process_logs.yml +15 -0
- data/test/functional/mail_spy/core_mailer_test.rb +16 -9
- data/test/functional/mail_spy/reports_controller_test.rb +9 -0
- data/test/functional/mail_spy/sendgrid_controller_test.rb +9 -0
- data/test/functional/mail_spy/tracking_controller_test.rb +16 -11
- data/test/test_email_credentials.yml +2 -2
- data/test/test_email_credentials.yml.sample +0 -8
- data/test/test_helper.rb +15 -41
- data/test/unit/helpers/mail_spy/reports_helper_test.rb +6 -0
- data/test/unit/helpers/mail_spy/sendgrid_helper_test.rb +6 -0
- data/test/unit/mail_spy/manager_test.rb +101 -122
- data/test/unit/mail_spy/{email_template_test.rb → process_log_test.rb} +1 -1
- metadata +122 -34
- data/app/models/mail_spy/email_template.rb +0 -17
- data/test/fixtures/mail_spy/email_templates.yml +0 -9
- /data/lib/generators/mail_spy/{initialize_generator.rb → initializer_generator.rb} +0 -0
|
@@ -210,3 +210,785 @@ MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :de
|
|
|
210
210
|
MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :desc]])
|
|
211
211
|
MONGODB dummy_development['system.namespaces'].find({})
|
|
212
212
|
MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :desc]])
|
|
213
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
214
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
215
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
216
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
217
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
218
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
219
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
220
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
221
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
222
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
223
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
224
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
225
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
226
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
227
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
228
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
Started GET "/mail/test?url=www.google.com" for 127.0.0.1 at 2012-02-02 08:16:52 -0800
|
|
232
|
+
Processing by MailSpy::TrackingController#test as HTML
|
|
233
|
+
Parameters: {"url"=>"www.google.com"}
|
|
234
|
+
Redirected to http://localhost:3000www.google.com
|
|
235
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
Started GET "/mail/test?url=http://www.google.com" for 127.0.0.1 at 2012-02-02 08:17:18 -0800
|
|
239
|
+
Processing by MailSpy::TrackingController#test as HTML
|
|
240
|
+
Parameters: {"url"=>"http://www.google.com"}
|
|
241
|
+
Redirected to http://www.google.com
|
|
242
|
+
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
Started GET "/mail/test?url=http://www.google.com" for 127.0.0.1 at 2012-02-02 08:32:03 -0800
|
|
246
|
+
Processing by MailSpy::TrackingController#test as HTML
|
|
247
|
+
Parameters: {"url"=>"http://www.google.com"}
|
|
248
|
+
Redirected to http://www.google.com?id=1&wee=3
|
|
249
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
Started GET "/mail/test?url=http://www.google.com?dft=1" for 127.0.0.1 at 2012-02-02 08:32:33 -0800
|
|
253
|
+
Processing by MailSpy::TrackingController#test as HTML
|
|
254
|
+
Parameters: {"url"=>"http://www.google.com?dft=1"}
|
|
255
|
+
Redirected to http://www.google.com?dft=1&id=1&wee=3
|
|
256
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
Started GET "/mail/test?url=www.google.com" for 127.0.0.1 at 2012-02-02 08:32:59 -0800
|
|
260
|
+
Processing by MailSpy::TrackingController#test as HTML
|
|
261
|
+
Parameters: {"url"=>"www.google.com"}
|
|
262
|
+
Redirected to http://localhost:3000www.google.com?id=1&wee=3
|
|
263
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
Started GET "/mail/test?url=www.google.com" for 127.0.0.1 at 2012-02-02 08:32:59 -0800
|
|
267
|
+
Processing by MailSpy::TrackingController#test as HTML
|
|
268
|
+
Parameters: {"url"=>"www.google.com"}
|
|
269
|
+
Redirected to http://localhost:3000www.google.com?id=1&wee=3
|
|
270
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
|
271
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
272
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
273
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
274
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2182636240 @data=" function(){
|
|
275
|
+
var key_hash = {
|
|
276
|
+
campaign:this.campaign,
|
|
277
|
+
stream:this.stream,
|
|
278
|
+
component:this.component,
|
|
279
|
+
campaign:this.subject,
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
var open_count = 0;
|
|
283
|
+
this.actions.forEach(function(action){
|
|
284
|
+
if(action.action_type == 'open') open_count++;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
emit(key_hash, {open_count: open_count});
|
|
288
|
+
}
|
|
289
|
+
" @scope="{}">, "reduce"=><BSON::Code:2182636100 @data=" function(key, values){
|
|
290
|
+
var result = { open_count : 0 };
|
|
291
|
+
|
|
292
|
+
values.forEach(function(value){
|
|
293
|
+
result.count += value.open_count;
|
|
294
|
+
});
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
298
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2182452400 @data=" function(){
|
|
299
|
+
var key_hash = {
|
|
300
|
+
campaign:this.campaign,
|
|
301
|
+
stream:this.stream,
|
|
302
|
+
component:this.component,
|
|
303
|
+
campaign:this.subject,
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
var open_count = 0;
|
|
307
|
+
this.actions.forEach(function(action){
|
|
308
|
+
if(action.action_type == 'open') open_count++;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
emit(key_hash, {open_count: open_count});
|
|
312
|
+
}
|
|
313
|
+
" @scope="{}">, "reduce"=><BSON::Code:2182452100 @data=" function(key, values){
|
|
314
|
+
var result = { open_count : 0 };
|
|
315
|
+
|
|
316
|
+
values.forEach(function(value){
|
|
317
|
+
result.count += value.open_count;
|
|
318
|
+
});
|
|
319
|
+
return result;
|
|
320
|
+
}
|
|
321
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
322
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
323
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161508900 @data=" function(){
|
|
324
|
+
var key_hash = {
|
|
325
|
+
campaign:this.campaign,
|
|
326
|
+
stream:this.stream,
|
|
327
|
+
component:this.component,
|
|
328
|
+
campaign:this.subject
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
var open_count = 0;
|
|
332
|
+
this.actions.forEach(function(action){
|
|
333
|
+
if(action.action_type == 'open') open_count++;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
emit(key_hash, {open_count: open_count});
|
|
337
|
+
}
|
|
338
|
+
" @scope="{}">, "reduce"=><BSON::Code:2161508860 @data=" function(key, values){
|
|
339
|
+
var result = { open_count : 0 };
|
|
340
|
+
|
|
341
|
+
values.forEach(function(value){
|
|
342
|
+
result.count += value.open_count;
|
|
343
|
+
});
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
347
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161474740 @data=" function(){
|
|
348
|
+
var key_hash = {
|
|
349
|
+
campaign:this.campaign,
|
|
350
|
+
stream:this.stream,
|
|
351
|
+
component:this.component,
|
|
352
|
+
campaign:this.subject
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
var open_count = 0;
|
|
356
|
+
this.actions.forEach(function(action){
|
|
357
|
+
if(action.action_type == 'open') open_count++;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
emit(key_hash, {open_count: open_count});
|
|
361
|
+
}
|
|
362
|
+
" @scope="{}">, "reduce"=><BSON::Code:2161474700 @data=" function(key, values){
|
|
363
|
+
var result = { open_count : 0 };
|
|
364
|
+
|
|
365
|
+
values.forEach(function(value){
|
|
366
|
+
result.count += value.open_count;
|
|
367
|
+
});
|
|
368
|
+
return result;
|
|
369
|
+
}
|
|
370
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
371
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
372
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161577680 @data=" function(){
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
emit(key_hash, {open_count: 1});
|
|
376
|
+
}
|
|
377
|
+
" @scope="{}">, "reduce"=><BSON::Code:2161578320 @data=" function(key, values){
|
|
378
|
+
var result = { open_count : 0 };
|
|
379
|
+
|
|
380
|
+
values.forEach(function(value){
|
|
381
|
+
result.count += value.open_count;
|
|
382
|
+
});
|
|
383
|
+
return result;
|
|
384
|
+
}
|
|
385
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
386
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
387
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2181332900 @data=" function(){
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
emit({
|
|
391
|
+
campaign:this.campaign,
|
|
392
|
+
stream:this.stream,
|
|
393
|
+
component:this.component,
|
|
394
|
+
campaign:this.subject
|
|
395
|
+
}, {open_count: 1});
|
|
396
|
+
}
|
|
397
|
+
" @scope="{}">, "reduce"=><BSON::Code:2181332400 @data=" function(key, values){
|
|
398
|
+
var result = { open_count : 0 };
|
|
399
|
+
|
|
400
|
+
values.forEach(function(value){
|
|
401
|
+
result.count += value.open_count;
|
|
402
|
+
});
|
|
403
|
+
return result;
|
|
404
|
+
}
|
|
405
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
406
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
407
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161110340 @data=" function(){
|
|
408
|
+
var open_count = 0;
|
|
409
|
+
this.actions.forEach(function(action){
|
|
410
|
+
if(action.action_type == 'open') open_count += 1;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
emit({
|
|
414
|
+
campaign:this.campaign,
|
|
415
|
+
stream:this.stream,
|
|
416
|
+
component:this.component,
|
|
417
|
+
campaign:this.subject
|
|
418
|
+
}, {open_count: open_count});
|
|
419
|
+
}
|
|
420
|
+
" @scope="{}">, "reduce"=><BSON::Code:2161110280 @data=" function(key, values){
|
|
421
|
+
var result = { open_count : 0 };
|
|
422
|
+
|
|
423
|
+
values.forEach(function(value){
|
|
424
|
+
result.count += value.open_count;
|
|
425
|
+
});
|
|
426
|
+
return result;
|
|
427
|
+
}
|
|
428
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
429
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
430
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2184079920 @data=" function(){
|
|
431
|
+
var open_count = 0;
|
|
432
|
+
this.actions.forEach(function(action){
|
|
433
|
+
if(action.action_type == 'open') open_count += 1;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
emit({
|
|
437
|
+
campaign:this.campaign,
|
|
438
|
+
stream:this.stream,
|
|
439
|
+
component:this.component,
|
|
440
|
+
campaign:this.subject
|
|
441
|
+
}, {open_count: open_count});
|
|
442
|
+
}
|
|
443
|
+
" @scope="{}">, "reduce"=><BSON::Code:2184079860 @data=" function(key, values){
|
|
444
|
+
var result = { open_count : 0 };
|
|
445
|
+
|
|
446
|
+
values.forEach(function(value){
|
|
447
|
+
result.count += value.open_count;
|
|
448
|
+
});
|
|
449
|
+
return result;
|
|
450
|
+
}
|
|
451
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
452
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
453
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2179705960 @data=" function(){
|
|
454
|
+
var open_count = 0, actions = this.actions;
|
|
455
|
+
for(var i=0, len = actions.length; i < len; i++){
|
|
456
|
+
if(actions[i].action_type == 'open') open_count += 1;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
emit({
|
|
460
|
+
campaign:this.campaign,
|
|
461
|
+
stream:this.stream,
|
|
462
|
+
component:this.component,
|
|
463
|
+
campaign:this.subject
|
|
464
|
+
}, {open_count: open_count});
|
|
465
|
+
}
|
|
466
|
+
" @scope="{}">, "reduce"=><BSON::Code:2179705920 @data=" function(key, values){
|
|
467
|
+
var result = { open_count : 0 };
|
|
468
|
+
|
|
469
|
+
values.forEach(function(value){
|
|
470
|
+
result.count += value.open_count;
|
|
471
|
+
});
|
|
472
|
+
return result;
|
|
473
|
+
}
|
|
474
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
475
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
476
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
477
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
478
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
479
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
|
|
480
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
481
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"campaign_reports"}).limit(-1)
|
|
482
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
483
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
|
|
484
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
485
|
+
MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
|
|
486
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2160684220 @data=" function(){
|
|
487
|
+
var open_count = 0, actions = this.actions;
|
|
488
|
+
for(var i=0, len = actions.length; i < len; i++){
|
|
489
|
+
if(actions[i].action_type == 'open') open_count += 1;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
emit({
|
|
493
|
+
campaign:this.campaign,
|
|
494
|
+
stream:this.stream,
|
|
495
|
+
component:this.component,
|
|
496
|
+
campaign:this.subject
|
|
497
|
+
}, {open_count: open_count});
|
|
498
|
+
}
|
|
499
|
+
" @scope="{}">, "reduce"=><BSON::Code:2160684060 @data=" function(key, values){
|
|
500
|
+
var result = { open_count : 0 };
|
|
501
|
+
|
|
502
|
+
values.forEach(function(value){
|
|
503
|
+
result.count += value.open_count;
|
|
504
|
+
});
|
|
505
|
+
return result;
|
|
506
|
+
}
|
|
507
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
508
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
509
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
510
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
511
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
512
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
|
|
513
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
514
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
|
|
515
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
516
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
517
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
518
|
+
MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
|
|
519
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2176891160 @data=" function(){
|
|
520
|
+
var open_count = 0, actions = this.actions;
|
|
521
|
+
for(var i=0, len = actions.length; i < len; i++){
|
|
522
|
+
if(actions[i].action_type == 'open') open_count += 1;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
emit({
|
|
526
|
+
campaign:this.campaign,
|
|
527
|
+
stream:this.stream,
|
|
528
|
+
component:this.component,
|
|
529
|
+
campaign:this.subject
|
|
530
|
+
}, {open_count: open_count});
|
|
531
|
+
}
|
|
532
|
+
" @scope="{}">, "reduce"=><BSON::Code:2176890660 @data=" function(key, values){
|
|
533
|
+
var result = { open_count : 0 };
|
|
534
|
+
|
|
535
|
+
values.forEach(function(value){
|
|
536
|
+
result.count += value.open_count;
|
|
537
|
+
});
|
|
538
|
+
return result;
|
|
539
|
+
}
|
|
540
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
541
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
542
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2162651620 @data=" function(){
|
|
543
|
+
var open_count = 0, actions = this.actions;
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
emit({
|
|
547
|
+
campaign:this.campaign,
|
|
548
|
+
stream:this.stream,
|
|
549
|
+
component:this.component,
|
|
550
|
+
campaign:this.subject
|
|
551
|
+
}, {open_count: open_count});
|
|
552
|
+
}
|
|
553
|
+
" @scope="{}">, "reduce"=><BSON::Code:2162651580 @data=" function(key, values){
|
|
554
|
+
var result = { open_count : 0 };
|
|
555
|
+
|
|
556
|
+
values.forEach(function(value){
|
|
557
|
+
result.count += value.open_count;
|
|
558
|
+
});
|
|
559
|
+
return result;
|
|
560
|
+
}
|
|
561
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
562
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
563
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2194199700 @data=" function(){
|
|
564
|
+
var open_count = 0, actions = this.actions;
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
emit({
|
|
568
|
+
campaign:this.campaign
|
|
569
|
+
}, {open_count: 1});
|
|
570
|
+
}
|
|
571
|
+
" @scope="{}">, "reduce"=><BSON::Code:2194199640 @data=" function(key, values){
|
|
572
|
+
var result = { open_count : 0 };
|
|
573
|
+
|
|
574
|
+
values.forEach(function(value){
|
|
575
|
+
result.count += value.open_count;
|
|
576
|
+
});
|
|
577
|
+
return result;
|
|
578
|
+
}
|
|
579
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
580
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
581
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2171136020 @data=" function(){
|
|
582
|
+
var open_count = 0, actions = this.actions;
|
|
583
|
+
|
|
584
|
+
print(this.campaign)
|
|
585
|
+
|
|
586
|
+
emit({
|
|
587
|
+
campaign:this.campaign
|
|
588
|
+
}, {open_count: 1});
|
|
589
|
+
}
|
|
590
|
+
" @scope="{}">, "reduce"=><BSON::Code:2171135920 @data=" function(key, values){
|
|
591
|
+
var result = { open_count : 0 };
|
|
592
|
+
|
|
593
|
+
values.forEach(function(value){
|
|
594
|
+
result.count += value.open_count;
|
|
595
|
+
});
|
|
596
|
+
return result;
|
|
597
|
+
}
|
|
598
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
599
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mail_spy_emails", "query"=>{}, "fields"=>nil}).limit(-1)
|
|
600
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
601
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
602
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
|
603
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
|
604
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
|
605
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
606
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
607
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
608
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2152987740 @data=" function(){
|
|
609
|
+
var open_count = 0, actions = this.actions;
|
|
610
|
+
|
|
611
|
+
print(this.campaign)
|
|
612
|
+
|
|
613
|
+
emit({
|
|
614
|
+
campaign:this.campaign
|
|
615
|
+
}, {open_count: 1});
|
|
616
|
+
}
|
|
617
|
+
" @scope="{}">, "reduce"=><BSON::Code:2152987700 @data=" function(key, values){
|
|
618
|
+
var result = { open_count : 0 };
|
|
619
|
+
|
|
620
|
+
values.forEach(function(value){
|
|
621
|
+
result.count += value.open_count;
|
|
622
|
+
});
|
|
623
|
+
return result;
|
|
624
|
+
}
|
|
625
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
626
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mail_spy_emails", "query"=>{}, "fields"=>nil}).limit(-1)
|
|
627
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
628
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
629
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
630
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
631
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
632
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
633
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
634
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000001'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000002'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000003'), "action_type"=>"delivered"}]}])
|
|
635
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000004'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000005'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000006'), "action_type"=>"delivered"}]}])
|
|
636
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000007'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000008'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000009'), "action_type"=>"delivered"}]}])
|
|
637
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00000a'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00000b'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00000c'), "action_type"=>"delivered"}]}])
|
|
638
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00000d'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00000e'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00000f'), "action_type"=>"delivered"}]}])
|
|
639
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000010'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000011'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000012'), "action_type"=>"delivered"}]}])
|
|
640
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000013'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000014'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000015'), "action_type"=>"delivered"}]}])
|
|
641
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000016'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000017'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000018'), "action_type"=>"delivered"}]}])
|
|
642
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000019'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00001a'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00001b'), "action_type"=>"delivered"}]}])
|
|
643
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00001c'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00001d'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00001e'), "action_type"=>"delivered"}]}])
|
|
644
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f302fbf8161342dfd00001f'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 19:53:35 UTC, "created_at"=>2012-02-06 19:53:35 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000020'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f302fbf8161342dfd000021'), "action_type"=>"delivered"}]}])
|
|
645
|
+
MONGODB dummy_development['$cmd'].find({"count"=>"mail_spy_emails", "query"=>{}, "fields"=>nil}).limit(-1)
|
|
646
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
647
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2193649520 @data=" function(){
|
|
648
|
+
var open_count = 0, actions = this.actions;
|
|
649
|
+
|
|
650
|
+
print(this.campaign)
|
|
651
|
+
|
|
652
|
+
emit({
|
|
653
|
+
campaign:this.campaign
|
|
654
|
+
}, {open_count: 1});
|
|
655
|
+
}
|
|
656
|
+
" @scope="{}">, "reduce"=><BSON::Code:2193649480 @data=" function(key, values){
|
|
657
|
+
var result = { open_count : 0 };
|
|
658
|
+
|
|
659
|
+
values.forEach(function(value){
|
|
660
|
+
result.count += value.open_count;
|
|
661
|
+
});
|
|
662
|
+
return result;
|
|
663
|
+
}
|
|
664
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
665
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
666
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2171143360 @data=" function(){
|
|
667
|
+
var open_count = 0, actions = this.actions;
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
emit({
|
|
671
|
+
campaign:this.campaign,
|
|
672
|
+
stream:this.stream,
|
|
673
|
+
component:this.component,
|
|
674
|
+
campaign:this.subject
|
|
675
|
+
}, {open_count: open_count});
|
|
676
|
+
}
|
|
677
|
+
" @scope="{}">, "reduce"=><BSON::Code:2171143320 @data=" function(key, values){
|
|
678
|
+
var result = { open_count : 0 };
|
|
679
|
+
|
|
680
|
+
values.forEach(function(value){
|
|
681
|
+
result.count += value.open_count;
|
|
682
|
+
});
|
|
683
|
+
return result;
|
|
684
|
+
}
|
|
685
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
686
|
+
MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :desc]])
|
|
687
|
+
MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :desc]])
|
|
688
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
689
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161075580 @data=" function(){
|
|
690
|
+
var open_count = 0, actions = this.actions;
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
emit({
|
|
694
|
+
campaign:this.campaign,
|
|
695
|
+
stream:this.stream,
|
|
696
|
+
component:this.component,
|
|
697
|
+
subject:this.subject
|
|
698
|
+
}, {open_count: open_count});
|
|
699
|
+
}
|
|
700
|
+
" @scope="{}">, "reduce"=><BSON::Code:2161075540 @data=" function(key, values){
|
|
701
|
+
var result = { open_count : 0 };
|
|
702
|
+
|
|
703
|
+
values.forEach(function(value){
|
|
704
|
+
result.count += value.open_count;
|
|
705
|
+
});
|
|
706
|
+
return result;
|
|
707
|
+
}
|
|
708
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
709
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
710
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2177594240 @data=" function(){
|
|
711
|
+
var open_count = 0, actions = this.actions;
|
|
712
|
+
|
|
713
|
+
for(var i =0. len = actions.length; i < len; i++){
|
|
714
|
+
if(actions[i].action_type == "open") open_count++;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
emit({
|
|
719
|
+
campaign:this.campaign,
|
|
720
|
+
stream:this.stream,
|
|
721
|
+
component:this.component,
|
|
722
|
+
subject:this.subject
|
|
723
|
+
}, {open_count: open_count});
|
|
724
|
+
}
|
|
725
|
+
" @scope="{}">, "reduce"=><BSON::Code:2177594180 @data=" function(key, values){
|
|
726
|
+
var result = { open_count : 0 };
|
|
727
|
+
|
|
728
|
+
values.forEach(function(value){
|
|
729
|
+
result.open_count += value.open_count;
|
|
730
|
+
});
|
|
731
|
+
return result;
|
|
732
|
+
}
|
|
733
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
734
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
735
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2169026940 @data=" function(){
|
|
736
|
+
var open_count = 0, actions = this.actions;
|
|
737
|
+
|
|
738
|
+
for(var i=0, len = actions.length; i < len; i++){
|
|
739
|
+
if(actions[i].action_type == "open") open_count++;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
emit({
|
|
744
|
+
campaign:this.campaign,
|
|
745
|
+
stream:this.stream,
|
|
746
|
+
component:this.component,
|
|
747
|
+
subject:this.subject
|
|
748
|
+
}, {open_count: open_count});
|
|
749
|
+
}
|
|
750
|
+
" @scope="{}">, "reduce"=><BSON::Code:2169022220 @data=" function(key, values){
|
|
751
|
+
var result = { open_count : 0 };
|
|
752
|
+
|
|
753
|
+
values.forEach(function(value){
|
|
754
|
+
result.open_count += value.open_count;
|
|
755
|
+
});
|
|
756
|
+
return result;
|
|
757
|
+
}
|
|
758
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
759
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
760
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2164380100 @data=" function(){
|
|
761
|
+
var open_count = 0, click_count = 0, actions = this.actions;
|
|
762
|
+
|
|
763
|
+
for(var i=0, len = actions.length; i < len; i++){
|
|
764
|
+
if(actions[i].action_type == "open") open_count++;
|
|
765
|
+
if(actions[i].action_type == "click") click_count++;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
emit({
|
|
770
|
+
campaign:this.campaign,
|
|
771
|
+
stream:this.stream,
|
|
772
|
+
component:this.component,
|
|
773
|
+
subject:this.subject
|
|
774
|
+
}, {open_count: open_count, click_count:click_count});
|
|
775
|
+
}
|
|
776
|
+
" @scope="{}">, "reduce"=><BSON::Code:2168647320 @data=" function(key, values){
|
|
777
|
+
var result = { open_count : 0 };
|
|
778
|
+
|
|
779
|
+
values.forEach(function(value){
|
|
780
|
+
result.open_count += value.open_count;
|
|
781
|
+
result.click_count += value.click_count;
|
|
782
|
+
});
|
|
783
|
+
|
|
784
|
+
return result;
|
|
785
|
+
}
|
|
786
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
787
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
788
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2176899080 @data=" function(){
|
|
789
|
+
var open_count = 0, click_count = 0, actions = ;
|
|
790
|
+
|
|
791
|
+
var action_counts = {};
|
|
792
|
+
for(var i=0, len = this.actions.length; i < len; i++){
|
|
793
|
+
var action = this.actions[i];
|
|
794
|
+
action_counts[action.action_type] = hash[action.action_type] || 0;
|
|
795
|
+
action_counts[action.action_type]++;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
emit({
|
|
799
|
+
campaign:this.campaign,
|
|
800
|
+
stream:this.stream,
|
|
801
|
+
component:this.component,
|
|
802
|
+
subject:this.subject
|
|
803
|
+
}, action_counts);
|
|
804
|
+
}
|
|
805
|
+
" @scope="{}">, "reduce"=><BSON::Code:2176898520 @data=" function(key, values){
|
|
806
|
+
var result = {};
|
|
807
|
+
|
|
808
|
+
values.forEach(function(hash){
|
|
809
|
+
for(var key in hash){
|
|
810
|
+
result[key] = result[key] || 0
|
|
811
|
+
result[key] += hash[key]
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
|
|
815
|
+
return result;
|
|
816
|
+
}
|
|
817
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
818
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
819
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2162887200 @data=" function(){
|
|
820
|
+
var action_counts = {};
|
|
821
|
+
for(var i=0, len = this.actions.length; i < len; i++){
|
|
822
|
+
var action = this.actions[i];
|
|
823
|
+
action_counts[action.action_type] = v[action.action_type] || 0;
|
|
824
|
+
action_counts[action.action_type]++;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
emit({
|
|
828
|
+
campaign:this.campaign,
|
|
829
|
+
stream:this.stream,
|
|
830
|
+
component:this.component,
|
|
831
|
+
subject:this.subject
|
|
832
|
+
}, action_counts);
|
|
833
|
+
}
|
|
834
|
+
" @scope="{}">, "reduce"=><BSON::Code:2162887160 @data=" function(key, values){
|
|
835
|
+
var result = {};
|
|
836
|
+
|
|
837
|
+
values.forEach(function(hash){
|
|
838
|
+
for(var key in hash){
|
|
839
|
+
result[key] = result[key] || 0
|
|
840
|
+
result[key] += hash[key]
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
|
|
844
|
+
return result;
|
|
845
|
+
}
|
|
846
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
847
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
848
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2194011960 @data=" function(){
|
|
849
|
+
var action_counts = {};
|
|
850
|
+
for(var i=0, len = this.actions.length; i < len; i++){
|
|
851
|
+
var action = this.actions[i];
|
|
852
|
+
action_counts[action.action_type] = action_counts[action.action_type] || 0;
|
|
853
|
+
action_counts[action.action_type]++;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
emit({
|
|
857
|
+
campaign:this.campaign,
|
|
858
|
+
stream:this.stream,
|
|
859
|
+
component:this.component,
|
|
860
|
+
subject:this.subject
|
|
861
|
+
}, action_counts);
|
|
862
|
+
}
|
|
863
|
+
" @scope="{}">, "reduce"=><BSON::Code:2194011900 @data=" function(key, values){
|
|
864
|
+
var result = {};
|
|
865
|
+
|
|
866
|
+
values.forEach(function(hash){
|
|
867
|
+
for(var key in hash){
|
|
868
|
+
result[key] = result[key] || 0
|
|
869
|
+
result[key] += hash[key]
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
|
|
873
|
+
return result;
|
|
874
|
+
}
|
|
875
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
876
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
877
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
878
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
879
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
880
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
|
|
881
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
882
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
|
|
883
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
884
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
885
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
886
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
887
|
+
MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
|
|
888
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000001'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000002'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000003'), "action_type"=>"delivered"}]}])
|
|
889
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000004'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000005'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000006'), "action_type"=>"delivered"}]}])
|
|
890
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000007'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000008'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000009'), "action_type"=>"delivered"}]}])
|
|
891
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000000a'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000000b'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000000c'), "action_type"=>"delivered"}]}])
|
|
892
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000000d'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000000e'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000000f'), "action_type"=>"delivered"}]}])
|
|
893
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000010'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000011'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000012'), "action_type"=>"delivered"}]}])
|
|
894
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000013'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000014'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000015'), "action_type"=>"delivered"}]}])
|
|
895
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000016'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000017'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000018'), "action_type"=>"delivered"}]}])
|
|
896
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000019'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000001a'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000001b'), "action_type"=>"delivered"}]}])
|
|
897
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000001c'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000001d'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000001e'), "action_type"=>"delivered"}]}])
|
|
898
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000001f'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000020'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000021'), "action_type"=>"delivered"}]}])
|
|
899
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000022'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000023'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000024'), "action_type"=>"delivered"}]}])
|
|
900
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000025'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000026'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000027'), "action_type"=>"delivered"}]}])
|
|
901
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000028'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000029'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000002a'), "action_type"=>"delivered"}]}])
|
|
902
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000002b'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000002c'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000002d'), "action_type"=>"delivered"}]}])
|
|
903
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000002e'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000002f'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000030'), "action_type"=>"delivered"}]}])
|
|
904
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000031'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000032'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000033'), "action_type"=>"delivered"}]}])
|
|
905
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000034'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000035'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000036'), "action_type"=>"delivered"}]}])
|
|
906
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000037'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000038'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000039'), "action_type"=>"delivered"}]}])
|
|
907
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000003a'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000003b'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000003c'), "action_type"=>"delivered"}]}])
|
|
908
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000003d'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000003e'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000003f'), "action_type"=>"delivered"}]}])
|
|
909
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000040'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000041'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000042'), "action_type"=>"delivered"}]}])
|
|
910
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000043'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000044'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000045'), "action_type"=>"delivered"}]}])
|
|
911
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000046'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000047'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000048'), "action_type"=>"delivered"}]}])
|
|
912
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000049'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000004a'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000004b'), "action_type"=>"delivered"}]}])
|
|
913
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000004c'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000004d'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000004e'), "action_type"=>"delivered"}]}])
|
|
914
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000004f'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000050'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000051'), "action_type"=>"delivered"}]}])
|
|
915
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000052'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000053'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000054'), "action_type"=>"delivered"}]}])
|
|
916
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000055'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000056'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000057'), "action_type"=>"delivered"}]}])
|
|
917
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000058'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000059'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000005a'), "action_type"=>"delivered"}]}])
|
|
918
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000005b'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000005c'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000005d'), "action_type"=>"delivered"}]}])
|
|
919
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed000005e'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed000005f'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000060'), "action_type"=>"delivered"}]}])
|
|
920
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30398c8161342ed0000061'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-06 20:35:24 UTC, "created_at"=>2012-02-06 20:35:24 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000062'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30398c8161342ed0000063'), "action_type"=>"delivered"}]}])
|
|
921
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
922
|
+
MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2171721540 @data=" function(){
|
|
923
|
+
var action_counts = {};
|
|
924
|
+
for(var i=0, len = this.actions.length; i < len; i++){
|
|
925
|
+
var action = this.actions[i];
|
|
926
|
+
action_counts[action.action_type] = action_counts[action.action_type] || 0;
|
|
927
|
+
action_counts[action.action_type]++;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
emit({
|
|
931
|
+
campaign:this.campaign,
|
|
932
|
+
stream:this.stream,
|
|
933
|
+
component:this.component,
|
|
934
|
+
subject:this.subject
|
|
935
|
+
}, action_counts);
|
|
936
|
+
}
|
|
937
|
+
" @scope="{}">, "reduce"=><BSON::Code:2171721500 @data=" function(key, values){
|
|
938
|
+
var result = {};
|
|
939
|
+
|
|
940
|
+
values.forEach(function(hash){
|
|
941
|
+
for(var key in hash){
|
|
942
|
+
result[key] = result[key] || 0
|
|
943
|
+
result[key] += hash[key]
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
|
|
947
|
+
return result;
|
|
948
|
+
}
|
|
949
|
+
" @scope="{}">, :out=>"test_reports"}).limit(-1)
|
|
950
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
951
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
952
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
953
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
954
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
|
|
955
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
956
|
+
MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
|
|
957
|
+
MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
|
|
958
|
+
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
|
|
959
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
960
|
+
MONGODB dummy_development['system.namespaces'].find({})
|
|
961
|
+
MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
|
|
962
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd51ba12eb40e2000001'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:09 UTC, "created_at"=>2012-02-07 08:14:09 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd51ba12eb40e2000002'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd51ba12eb40e2000003'), "action_type"=>"delivered"}]}])
|
|
963
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd51ba12eb40e2000004'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd51ba12eb40e2000005'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd51ba12eb40e2000006'), "action_type"=>"delivered"}]}])
|
|
964
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000007'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream0", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000008'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000009'), "action_type"=>"delivered"}]}])
|
|
965
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200000a'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200000b'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200000c'), "action_type"=>"delivered"}]}])
|
|
966
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200000d'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200000e'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200000f'), "action_type"=>"delivered"}]}])
|
|
967
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000010'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream1", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000011'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000012'), "action_type"=>"delivered"}]}])
|
|
968
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000013'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000014'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000015'), "action_type"=>"delivered"}]}])
|
|
969
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000016'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000017'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000018'), "action_type"=>"delivered"}]}])
|
|
970
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000019'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream2", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200001a'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200001b'), "action_type"=>"delivered"}]}])
|
|
971
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200001c'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200001d'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200001e'), "action_type"=>"delivered"}]}])
|
|
972
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200001f'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000020'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000021'), "action_type"=>"delivered"}]}])
|
|
973
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000022'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream3", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000023'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000024'), "action_type"=>"delivered"}]}])
|
|
974
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000025'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000026'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000027'), "action_type"=>"delivered"}]}])
|
|
975
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000028'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000029'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200002a'), "action_type"=>"delivered"}]}])
|
|
976
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200002b'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream4", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200002c'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200002d'), "action_type"=>"delivered"}]}])
|
|
977
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200002e'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200002f'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000030'), "action_type"=>"delivered"}]}])
|
|
978
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000031'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000032'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000033'), "action_type"=>"delivered"}]}])
|
|
979
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000034'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream5", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000035'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000036'), "action_type"=>"delivered"}]}])
|
|
980
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000037'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000038'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000039'), "action_type"=>"delivered"}]}])
|
|
981
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200003a'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200003b'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200003c'), "action_type"=>"delivered"}]}])
|
|
982
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200003d'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream6", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200003e'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200003f'), "action_type"=>"delivered"}]}])
|
|
983
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000040'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000041'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000042'), "action_type"=>"delivered"}]}])
|
|
984
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000043'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000044'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000045'), "action_type"=>"delivered"}]}])
|
|
985
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000046'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream7", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000047'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000048'), "action_type"=>"delivered"}]}])
|
|
986
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000049'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200004a'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200004b'), "action_type"=>"delivered"}]}])
|
|
987
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200004c'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200004d'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200004e'), "action_type"=>"delivered"}]}])
|
|
988
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200004f'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream8", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000050'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000051'), "action_type"=>"delivered"}]}])
|
|
989
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000052'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000053'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000054'), "action_type"=>"delivered"}]}])
|
|
990
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000055'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000056'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000057'), "action_type"=>"delivered"}]}])
|
|
991
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000058'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign1", "stream"=>"testStream9", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000059'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200005a'), "action_type"=>"delivered"}]}])
|
|
992
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200005b'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200005c'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200005d'), "action_type"=>"delivered"}]}])
|
|
993
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200005e'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e200005f'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000060'), "action_type"=>"delivered"}]}])
|
|
994
|
+
MONGODB dummy_development['mail_spy_emails'].insert([{"headers"=>{}, "template_values"=>{}, "sent"=>false, "failed"=>false, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000061'), "email_address"=>"trcarden@gmail.com", "user_id"=>1, "campaign"=>"testCampaign0", "stream"=>"testStream10", "component"=>"a", "email_service_provider"=>"sendgrid", "updated_at"=>2012-02-07 08:14:10 UTC, "created_at"=>2012-02-07 08:14:10 UTC, "actions"=>[{"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000062'), "action_type"=>"open"}, {"count"=>1, "_id"=>BSON::ObjectId('4f30dd52ba12eb40e2000063'), "action_type"=>"delivered"}]}])
|