user_notifier 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eea93c56a1d631f7ce1440cdc8f3c6360ebdb72
4
- data.tar.gz: d117fe1460f2da2062b6802722e9e7a0c850057e
3
+ metadata.gz: a3745f08573552fb1d3a5e1dfec58bea283fa6a9
4
+ data.tar.gz: 72ef4d09dd95fd6caef2a764378a8737bd249155
5
5
  SHA512:
6
- metadata.gz: c7ba341e3a30900c162bc9644756af9a5960c536cc76aba1d62576f57cf72163bcd39107bc1a0aa2c19caeec862b0effa2b59fa041825abdc0a07b7d915069be
7
- data.tar.gz: d69f11700cfa024aba57e08b0a19089460945780c9a0266399ec6651c5793ba674ae641ce449baad07fd632d90dfb375fe42c0d1164a2b08d605bad9c6dfc820
6
+ metadata.gz: 5f7528293fd6e7ae9025d23c09e3c6cce2d1ef2e3a16d2597069fe9270ec0391f8e994b9c1abd7838e9dc0973eebb938c8a0b7e3375596420393d56305de572c
7
+ data.tar.gz: a577eba18afa8d42122fff6ae13c63df282a0f4970cc5d084a2b97d8b45c01fcd55e33b35088ab55f171365a0b8fa0ab869fa9f80f206212948b109f62e069dc
@@ -1,3 +1,3 @@
1
1
  module UserNotifier
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/user_notifier.rb CHANGED
@@ -7,5 +7,6 @@ module UserNotifier
7
7
  end
8
8
 
9
9
  ActiveSupport.on_load :active_record do
10
+ require "user_notifier/models/base"
10
11
  require "user_notifier/models/has_notifications"
11
12
  end
Binary file
@@ -13,7 +13,7 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 20140709170259) do
15
15
 
16
- create_table "order_notifications", force: true do |t|
16
+ create_table "order_notifications", force: :cascade do |t|
17
17
  t.integer "user_id", null: false
18
18
  t.integer "order_id", null: false
19
19
  t.text "from_email", null: false
@@ -23,14 +23,14 @@ ActiveRecord::Schema.define(version: 20140709170259) do
23
23
  t.datetime "sent_at"
24
24
  end
25
25
 
26
- create_table "orders", force: true do |t|
26
+ create_table "orders", force: :cascade do |t|
27
27
  t.integer "user_id"
28
28
  t.text "title"
29
29
  t.datetime "created_at"
30
30
  t.datetime "updated_at"
31
31
  end
32
32
 
33
- create_table "user_notifications", force: true do |t|
33
+ create_table "user_notifications", force: :cascade do |t|
34
34
  t.integer "user_id"
35
35
  t.text "from_email"
36
36
  t.text "from_name"
@@ -39,7 +39,7 @@ ActiveRecord::Schema.define(version: 20140709170259) do
39
39
  t.datetime "sent_at"
40
40
  end
41
41
 
42
- create_table "users", force: true do |t|
42
+ create_table "users", force: :cascade do |t|
43
43
  t.text "name"
44
44
  t.text "email"
45
45
  t.datetime "created_at"
Binary file
@@ -1,74 +1,39 @@
1
-  (20.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateUsers (20140625163719)
5
-  (0.1ms) begin transaction
6
-  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime) 
7
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140625163719"]]
8
-  (2.2ms) commit transaction
9
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
-  (2.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime) 
11
-  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12
-  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
-  (0.1ms) SELECT version FROM "schema_migrations"
14
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625163719')
15
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
- Migrating to CreateUserNotifications (20140625183616)
17
-  (0.1ms) begin transaction
18
-  (0.7ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "origin_email" text, "origin_name" text, "template_name" text, "locale" text, "sent_at" datetime) 
19
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140625183616"]]
20
-  (2.1ms) commit transaction
21
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
-  (2.0ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "origin_email" text, "origin_name" text, "template_name" text, "locale" text, "sent_at" datetime) 
23
-  (1.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime)
24
-  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
25
-  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
26
-  (0.4ms) SELECT version FROM "schema_migrations"
27
-  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625183616')
28
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625163719')
29
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
4
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateUsers (20140625163719)
6
+  (0.0ms) begin transaction
7
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/diogo/Projects/user_notifier/spec/dummy/db/migrate/20140625163719_create_users.rb:7)
8
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime)
9
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140625163719"]]
10
+  (0.6ms) commit transaction
31
11
  Migrating to CreateUserNotifications (20140625183616)
32
-  (0.1ms) begin transaction
33
-  (0.7ms) DROP TABLE "user_notifications"
34
- SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140625183616'
35
-  (8.7ms) commit transaction
36
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
37
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
- Migrating to CreateUserNotifications (20140625183616)
39
-  (0.1ms) begin transaction
40
-  (0.7ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "from_email" text, "from_name" text, "template_name" text, "locale" text, "sent_at" datetime)
41
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140625183616"]]
42
-  (2.3ms) commit transaction
43
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
-  (2.0ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "from_email" text, "from_name" text, "template_name" text, "locale" text, "sent_at" datetime)
45
-  (1.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime) 
46
-  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
47
-  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
48
-  (0.2ms) SELECT version FROM "schema_migrations"
49
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625183616')
50
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625163719')
51
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (0.0ms) begin transaction
13
+  (0.3ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "from_email" text, "from_name" text, "template_name" text, "locale" text, "sent_at" datetime)
14
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140625183616"]]
15
+  (0.6ms) commit transaction
52
16
  Migrating to CreateOrders (20140709164530)
53
-  (0.1ms) begin transaction
54
-  (0.7ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" text, "created_at" datetime, "updated_at" datetime) 
55
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140709164530"]]
56
-  (2.4ms) commit transaction
17
+  (0.0ms) begin transaction
18
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/diogo/Projects/user_notifier/spec/dummy/db/migrate/20140709164530_create_orders.rb:7)
19
+  (0.6ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" text, "created_at" datetime, "updated_at" datetime)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140709164530"]]
21
+  (0.6ms) commit transaction
57
22
  Migrating to CreateOrderNotifications (20140709170259)
58
-  (0.1ms) begin transaction
59
-  (0.5ms) CREATE TABLE "order_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "order_id" integer NOT NULL, "from_email" text NOT NULL, "from_name" text NOT NULL, "template_name" text NOT NULL, "locale" text NOT NULL, "sent_at" datetime) 
60
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140709170259"]]
61
-  (2.4ms) commit transaction
62
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
63
-  (2.4ms) CREATE TABLE "order_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "order_id" integer NOT NULL, "from_email" text NOT NULL, "from_name" text NOT NULL, "template_name" text NOT NULL, "locale" text NOT NULL, "sent_at" datetime) 
64
-  (1.6ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" text, "created_at" datetime, "updated_at" datetime)
65
-  (1.8ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "from_email" text, "from_name" text, "template_name" text, "locale" text, "sent_at" datetime) 
66
-  (3.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime)
67
-  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
68
-  (0.2ms) select sqlite_version(*)
69
-  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
70
-  (0.2ms) SELECT version FROM "schema_migrations"
71
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709170259')
72
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625163719')
73
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625183616')
74
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709164530')
23
+  (0.0ms) begin transaction
24
+  (0.3ms) CREATE TABLE "order_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "order_id" integer NOT NULL, "from_email" text NOT NULL, "from_name" text NOT NULL, "template_name" text NOT NULL, "locale" text NOT NULL, "sent_at" datetime)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140709170259"]]
26
+  (0.6ms) commit transaction
27
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+  (1.8ms) CREATE TABLE "order_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer NOT NULL, "order_id" integer NOT NULL, "from_email" text NOT NULL, "from_name" text NOT NULL, "template_name" text NOT NULL, "locale" text NOT NULL, "sent_at" datetime) 
29
+  (1.0ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" text, "created_at" datetime, "updated_at" datetime)
30
+  (1.0ms) CREATE TABLE "user_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "from_email" text, "from_name" text, "template_name" text, "locale" text, "sent_at" datetime) 
31
+  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "email" text, "created_at" datetime, "updated_at" datetime)
32
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
33
+  (0.1ms) select sqlite_version(*)
34
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35
+  (0.1ms) SELECT version FROM "schema_migrations"
36
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709170259')
37
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625163719')
38
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140625183616')
39
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140709164530')