user_notifier 0.0.3 → 0.0.4

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: 962bf40c71ba6c53d8295649321c24be3121e235
4
- data.tar.gz: 00d063c185a4135daade55cc0cb00fbb7774711b
3
+ metadata.gz: 00aaf7da8cfff1568b5e436d2ce207f28ad702dc
4
+ data.tar.gz: e3441d841da7d92e22bda2ef9349725bd08cc582
5
5
  SHA512:
6
- metadata.gz: b4f8191e482b2e57cd4f9c4e152935edbde8a916e2e7756effff3c58346b615024a8c37c07a333fd346be5172c4efcff58840a57d74af081b02c12b60e0b8107
7
- data.tar.gz: bb017c0c6cd815b97b586108781c806410471da0c20f9b43cf2ea68f59f919a16d95941fb565d768b6a0176fcf6559d3795b63453839aeb8a8de28b931cbeb69
6
+ metadata.gz: 67447244a6453b021dda1b2e2614696cd742183a5d8139041c22c74c2d3982a38debdee9fe723a4812ed4e9f90a83ad9e913fa5a880e74ec98798a33fb5f8b2b
7
+ data.tar.gz: 547558ba98c702b3ff2a6d1bd2ddf7d792d1233c6bab7de2d4bd006926a63e5829bebe3c0141a3d27054cb388e944c79cdd67e4518b895a71e30e3c68c5ea42b
@@ -8,6 +8,7 @@ class Create<%= notifications_table_name.camelize %> < ActiveRecord::Migration
8
8
  t.text :template_name, null: false
9
9
  t.text :locale, null: false
10
10
  t.timestamp :sent_at
11
+ t.timestamps
11
12
  end
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module UserNotifier
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -6419,3 +6419,161 @@ SQLite3::ConstraintException: NOT NULL constraint failed: order_notifications.or
6419
6419
   (0.1ms) RELEASE SAVEPOINT active_record_1
6420
6420
   (0.1ms) SELECT COUNT(*) FROM "user_notifications"
6421
6421
   (0.2ms) rollback transaction
6422
+  (1.4ms) begin transaction
6423
+  (0.1ms) SAVEPOINT active_record_1
6424
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.508964"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.508964"]]
6425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6426
+  (0.1ms) SAVEPOINT active_record_1
6427
+ SQL (0.3ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.541532"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.541532"], ["user_id", 1]]
6428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6429
+  (0.2ms) SAVEPOINT active_record_1
6430
+ SQL (0.5ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6432
+  (0.2ms) rollback transaction
6433
+  (0.1ms) begin transaction
6434
+  (0.1ms) SAVEPOINT active_record_1
6435
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.583862"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.583862"]]
6436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6437
+  (0.1ms) SAVEPOINT active_record_1
6438
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.585972"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.585972"], ["user_id", 1]]
6439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6440
+  (0.2ms) rollback transaction
6441
+  (0.1ms) begin transaction
6442
+  (0.1ms) SAVEPOINT active_record_1
6443
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.590256"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.590256"]]
6444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6445
+  (0.2ms) SAVEPOINT active_record_1
6446
+ SQL (0.7ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.608851"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.608851"], ["user_id", 1]]
6447
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6448
+  (0.1ms) SAVEPOINT active_record_1
6449
+ SQL (0.3ms) INSERT INTO "order_notifications" ("from_email", "from_name", "locale", "order_id", "template_name", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["order_id", 1], ["template_name", "test"], ["user_id", 1]]
6450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6451
+  (0.2ms) rollback transaction
6452
+  (0.1ms) begin transaction
6453
+  (0.1ms) SAVEPOINT active_record_1
6454
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.631008"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.631008"]]
6455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6456
+  (0.1ms) SAVEPOINT active_record_1
6457
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.633073"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.633073"], ["user_id", 1]]
6458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6459
+  (0.1ms) SAVEPOINT active_record_1
6460
+ SQL (0.1ms) INSERT INTO "order_notifications" ("from_email", "from_name", "locale", "order_id", "template_name", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["order_id", 1], ["template_name", "test"], ["user_id", 1]]
6461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6462
+  (0.2ms) rollback transaction
6463
+  (0.1ms) begin transaction
6464
+  (0.1ms) SAVEPOINT active_record_1
6465
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.638490"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.638490"]]
6466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6467
+  (0.1ms) SAVEPOINT active_record_1
6468
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.640455"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.640455"], ["user_id", 1]]
6469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6470
+  (0.1ms) SAVEPOINT active_record_1
6471
+ SQL (0.3ms) INSERT INTO "order_notifications" ("from_email", "from_name", "locale", "order_id", "template_name", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["order_id", 1], ["template_name", "test"], ["user_id", 1]]
6472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6473
+  (0.3ms) rollback transaction
6474
+  (0.2ms) begin transaction
6475
+  (0.1ms) SAVEPOINT active_record_1
6476
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.649498"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.649498"]]
6477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6478
+  (0.1ms) SAVEPOINT active_record_1
6479
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.652358"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.652358"], ["user_id", 1]]
6480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6481
+  (0.1ms) SAVEPOINT active_record_1
6482
+ SQL (0.1ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6484
+  (0.3ms) SELECT COUNT(*) FROM "user_notifications" WHERE "user_notifications"."user_id" = 1 AND "user_notifications"."template_name" = 'another_test'
6485
+  (0.2ms) SAVEPOINT active_record_1
6486
+ SQL (0.2ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "another_test"], ["user_id", 1]]
6487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6488
+  (0.2ms) SELECT COUNT(*) FROM "user_notifications"
6489
+  (0.3ms) rollback transaction
6490
+  (0.1ms) begin transaction
6491
+  (0.1ms) SAVEPOINT active_record_1
6492
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.695762"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.695762"]]
6493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6494
+  (0.1ms) SAVEPOINT active_record_1
6495
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.697904"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.697904"], ["user_id", 1]]
6496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6497
+  (0.1ms) SAVEPOINT active_record_1
6498
+ SQL (0.1ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6500
+ UserNotification Load (0.2ms) SELECT "user_notifications".* FROM "user_notifications" ORDER BY "user_notifications"."id" DESC LIMIT 1
6501
+  (0.3ms) rollback transaction
6502
+  (0.1ms) begin transaction
6503
+  (0.1ms) SAVEPOINT active_record_1
6504
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.717997"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.717997"]]
6505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6506
+  (0.1ms) SAVEPOINT active_record_1
6507
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.720189"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.720189"], ["user_id", 1]]
6508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6509
+  (0.1ms) SAVEPOINT active_record_1
6510
+ SQL (0.1ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6512
+  (0.1ms) SELECT COUNT(*) FROM "user_notifications" WHERE "user_notifications"."user_id" = 1 AND "user_notifications"."template_name" = 'test'
6513
+  (0.1ms) SELECT COUNT(*) FROM "user_notifications"
6514
+  (0.2ms) rollback transaction
6515
+  (0.1ms) begin transaction
6516
+  (0.1ms) SAVEPOINT active_record_1
6517
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.727657"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.727657"]]
6518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6519
+  (0.1ms) SAVEPOINT active_record_1
6520
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.729627"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.729627"], ["user_id", 1]]
6521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6522
+  (0.1ms) SAVEPOINT active_record_1
6523
+ SQL (0.2ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6525
+  (0.3ms) rollback transaction
6526
+  (0.1ms) begin transaction
6527
+  (0.1ms) SAVEPOINT active_record_1
6528
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.783352"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.783352"]]
6529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6530
+  (0.1ms) SAVEPOINT active_record_1
6531
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.785474"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.785474"], ["user_id", 1]]
6532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6533
+  (0.1ms) SAVEPOINT active_record_1
6534
+ SQL (0.1ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6536
+  (0.2ms) rollback transaction
6537
+  (0.1ms) begin transaction
6538
+  (0.1ms) SAVEPOINT active_record_1
6539
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.791520"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.791520"]]
6540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6541
+  (0.1ms) SAVEPOINT active_record_1
6542
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.793471"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.793471"], ["user_id", 1]]
6543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6544
+  (0.1ms) SAVEPOINT active_record_1
6545
+ SQL (0.2ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6547
+ UserNotification Load (0.2ms) SELECT "user_notifications".* FROM "user_notifications" ORDER BY "user_notifications"."id" DESC LIMIT 1
6548
+  (0.3ms) rollback transaction
6549
+  (0.1ms) begin transaction
6550
+  (0.1ms) SAVEPOINT active_record_1
6551
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-11 21:11:42.801097"], ["email", "foo@bar.com"], ["updated_at", "2014-07-11 21:11:42.801097"]]
6552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6553
+  (0.1ms) SAVEPOINT active_record_1
6554
+ SQL (0.2ms) INSERT INTO "orders" ("created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["created_at", "2014-07-11 21:11:42.803077"], ["title", "test"], ["updated_at", "2014-07-11 21:11:42.803077"], ["user_id", 1]]
6555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6556
+  (0.1ms) SAVEPOINT active_record_1
6557
+ SQL (0.1ms) INSERT INTO "user_notifications" ("from_email", "from_name", "locale", "template_name", "user_id") VALUES (?, ?, ?, ?, ?) [["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["locale", "en"], ["template_name", "test"], ["user_id", 1]]
6558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6559
+  (0.2ms) rollback transaction
6560
+  (0.1ms) begin transaction
6561
+  (0.1ms) rollback transaction
6562
+  (0.1ms) begin transaction
6563
+  (0.1ms) rollback transaction
6564
+  (0.1ms) begin transaction
6565
+  (0.1ms) rollback transaction
6566
+  (0.1ms) begin transaction
6567
+  (0.1ms) rollback transaction
6568
+  (0.1ms) begin transaction
6569
+  (0.1ms) rollback transaction
6570
+  (0.1ms) begin transaction
6571
+  (0.1ms) rollback transaction
6572
+  (0.1ms) begin transaction
6573
+  (0.1ms) rollback transaction
6574
+  (0.1ms) begin transaction
6575
+  (0.1ms) rollback transaction
6576
+  (0.1ms) begin transaction
6577
+  (0.1ms) rollback transaction
6578
+  (0.1ms) begin transaction
6579
+  (0.1ms) 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.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diogo Biazus