news_feed 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/news_feed/version.rb +1 -1
- data/test/dummy/log/test.log +86 -0
- metadata +17 -1
data/lib/news_feed/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1512,3 +1512,89 @@ Connecting to database specified by database.yml
|
|
1512
1512
|
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:22:52 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Thu, 09 Aug 2012 04:22:52 UTC +00:00]]
|
1513
1513
|
[1m[35m (0.0ms)[0m commit transaction
|
1514
1514
|
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
1515
|
+
Connecting to database specified by database.yml
|
1516
|
+
[1m[36m (2.3ms)[0m [1mselect sqlite_version(*)[0m
|
1517
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1518
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) [0m
|
1519
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1520
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1521
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1522
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
1523
|
+
[1m[35m (0.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1524
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1525
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('1')
|
1526
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1527
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1528
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1529
|
+
[1m[35mSQL (5.8ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1530
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
1531
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1532
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1533
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1534
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1535
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1536
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1537
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1538
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1539
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1540
|
+
[1m[36mNewsFeedEvent Load (0.3ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
1541
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
1542
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1543
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1544
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1545
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1546
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1547
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1548
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1549
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1550
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1552
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1553
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1554
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
1555
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1556
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1557
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1558
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1559
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1560
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1561
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1562
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1563
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1565
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1566
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1568
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1569
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1570
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5[0m
|
1571
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1572
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1573
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1574
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1575
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1576
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1577
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1578
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1579
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1580
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1582
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1583
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1584
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1585
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1586
|
+
[1m[36mNewsFeedEvent Load (0.2ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
1587
|
+
[1m[35mNewsFeedEvent Load (0.1ms)[0m SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
|
1588
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1589
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1590
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1591
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1592
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1593
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1594
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1595
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1596
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
1597
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1598
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Thu, 09 Aug 2012 04:36:06 UTC +00:00]]
|
1599
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1600
|
+
[1m[36mNewsFeedEvent Load (0.1ms)[0m [1mSELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: news_feed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,6 +27,22 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 3.2.3
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
30
46
|
description: This gems allow for the simple creation of news feed notification objection
|
31
47
|
attached to any class
|
32
48
|
email:
|