news_feed 0.0.5 → 0.0.6

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.
@@ -33,7 +33,6 @@ module NewsFeed
33
33
 
34
34
  text = generate_text(event_name, actor_name(actor, recipient), object_class,
35
35
  object_title, recipient_name(actor, recipient), options)
36
-
37
36
  event_options = {
38
37
  text: text,
39
38
  event_object_type: self.class.name,
@@ -60,7 +59,7 @@ module NewsFeed
60
59
  if recipient != actor
61
60
  "you"
62
61
  else
63
- recipient.object_name.to_s
62
+ "yourself"
64
63
  end
65
64
  end
66
65
 
@@ -1,3 +1,3 @@
1
1
  module NewsFeed
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
Binary file
@@ -7,7 +7,7 @@ class InsertNewsFeedEvents < ActiveRecord::Migration
7
7
  t.string :event_object_type
8
8
  t.string :event_type
9
9
  t.integer :sender_id
10
- t.integer :sender_type
10
+ t.string :sender_type
11
11
  t.integer :recipient_id
12
12
  t.string :recipient_type
13
13
  t.timestamps
@@ -33,7 +33,7 @@ ActiveRecord::Schema.define(:version => 20120807021300) do
33
33
  t.string "event_object_type"
34
34
  t.string "event_type"
35
35
  t.integer "sender_id"
36
- t.integer "sender_type"
36
+ t.string "sender_type"
37
37
  t.integer "recipient_id"
38
38
  t.string "recipient_type"
39
39
  t.datetime "created_at", :null => false
Binary file
@@ -143,3 +143,35 @@ Connecting to database specified by database.yml
143
143
   (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120806220426')
144
144
   (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20120806195421')
145
145
   (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120806213224')
146
+ Connecting to database specified by database.yml
147
+  (0.1ms) select sqlite_version(*)
148
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
149
+  (0.0ms) PRAGMA index_list("schema_migrations")
150
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
151
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
152
+ Migrating to CreateUsers (20120806195421)
153
+  (0.0ms) begin transaction
154
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
155
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120806195421')
156
+  (1.5ms) commit transaction
157
+ Migrating to CreateNewsFeed (20120806213224)
158
+  (0.0ms) begin transaction
159
+  (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) 
160
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120806213224')
161
+  (1.0ms) commit transaction
162
+ Migrating to CreateMessages (20120806220426)
163
+  (0.0ms) begin transaction
164
+  (0.2ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
165
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120806220426')
166
+  (0.9ms) commit transaction
167
+ Migrating to InsertNewsFeedEvents (20120807021300)
168
+  (0.0ms) begin transaction
169
+  (0.3ms) 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" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
170
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120807021300')
171
+  (1.3ms) commit transaction
172
+  (0.3ms) select sqlite_version(*)
173
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
174
+  (0.0ms) PRAGMA index_list("messages")
175
+  (0.0ms) PRAGMA index_list("news_feed")
176
+  (0.0ms) PRAGMA index_list("news_feed_events")
177
+  (0.0ms) PRAGMA index_list("users")