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.
@@ -1,3 +1,3 @@
1
1
  module NewsFeed
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1512,3 +1512,89 @@ Connecting to database specified by database.yml
1512
1512
  SQL (0.2ms) 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: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
   (0.0ms) commit transaction
1514
1514
  NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1515
+ Connecting to database specified by database.yml
1516
+  (2.3ms) select sqlite_version(*)
1517
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1518
+  (0.2ms) CREATE 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) 
1519
+  (0.2ms) 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
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1521
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1522
+  (0.0ms) PRAGMA index_list("schema_migrations")
1523
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1524
+  (0.1ms) SELECT version FROM "schema_migrations"
1525
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1526
+  (0.1ms) begin transaction
1527
+  (0.1ms) rollback transaction
1528
+  (0.1ms) begin transaction
1529
+ SQL (5.8ms) 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
+  (0.1ms) commit transaction
1531
+  (0.1ms) begin transaction
1532
+ SQL (0.3ms) 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]]
1533
+  (0.0ms) commit transaction
1534
+  (0.0ms) begin transaction
1535
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
1537
+  (0.1ms) begin transaction
1538
+ SQL (0.3ms) 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", 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
+  (0.0ms) commit transaction
1540
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1541
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1542
+  (0.0ms) begin transaction
1543
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
1545
+  (0.0ms) begin transaction
1546
+ SQL (0.1ms) 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]]
1547
+  (0.0ms) commit transaction
1548
+  (0.0ms) begin transaction
1549
+ SQL (0.1ms) 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
+  (0.0ms) commit transaction
1551
+  (0.0ms) begin transaction
1552
+ SQL (0.2ms) 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", 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
+  (0.0ms) commit transaction
1554
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1555
+  (0.1ms) begin transaction
1556
+ SQL (0.1ms) 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]]
1557
+  (0.0ms) commit transaction
1558
+  (0.0ms) begin transaction
1559
+ SQL (0.1ms) 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
+  (0.0ms) commit transaction
1561
+  (0.0ms) begin transaction
1562
+ SQL (0.1ms) 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]]
1563
+  (0.0ms) commit transaction
1564
+  (0.0ms) begin transaction
1565
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
1567
+  (0.0ms) begin transaction
1568
+ SQL (0.2ms) 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", :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
+  (0.0ms) commit transaction
1570
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1571
+  (0.0ms) begin transaction
1572
+ SQL (0.1ms) 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]]
1573
+  (0.0ms) commit transaction
1574
+  (0.0ms) begin transaction
1575
+ SQL (0.1ms) 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
+  (0.0ms) commit transaction
1577
+  (0.0ms) begin transaction
1578
+ SQL (0.1ms) 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]]
1579
+  (0.0ms) commit transaction
1580
+  (0.0ms) begin transaction
1581
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
1583
+  (0.0ms) begin transaction
1584
+ SQL (0.2ms) 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", 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
+  (0.0ms) commit transaction
1586
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1587
+ NewsFeedEvent Load (0.1ms) 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
+  (0.0ms) begin transaction
1589
+ SQL (0.2ms) 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
+  (0.0ms) commit transaction
1591
+  (0.0ms) begin transaction
1592
+ SQL (0.2ms) 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]]
1593
+  (0.0ms) commit transaction
1594
+  (0.0ms) begin transaction
1595
+ SQL (0.2ms) 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
+  (0.1ms) commit transaction
1597
+  (0.0ms) begin transaction
1598
+ SQL (0.3ms) 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", 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
+  (0.0ms) commit transaction
1600
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
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.3
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: