user_notifier 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3745f08573552fb1d3a5e1dfec58bea283fa6a9
4
- data.tar.gz: 72ef4d09dd95fd6caef2a764378a8737bd249155
3
+ metadata.gz: cdd2ab094e02c99e723edbbe759fdb9e1f89e043
4
+ data.tar.gz: bdaf02d80f56b0a8bc36f2a3f8baf64d7739daed
5
5
  SHA512:
6
- metadata.gz: 5f7528293fd6e7ae9025d23c09e3c6cce2d1ef2e3a16d2597069fe9270ec0391f8e994b9c1abd7838e9dc0973eebb938c8a0b7e3375596420393d56305de572c
7
- data.tar.gz: a577eba18afa8d42122fff6ae13c63df282a0f4970cc5d084a2b97d8b45c01fcd55e33b35088ab55f171365a0b8fa0ab869fa9f80f206212948b109f62e069dc
6
+ metadata.gz: 2210ddc1d6217c723e64cbb9d0bd473eae06fe891b69148bf40ff2343082d1e9137dc1ba88c68cc6453c5855713c68eb2d906324e9015fd4fa35f28cb2df1b51
7
+ data.tar.gz: 8352e2a9266fb860f0e8196084f07a66210f35e15f095f5465aef015d182f911fdb8582b5ef3f842b8fbd38ef107f23c73766a8b58d890ace4be42e161b4f00d
@@ -7,7 +7,7 @@ class UserNotifier::EmailWorker
7
7
  # We don't want to raise exceptions in case our notification does not exist in the database
8
8
  if resource
9
9
  resource.update_attribute :sent_at, DateTime.now
10
- mailer.notify(resource).deliver
10
+ resource.deliver_without_worker
11
11
  else
12
12
  raise "Notification #{notification_id} not found.. sending to retry queue"
13
13
  end
@@ -18,7 +18,4 @@ class UserNotifier::EmailWorker
18
18
  @klass ||= Object.const_get(model_name)
19
19
  end
20
20
 
21
- def mailer
22
- UserNotifier::Mailer
23
- end
24
21
  end
@@ -26,6 +26,14 @@ class UserNotifier::Base < ActiveRecord::Base
26
26
  UserNotifier::EmailWorker.perform_async(self.class.name.to_s, self.id)
27
27
  end
28
28
 
29
+ def deliver_without_worker
30
+ mailer.notify(self).deliver
31
+ end
32
+
33
+ def mailer
34
+ UserNotifier::Mailer
35
+ end
36
+
29
37
  private
30
38
  def self.user_association_name
31
39
  UserNotifier.user_class_name.downcase.to_sym
@@ -1,3 +1,3 @@
1
1
  module UserNotifier
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -552,3 +552,249 @@ UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
552
552
 
553
553
  UserNotifier::Mailer#notify: processed outbound mail in 2.0ms
554
554
   (0.6ms) rollback transaction
555
+  (0.5ms) begin transaction
556
+  (0.1ms) rollback transaction
557
+  (0.1ms) begin transaction
558
+  (0.1ms) rollback transaction
559
+  (0.1ms) begin transaction
560
+  (0.0ms) rollback transaction
561
+  (0.0ms) begin transaction
562
+  (0.0ms) rollback transaction
563
+  (0.0ms) begin transaction
564
+  (0.0ms) rollback transaction
565
+  (0.0ms) begin transaction
566
+  (0.0ms) rollback transaction
567
+  (0.0ms) begin transaction
568
+  (0.0ms) rollback transaction
569
+  (0.0ms) begin transaction
570
+  (0.0ms) rollback transaction
571
+  (0.0ms) begin transaction
572
+  (0.0ms) rollback transaction
573
+  (0.0ms) begin transaction
574
+  (0.0ms) rollback transaction
575
+  (0.1ms) begin transaction
576
+  (0.0ms) rollback transaction
577
+  (0.1ms) begin transaction
578
+  (0.0ms) rollback transaction
579
+  (0.1ms) begin transaction
580
+  (0.0ms) SAVEPOINT active_record_1
581
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.758932"], ["updated_at", "2015-05-14 19:15:21.758932"]]
582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
583
+  (0.2ms) SAVEPOINT active_record_1
584
+ SQL (0.8ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.769224"], ["updated_at", "2015-05-14 19:15:21.769224"]]
585
+  (0.2ms) RELEASE SAVEPOINT active_record_1
586
+  (1.2ms) rollback transaction
587
+  (0.1ms) begin transaction
588
+  (0.1ms) SAVEPOINT active_record_1
589
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.780969"], ["updated_at", "2015-05-14 19:15:21.780969"]]
590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
591
+  (0.0ms) SAVEPOINT active_record_1
592
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.783173"], ["updated_at", "2015-05-14 19:15:21.783173"]]
593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
594
+  (0.1ms) SAVEPOINT active_record_1
595
+ SQL (0.1ms) INSERT INTO "order_notifications" ("template_name", "locale", "from_email", "from_name", "order_id", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["order_id", 1], ["user_id", 1]]
596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
597
+  (2.2ms) rollback transaction
598
+  (0.0ms) begin transaction
599
+  (0.0ms) SAVEPOINT active_record_1
600
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.817003"], ["updated_at", "2015-05-14 19:15:21.817003"]]
601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
602
+  (0.0ms) SAVEPOINT active_record_1
603
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.818416"], ["updated_at", "2015-05-14 19:15:21.818416"]]
604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
605
+  (0.0ms) SAVEPOINT active_record_1
606
+ SQL (0.1ms) INSERT INTO "order_notifications" ("template_name", "locale", "from_email", "from_name", "order_id", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["order_id", 1], ["user_id", 1]]
607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
608
+  (0.5ms) rollback transaction
609
+  (0.0ms) begin transaction
610
+  (0.0ms) SAVEPOINT active_record_1
611
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.822261"], ["updated_at", "2015-05-14 19:15:21.822261"]]
612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
613
+  (0.0ms) SAVEPOINT active_record_1
614
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.823632"], ["updated_at", "2015-05-14 19:15:21.823632"]]
615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
616
+  (0.0ms) SAVEPOINT active_record_1
617
+ SQL (0.1ms) INSERT INTO "order_notifications" ("template_name", "locale", "from_email", "from_name", "order_id", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["order_id", 1], ["user_id", 1]]
618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
619
+  (0.6ms) rollback transaction
620
+  (0.1ms) begin transaction
621
+  (0.0ms) SAVEPOINT active_record_1
622
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.829323"], ["updated_at", "2015-05-14 19:15:21.829323"]]
623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
624
+  (0.1ms) SAVEPOINT active_record_1
625
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.831296"], ["updated_at", "2015-05-14 19:15:21.831296"]]
626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
627
+  (0.1ms) SAVEPOINT active_record_1
628
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
630
+  (5.7ms) rollback transaction
631
+  (0.1ms) begin transaction
632
+  (0.1ms) SAVEPOINT active_record_1
633
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.846683"], ["updated_at", "2015-05-14 19:15:21.846683"]]
634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
635
+  (0.1ms) SAVEPOINT active_record_1
636
+ SQL (0.4ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.849351"], ["updated_at", "2015-05-14 19:15:21.849351"]]
637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
638
+  (0.1ms) SAVEPOINT active_record_1
639
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
640
+  (0.2ms) RELEASE SAVEPOINT active_record_1
641
+ UserNotification Load (0.1ms) SELECT "user_notifications".* FROM "user_notifications" ORDER BY "user_notifications"."id" DESC LIMIT 1
642
+  (1.0ms) rollback transaction
643
+  (0.1ms) begin transaction
644
+  (0.0ms) SAVEPOINT active_record_1
645
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.862230"], ["updated_at", "2015-05-14 19:15:21.862230"]]
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+  (0.1ms) SAVEPOINT active_record_1
648
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.863716"], ["updated_at", "2015-05-14 19:15:21.863716"]]
649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
650
+  (0.0ms) SAVEPOINT active_record_1
651
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
653
+  (0.1ms) SELECT COUNT(*) FROM "user_notifications" WHERE "user_notifications"."template_name" = ? AND "user_notifications"."user_id" = 1 [["template_name", "test"]]
654
+  (0.1ms) SELECT COUNT(*) FROM "user_notifications"
655
+  (0.6ms) rollback transaction
656
+  (0.1ms) begin transaction
657
+  (0.1ms) SAVEPOINT active_record_1
658
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.872325"], ["updated_at", "2015-05-14 19:15:21.872325"]]
659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
660
+  (0.0ms) SAVEPOINT active_record_1
661
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.874349"], ["updated_at", "2015-05-14 19:15:21.874349"]]
662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
663
+  (0.1ms) SAVEPOINT active_record_1
664
+ SQL (0.2ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
666
+  (0.1ms) SELECT COUNT(*) FROM "user_notifications" WHERE "user_notifications"."template_name" = ? AND "user_notifications"."user_id" = 1 [["template_name", "another_test"]]
667
+  (0.0ms) SAVEPOINT active_record_1
668
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "another_test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
670
+  (0.1ms) SELECT COUNT(*) FROM "user_notifications"
671
+  (0.5ms) rollback transaction
672
+  (0.1ms) begin transaction
673
+  (0.0ms) SAVEPOINT active_record_1
674
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.882759"], ["updated_at", "2015-05-14 19:15:21.882759"]]
675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
676
+  (0.0ms) SAVEPOINT active_record_1
677
+ SQL (0.2ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.884147"], ["updated_at", "2015-05-14 19:15:21.884147"]]
678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
679
+  (0.0ms) SAVEPOINT active_record_1
680
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682
+ UserNotification Load (0.1ms) SELECT "user_notifications".* FROM "user_notifications" ORDER BY "user_notifications"."id" DESC LIMIT 1
683
+  (0.6ms) rollback transaction
684
+  (0.0ms) begin transaction
685
+  (0.0ms) SAVEPOINT active_record_1
686
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.889135"], ["updated_at", "2015-05-14 19:15:21.889135"]]
687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
688
+  (0.0ms) SAVEPOINT active_record_1
689
+ SQL (0.5ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.890622"], ["updated_at", "2015-05-14 19:15:21.890622"]]
690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
691
+  (0.1ms) SAVEPOINT active_record_1
692
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
693
+  (0.1ms) RELEASE SAVEPOINT active_record_1
694
+  (0.9ms) rollback transaction
695
+  (0.1ms) begin transaction
696
+  (0.1ms) SAVEPOINT active_record_1
697
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.898583"], ["updated_at", "2015-05-14 19:15:21.898583"]]
698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
699
+  (0.1ms) SAVEPOINT active_record_1
700
+ SQL (0.6ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.901564"], ["updated_at", "2015-05-14 19:15:21.901564"]]
701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
702
+  (0.1ms) SAVEPOINT active_record_1
703
+ SQL (0.2ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
705
+  (0.6ms) rollback transaction
706
+  (0.1ms) begin transaction
707
+  (0.1ms) SAVEPOINT active_record_1
708
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.918095"], ["updated_at", "2015-05-14 19:15:21.918095"]]
709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
710
+  (0.0ms) SAVEPOINT active_record_1
711
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.920071"], ["updated_at", "2015-05-14 19:15:21.920071"]]
712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
713
+  (0.1ms) SAVEPOINT active_record_1
714
+ SQL (0.1ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
716
+  (1.0ms) rollback transaction
717
+  (0.2ms) begin transaction
718
+  (0.2ms) SAVEPOINT active_record_1
719
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.930147"], ["updated_at", "2015-05-14 19:15:21.930147"]]
720
+  (0.2ms) RELEASE SAVEPOINT active_record_1
721
+  (0.2ms) SAVEPOINT active_record_1
722
+ SQL (0.4ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
723
+  (0.2ms) RELEASE SAVEPOINT active_record_1
724
+ Rendered user_notifier/mailer/test_subject.en.text.erb (0.9ms)
725
+ Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.2ms)
726
+
727
+ UserNotifier::Mailer#notify: processed outbound mail in 156.5ms
728
+  (1.2ms) rollback transaction
729
+  (0.1ms) begin transaction
730
+  (0.0ms) SAVEPOINT active_record_1
731
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.099233"], ["updated_at", "2015-05-14 19:15:22.099233"]]
732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
733
+  (0.0ms) SAVEPOINT active_record_1
734
+ SQL (0.2ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
736
+ Rendered user_notifier/mailer/test_subject.en.text.erb (0.0ms)
737
+ Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
738
+
739
+ UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
740
+  (0.8ms) rollback transaction
741
+  (0.1ms) begin transaction
742
+  (0.0ms) SAVEPOINT active_record_1
743
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.105630"], ["updated_at", "2015-05-14 19:15:22.105630"]]
744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
745
+  (0.0ms) SAVEPOINT active_record_1
746
+ SQL (0.3ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "pt"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
748
+ Rendered user_notifier/mailer/test_subject.pt.text.erb (0.3ms)
749
+ Rendered user_notifier/mailer/test.pt.html.erb within layouts/email (0.3ms)
750
+
751
+ UserNotifier::Mailer#notify: processed outbound mail in 27.5ms
752
+  (0.7ms) rollback transaction
753
+  (0.1ms) begin transaction
754
+  (0.0ms) SAVEPOINT active_record_1
755
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.138234"], ["updated_at", "2015-05-14 19:15:22.138234"]]
756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
757
+  (0.1ms) SAVEPOINT active_record_1
758
+ SQL (0.3ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "pt"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
760
+ Rendered user_notifier/mailer/test_subject.pt.text.erb (0.0ms)
761
+ Rendered user_notifier/mailer/test.pt.html.erb within layouts/email (0.0ms)
762
+
763
+ UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
764
+  (0.6ms) rollback transaction
765
+  (0.0ms) begin transaction
766
+  (0.0ms) SAVEPOINT active_record_1
767
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.145070"], ["updated_at", "2015-05-14 19:15:22.145070"]]
768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
769
+  (0.0ms) SAVEPOINT active_record_1
770
+ SQL (0.2ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
772
+ Rendered user_notifier/mailer/test_subject.en.text.erb (0.0ms)
773
+ Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
774
+
775
+ UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
776
+  (0.5ms) rollback transaction
777
+  (0.1ms) begin transaction
778
+  (0.0ms) SAVEPOINT active_record_1
779
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.151031"], ["updated_at", "2015-05-14 19:15:22.151031"]]
780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+  (0.0ms) SAVEPOINT active_record_1
782
+ SQL (0.2ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
784
+ Rendered user_notifier/mailer/test_subject.en.text.erb (0.0ms)
785
+ Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
786
+
787
+ UserNotifier::Mailer#notify: processed outbound mail in 1.1ms
788
+  (0.6ms) rollback transaction
789
+  (0.0ms) begin transaction
790
+  (0.0ms) SAVEPOINT active_record_1
791
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.156668"], ["updated_at", "2015-05-14 19:15:22.156668"]]
792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
793
+  (0.1ms) SAVEPOINT active_record_1
794
+ SQL (0.6ms) INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
796
+ Rendered user_notifier/mailer/test_subject.en.text.erb (0.1ms)
797
+ Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
798
+
799
+ UserNotifier::Mailer#notify: processed outbound mail in 1.9ms
800
+  (0.8ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diogo Biazus