test/dummy/log/development.log in mail_spy-0.0.16 vs test/dummy/log/development.log in mail_spy-0.0.17
- old
+ new
@@ -266,5 +266,729 @@
Started GET "/mail/test?url=www.google.com" for 127.0.0.1 at 2012-02-02 08:32:59 -0800
Processing by MailSpy::TrackingController#test as HTML
Parameters: {"url"=>"www.google.com"}
Redirected to http://localhost:3000www.google.com?id=1&wee=3
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2182636240 @data=" function(){
+ var key_hash = {
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject,
+ };
+
+ var open_count = 0;
+ this.actions.forEach(function(action){
+ if(action.action_type == 'open') open_count++;
+ }
+
+ emit(key_hash, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2182636100 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2182452400 @data=" function(){
+ var key_hash = {
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject,
+ };
+
+ var open_count = 0;
+ this.actions.forEach(function(action){
+ if(action.action_type == 'open') open_count++;
+ }
+
+ emit(key_hash, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2182452100 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161508900 @data=" function(){
+ var key_hash = {
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ };
+
+ var open_count = 0;
+ this.actions.forEach(function(action){
+ if(action.action_type == 'open') open_count++;
+ }
+
+ emit(key_hash, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2161508860 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161474740 @data=" function(){
+ var key_hash = {
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ };
+
+ var open_count = 0;
+ this.actions.forEach(function(action){
+ if(action.action_type == 'open') open_count++;
+ }
+
+ emit(key_hash, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2161474700 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161577680 @data=" function(){
+
+
+ emit(key_hash, {open_count: 1});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2161578320 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2181332900 @data=" function(){
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: 1});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2181332400 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161110340 @data=" function(){
+ var open_count = 0;
+ this.actions.forEach(function(action){
+ if(action.action_type == 'open') open_count += 1;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2161110280 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2184079920 @data=" function(){
+ var open_count = 0;
+ this.actions.forEach(function(action){
+ if(action.action_type == 'open') open_count += 1;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2184079860 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2179705960 @data=" function(){
+ var open_count = 0, actions = this.actions;
+ for(var i=0, len = actions.length; i < len; i++){
+ if(actions[i].action_type == 'open') open_count += 1;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2179705920 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"campaign_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2160684220 @data=" function(){
+ var open_count = 0, actions = this.actions;
+ for(var i=0, len = actions.length; i < len; i++){
+ if(actions[i].action_type == 'open') open_count += 1;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2160684060 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2176891160 @data=" function(){
+ var open_count = 0, actions = this.actions;
+ for(var i=0, len = actions.length; i < len; i++){
+ if(actions[i].action_type == 'open') open_count += 1;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2176890660 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2162651620 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2162651580 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2194199700 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+
+ emit({
+ campaign:this.campaign
+ }, {open_count: 1});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2194199640 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2171136020 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+ print(this.campaign)
+
+ emit({
+ campaign:this.campaign
+ }, {open_count: 1});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2171135920 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['$cmd'].find({"count"=>"mail_spy_emails", "query"=>{}, "fields"=>nil}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+ [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
+ [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2152987740 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+ print(this.campaign)
+
+ emit({
+ campaign:this.campaign
+ }, {open_count: 1});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2152987700 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['$cmd'].find({"count"=>"mail_spy_emails", "query"=>{}, "fields"=>nil}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+MONGODB dummy_development['system.namespaces'].find({})
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+MONGODB dummy_development['$cmd'].find({"count"=>"mail_spy_emails", "query"=>{}, "fields"=>nil}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2193649520 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+ print(this.campaign)
+
+ emit({
+ campaign:this.campaign
+ }, {open_count: 1});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2193649480 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2171143360 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ campaign:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2171143320 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :desc]])
+MONGODB dummy_development['mail_spy_emails'].find({}).limit(-1).sort([[:_id, :desc]])
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2161075580 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2161075540 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2177594240 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+ for(var i =0. len = actions.length; i < len; i++){
+ if(actions[i].action_type == "open") open_count++;
+ }
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2177594180 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.open_count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2169026940 @data=" function(){
+ var open_count = 0, actions = this.actions;
+
+ for(var i=0, len = actions.length; i < len; i++){
+ if(actions[i].action_type == "open") open_count++;
+ }
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, {open_count: open_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2169022220 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.open_count += value.open_count;
+ });
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2164380100 @data=" function(){
+ var open_count = 0, click_count = 0, actions = this.actions;
+
+ for(var i=0, len = actions.length; i < len; i++){
+ if(actions[i].action_type == "open") open_count++;
+ if(actions[i].action_type == "click") click_count++;
+ }
+
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, {open_count: open_count, click_count:click_count});
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2168647320 @data=" function(key, values){
+ var result = { open_count : 0 };
+
+ values.forEach(function(value){
+ result.open_count += value.open_count;
+ result.click_count += value.click_count;
+ });
+
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2176899080 @data=" function(){
+ var open_count = 0, click_count = 0, actions = ;
+
+ var action_counts = {};
+ for(var i=0, len = this.actions.length; i < len; i++){
+ var action = this.actions[i];
+ action_counts[action.action_type] = hash[action.action_type] || 0;
+ action_counts[action.action_type]++;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, action_counts);
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2176898520 @data=" function(key, values){
+ var result = {};
+
+ values.forEach(function(hash){
+ for(var key in hash){
+ result[key] = result[key] || 0
+ result[key] += hash[key]
+ }
+ });
+
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2162887200 @data=" function(){
+ var action_counts = {};
+ for(var i=0, len = this.actions.length; i < len; i++){
+ var action = this.actions[i];
+ action_counts[action.action_type] = v[action.action_type] || 0;
+ action_counts[action.action_type]++;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, action_counts);
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2162887160 @data=" function(key, values){
+ var result = {};
+
+ values.forEach(function(hash){
+ for(var key in hash){
+ result[key] = result[key] || 0
+ result[key] += hash[key]
+ }
+ });
+
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2194011960 @data=" function(){
+ var action_counts = {};
+ for(var i=0, len = this.actions.length; i < len; i++){
+ var action = this.actions[i];
+ action_counts[action.action_type] = action_counts[action.action_type] || 0;
+ action_counts[action.action_type]++;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, action_counts);
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2194011900 @data=" function(key, values){
+ var result = {};
+
+ values.forEach(function(hash){
+ for(var key in hash){
+ result[key] = result[key] || 0
+ result[key] += hash[key]
+ }
+ });
+
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({"mapreduce"=>"mail_spy_emails", "map"=><BSON::Code:2171721540 @data=" function(){
+ var action_counts = {};
+ for(var i=0, len = this.actions.length; i < len; i++){
+ var action = this.actions[i];
+ action_counts[action.action_type] = action_counts[action.action_type] || 0;
+ action_counts[action.action_type]++;
+ }
+
+ emit({
+ campaign:this.campaign,
+ stream:this.stream,
+ component:this.component,
+ subject:this.subject
+ }, action_counts);
+ }
+" @scope="{}">, "reduce"=><BSON::Code:2171721500 @data=" function(key, values){
+ var result = {};
+
+ values.forEach(function(hash){
+ for(var key in hash){
+ result[key] = result[key] || 0
+ result[key] += hash[key]
+ }
+ });
+
+ return result;
+ }
+" @scope="{}">, :out=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"mail_spy_emails"}).limit(-1)
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:drop=>"test_reports"}).limit(-1)
+MONGODB [WARNING] Please note that logging negatively impacts client-side performance. You should set your logging level no lower than :info in production.
+MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1)
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+MONGODB dummy_development['system.namespaces'].find({})
+MONGODB dummy_development['$cmd'].find({:create=>"mail_spy_emails"}).limit(-1)
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])
+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"}]}])