event_publisher 0.0.1 → 0.0.2

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: 5b899a29d2c41704e32ba87e2ac9f82dceeecd1b
4
- data.tar.gz: 59bb2b5e3ebf57cda133d2c9898a1153db00283c
3
+ metadata.gz: d30014ff341ff74238aebb35acac4eda63249ce6
4
+ data.tar.gz: 8922958a4f517e3140f560f8789c246f5d425f24
5
5
  SHA512:
6
- metadata.gz: f93f7239be200588014c45a7244834fdd2a0d91ce07630b63f3c119e3d139cedc7ed43fbc15ede89ca8b5fab554cf5af4b77cc3d0a8b5a6d08ce340c28ef77fa
7
- data.tar.gz: 934f0f138420e8b17aabc702d59ac2214a61b74fbf4baa657f2c4bacab4ef4954d7355a31dca9db2849f6db8682d58a1f0856638ab2735cabf77b7ff1aa38d3f
6
+ metadata.gz: e52d71fa050990e28bea6157d009d5d24799a48a385f1509fde0c7c009de9971621ace90535e80aaf2155e9a60606fe04d69e967c2f7d8a66872608ff4b659b1
7
+ data.tar.gz: 2d01ab563e046b6a99a4c884884aa441bf803c29048e3596675a313922f9aad297263b102dbe56656dc3be8aa47ff9c399947188bacf4516d5918794d955f696
data/README.rdoc CHANGED
@@ -1,3 +1,50 @@
1
- = EventPublisher
1
+ == EventPublisher
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ === Installation
4
+
5
+ `gem install event_publisher`
6
+
7
+ Or add the gem to the Gemfile
8
+
9
+ `gem 'event_publisher'`
10
+
11
+
12
+
13
+ === Usage
14
+
15
+ ==== Models
16
+ The trackable (user) model should look like something like this
17
+
18
+ ```rb
19
+ class Trackble
20
+ trackable
21
+ end
22
+ ```
23
+
24
+ Where `trackable` adds the following:
25
+ 1. `has_many` relation between `users` and `event_publisher_events_trackings` table
26
+ 2. An instance method called `track_event(event)` that can be called on the user object and track event.
27
+
28
+ ==== Controllers
29
+
30
+ ===== Tracking events
31
+ To track events in controllers, you can use the following like in any action
32
+
33
+ ```rb
34
+ track_event(current_user, "Listing articles")
35
+ ```
36
+
37
+ #### Migrating events after logging in
38
+ After the user logged in, you can use this method `migrate_events_after_login(current_user)` which migrates
39
+ all the events for the user before logging in. It uses cookies to store the user's ID and type to be able to
40
+ track events.
41
+
42
+ If you're using devise gem, you can use the `migrate_events_after_login` as follows:
43
+
44
+ ```rb
45
+ # In application_controller
46
+ def after_sign_in_path_for(resource)
47
+ migrate_events_after_login(resource)
48
+ super
49
+ end
50
+ ```
@@ -1,5 +1,8 @@
1
1
  module EventPublisher
2
2
  module Trackable
3
+ # This method logs the user's event.
4
+ # Usage:
5
+ # track_event(current_user, "Logged in")
3
6
  def track_event(user, event)
4
7
  user ||= current_event_publisher_user || current_anonymous_user
5
8
 
@@ -8,6 +11,26 @@ module EventPublisher
8
11
  user.track_event(event) # Creating the event
9
12
  end
10
13
 
14
+ # This method is called after the user logged in to migrate
15
+ # the events stored before logging in (as anonymous user).
16
+ # Usage:
17
+ # def after_login_path(resource)
18
+ # migrate_events_after_login(resource)
19
+ # end
20
+ def migrate_events_after_login(user)
21
+ previously_logged_in = current_event_publisher_user
22
+
23
+ # Moving the events of the previosuly logged in user to the current user
24
+ previously_logged_in.event_trackings.update_all(
25
+ trackable_type: user.class.name,
26
+ trackable_id: user.id
27
+ )
28
+
29
+ # Setting/overriding the cookies for the current user
30
+ set_cookies_for(user)
31
+ end
32
+
33
+ private
11
34
  # A method used to create an anonymous user to attach
12
35
  # the events to.
13
36
  def current_anonymous_user
@@ -15,25 +38,19 @@ module EventPublisher
15
38
  EventPublisher::AnonymousUser.create
16
39
  end
17
40
 
41
+ # Sets the event_publisher cookies. The cookies are:
42
+ # event_publisher_user_id: stores the user's id
43
+ # event_publisher_user_type: stores the user type. For exaple AnonymousUser or User
18
44
  def set_cookies_for(user)
19
45
  # Save the user ID in a signed cookie so no one can tweak it
20
46
  cookies.signed[:event_publisher_user_id] = user.id
21
47
  cookies.signed[:event_publisher_user_type] = user.class.name
22
48
  end
23
49
 
24
- def migrate_events_after_login(user)
25
- previously_logged_in = self.current_event_publisher_user
26
-
27
- # Moving the events of the previosuly logged in user to the current user
28
- previously_logged_in.event_trackings.update_all(
29
- trackable_type: user.class.name,
30
- trackable_id: user.id
31
- )
32
-
33
- # Setting/overriding the cookies for the current user
34
- set_cookies_for(user)
35
- end
36
-
50
+ # Returns the current_user for event_publisher.
51
+ # It's different from current_user where it finds
52
+ # the user using the cookies event_publisher_user_type
53
+ # and event_publisher_user_id
37
54
  def current_event_publisher_user
38
55
  klass = cookies.signed[:event_publisher_user_type]
39
56
  user_id = cookies.signed[:event_publisher_user_id]
@@ -9,6 +9,9 @@ module EventPublisher
9
9
  end
10
10
 
11
11
  module InstanceMethods
12
+ # Tracks an event for a user.
13
+ # Usage:
14
+ # current_user.track_event("Logged in")
12
15
  def track_event(event)
13
16
  event = Event.where(name: event).first_or_create if event.is_a?(String)
14
17
  self.event_trackings.create(event_id: event.id)
@@ -1,3 +1,3 @@
1
1
  module EventPublisher
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -20384,3 +20384,620 @@ Completed 200 OK in 8.9ms (Views: 0.7ms | ActiveRecord: 2.8ms)
20384
20384
   (0.1ms) RELEASE SAVEPOINT active_record_1
20385
20385
  SQL (0.3ms) SELECT "event_publisher_event_trackings".id FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."event_id" = 1077
20386
20386
   (0.1ms) ROLLBACK
20387
+ Connecting to database specified by database.yml
20388
+  (0.3ms) BEGIN
20389
+ SQL (13.3ms) INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20390
+  (0.9ms) COMMIT
20391
+  (0.3ms) BEGIN
20392
+  (0.3ms) SAVEPOINT active_record_1
20393
+ SQL (1.4ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20395
+  (1.0ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users"
20396
+  (1.8ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 419 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20397
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20398
+ Processing by ArticlesController#index as HTML
20399
+ Article Load (1.2ms) SELECT "articles".* FROM "articles" 
20400
+ EventPublisher::AnonymousUser Load (0.5ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 419 LIMIT 1
20401
+ EventPublisher::Event Load (1.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20402
+  (0.2ms) SAVEPOINT active_record_1
20403
+ SQL (0.9ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20405
+  (0.1ms) SAVEPOINT active_record_1
20406
+ SQL (1.0ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1078], ["ip", nil], ["operation_system", nil], ["trackable_id", 419], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20407
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20408
+ Rendered articles/index.html.erb within layouts/application (0.3ms)
20409
+ Completed 200 OK in 31.0ms (Views: 8.6ms | ActiveRecord: 6.7ms)
20410
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20411
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20412
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 419 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20413
+  (0.2ms) ROLLBACK
20414
+  (0.1ms) BEGIN
20415
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20416
+ Processing by ArticlesController#index as HTML
20417
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20418
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20419
+  (0.2ms) SAVEPOINT active_record_1
20420
+ SQL (0.4ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20421
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20422
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20423
+  (0.1ms) SAVEPOINT active_record_1
20424
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20426
+  (0.1ms) SAVEPOINT active_record_1
20427
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1079], ["ip", nil], ["operation_system", nil], ["trackable_id", 420], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20429
+ Completed 200 OK in 9.5ms (Views: 0.6ms | ActiveRecord: 2.9ms)
20430
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20431
+  (0.1ms) ROLLBACK
20432
+  (0.1ms) BEGIN
20433
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20434
+ Processing by ArticlesController#index as HTML
20435
+ Article Load (0.4ms) SELECT "articles".* FROM "articles"
20436
+ EventPublisher::AnonymousUser Load (0.3ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20437
+  (0.1ms) SAVEPOINT active_record_1
20438
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20440
+ EventPublisher::Event Load (0.4ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20441
+  (0.1ms) SAVEPOINT active_record_1
20442
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20444
+  (0.1ms) SAVEPOINT active_record_1
20445
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1080], ["ip", nil], ["operation_system", nil], ["trackable_id", 421], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20447
+ Completed 200 OK in 8.6ms (Views: 0.7ms | ActiveRecord: 2.8ms)
20448
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users"
20449
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20450
+ Processing by ArticlesController#index as HTML
20451
+ Article Load (0.5ms) SELECT "articles".* FROM "articles"
20452
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20453
+  (0.2ms) SAVEPOINT active_record_1
20454
+ SQL (0.4ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20456
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20457
+  (0.1ms) SAVEPOINT active_record_1
20458
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1080], ["ip", nil], ["operation_system", nil], ["trackable_id", 422], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20460
+ Completed 200 OK in 7.5ms (Views: 0.6ms | ActiveRecord: 2.5ms)
20461
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20462
+  (0.2ms) ROLLBACK
20463
+  (0.1ms) BEGIN
20464
+ Processing by ArticlesController#index as HTML
20465
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20466
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20467
+  (0.1ms) SAVEPOINT active_record_1
20468
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20470
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20471
+  (0.1ms) SAVEPOINT active_record_1
20472
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20474
+  (0.1ms) SAVEPOINT active_record_1
20475
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1081], ["ip", nil], ["operation_system", nil], ["trackable_id", 423], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20477
+ Completed 200 OK in 8.2ms (Views: 0.6ms | ActiveRecord: 2.4ms)
20478
+  (0.2ms) ROLLBACK
20479
+  (0.1ms) BEGIN
20480
+  (0.4ms) SAVEPOINT active_record_1
20481
+ User Exists (2.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20482
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$dCTqjmpdgqCjE4St8uOErO1Wq3TMncYqqLbgfzmAR4pRaVw6UeA.6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20484
+  (0.1ms) SAVEPOINT active_record_1
20485
+ SQL (0.3ms) INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20487
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20488
+ Processing by ArticlesController#show as HTML
20489
+ Parameters: {"id"=>"276"}
20490
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 450 LIMIT 1
20491
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1 [["id", "276"]]
20492
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20493
+  (0.1ms) SAVEPOINT active_record_1
20494
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20495
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20496
+  (0.1ms) SAVEPOINT active_record_1
20497
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1082], ["ip", nil], ["operation_system", nil], ["trackable_id", 450], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20499
+ Completed 200 OK in 7.9ms (Views: 1.6ms | ActiveRecord: 2.1ms)
20500
+  (0.5ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20501
+  (0.2ms) ROLLBACK
20502
+  (0.1ms) BEGIN
20503
+  (0.3ms) SAVEPOINT active_record_1
20504
+ User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20505
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$532EnKHJJo3YwwLK18QXCukRQ//zxlIH6nmF1XBT3GbkvxiZPQFYa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20506
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20507
+ Processing by ArticlesController#show as HTML
20508
+ Parameters: {"id"=>"275"}
20509
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 451 LIMIT 1
20510
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1 [["id", "275"]]
20511
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20512
+  (0.1ms) SAVEPOINT active_record_1
20513
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20514
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20515
+  (0.1ms) SAVEPOINT active_record_1
20516
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1083], ["ip", nil], ["operation_system", nil], ["trackable_id", 451], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20517
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20518
+ Completed 200 OK in 6.4ms (Views: 0.7ms | ActiveRecord: 2.3ms)
20519
+  (0.3ms) ROLLBACK
20520
+  (0.1ms) BEGIN
20521
+  (0.3ms) SAVEPOINT active_record_1
20522
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20523
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$jBoP/QTpLDWNPFj3tZhMKe/2jgKzygwNpIiTjVjUcvCSmvhsrZeLC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20525
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20526
+ Processing by ArticlesController#index as HTML
20527
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20528
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 452 LIMIT 1
20529
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20530
+  (0.1ms) SAVEPOINT active_record_1
20531
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20533
+  (0.1ms) SAVEPOINT active_record_1
20534
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1084], ["ip", nil], ["operation_system", nil], ["trackable_id", 452], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20536
+ Completed 200 OK in 7.5ms (Views: 0.7ms | ActiveRecord: 2.3ms)
20537
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20538
+  (0.1ms) ROLLBACK
20539
+  (0.1ms) BEGIN
20540
+  (0.2ms) SAVEPOINT active_record_1
20541
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20542
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$7wi9wIiNR72P2I6S.rX/l.CBg1PdTh.GbVL9f8dT6FEVhBRwr.fSe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20544
+ Processing by ArticlesController#index as HTML
20545
+ Article Load (0.4ms) SELECT "articles".* FROM "articles"
20546
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 453 LIMIT 1
20547
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20548
+  (0.1ms) SAVEPOINT active_record_1
20549
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20551
+  (0.1ms) SAVEPOINT active_record_1
20552
+ SQL (0.5ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1085], ["ip", nil], ["operation_system", nil], ["trackable_id", 453], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20553
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20554
+ Completed 200 OK in 8.5ms (Views: 0.9ms | ActiveRecord: 2.4ms)
20555
+  (0.2ms) ROLLBACK
20556
+  (0.1ms) BEGIN
20557
+  (0.3ms) SAVEPOINT active_record_1
20558
+ User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20559
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$/yJmOjmbkzzz9RyMXhacHO/6ZjEEIkyzrCEmeqSTSv4KZEi6ynTo."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20560
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20561
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20562
+ Processing by ArticlesController#index as HTML
20563
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20564
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 454 LIMIT 1
20565
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20566
+  (0.2ms) SAVEPOINT active_record_1
20567
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20569
+  (0.1ms) SAVEPOINT active_record_1
20570
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1086], ["ip", nil], ["operation_system", nil], ["trackable_id", 454], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20572
+ Completed 200 OK in 29.0ms (Views: 0.7ms | ActiveRecord: 2.5ms)
20573
+  (0.5ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20574
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20575
+ Processing by ArticlesController#index as HTML
20576
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" 
20577
+ EventPublisher::AnonymousUser Load (0.3ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20578
+  (0.2ms) SAVEPOINT active_record_1
20579
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20581
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20582
+  (0.1ms) SAVEPOINT active_record_1
20583
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1086], ["ip", nil], ["operation_system", nil], ["trackable_id", 424], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20584
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20585
+ Completed 200 OK in 7.4ms (Views: 0.6ms | ActiveRecord: 2.4ms)
20586
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20587
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20588
+ Processing by ArticlesController#index as HTML
20589
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20590
+ EventPublisher::AnonymousUser Load (0.3ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 424 LIMIT 1
20591
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20592
+  (0.1ms) SAVEPOINT active_record_1
20593
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1086], ["ip", nil], ["operation_system", nil], ["trackable_id", 424], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20594
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20595
+ Completed 200 OK in 6.6ms (Views: 0.6ms | ActiveRecord: 1.8ms)
20596
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20597
+  (0.2ms) ROLLBACK
20598
+  (0.1ms) BEGIN
20599
+  (0.3ms) SAVEPOINT active_record_1
20600
+ User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20601
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$Tf0ZBaKMReA5xpucaMQQwuVqVbh1D8wf3f5b1hR3Lwk5J2e7BJS/6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20603
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20604
+ Processing by ArticlesController#index as HTML
20605
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20606
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 455 LIMIT 1
20607
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20608
+  (0.2ms) SAVEPOINT active_record_1
20609
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20611
+  (0.1ms) SAVEPOINT active_record_1
20612
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1087], ["ip", nil], ["operation_system", nil], ["trackable_id", 455], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20613
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20614
+ Completed 200 OK in 8.0ms (Views: 0.7ms | ActiveRecord: 2.6ms)
20615
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20616
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20617
+ Processing by ArticlesController#index as HTML
20618
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" 
20619
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 455 LIMIT 1
20620
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20621
+  (0.1ms) SAVEPOINT active_record_1
20622
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1087], ["ip", nil], ["operation_system", nil], ["trackable_id", 455], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20624
+ Completed 200 OK in 7.5ms (Views: 0.6ms | ActiveRecord: 1.7ms)
20625
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20626
+  (0.1ms) ROLLBACK
20627
+  (0.1ms) BEGIN
20628
+  (0.1ms) SAVEPOINT active_record_1
20629
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20631
+  (0.1ms) SAVEPOINT active_record_1
20632
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20634
+  (0.1ms) SAVEPOINT active_record_1
20635
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20637
+  (0.1ms) SAVEPOINT active_record_1
20638
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20640
+  (0.1ms) SAVEPOINT active_record_1
20641
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20643
+  (0.1ms) SAVEPOINT active_record_1
20644
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20646
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 425 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20647
+  (0.2ms) SAVEPOINT active_record_1
20648
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20649
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$d8dGUbu63kgbzkF95Njc2.v0Jqh.eVC9kgIWYeThbEgganOFdbnvO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20651
+  (0.2ms) ROLLBACK
20652
+  (0.1ms) BEGIN
20653
+  (0.1ms) SAVEPOINT active_record_1
20654
+ SQL (0.2ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20656
+  (0.1ms) SAVEPOINT active_record_1
20657
+ SQL (0.5ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Login"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20659
+  (0.1ms) SAVEPOINT active_record_1
20660
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Logout"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20662
+  (0.2ms) SAVEPOINT active_record_1
20663
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1089], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 426], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20665
+  (0.1ms) SAVEPOINT active_record_1
20666
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1089], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 426], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20667
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20668
+ SQL (0.3ms) SELECT "event_publisher_event_trackings"."id" FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 426 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20669
+  (0.1ms) ROLLBACK
20670
+  (0.1ms) BEGIN
20671
+  (0.1ms) SAVEPOINT active_record_1
20672
+ SQL (0.4ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20674
+  (0.1ms) SAVEPOINT active_record_1
20675
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1090], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20677
+  (0.1ms) ROLLBACK
20678
+  (0.1ms) BEGIN
20679
+  (0.1ms) SAVEPOINT active_record_1
20680
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20682
+  (0.1ms) SAVEPOINT active_record_1
20683
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1091], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20685
+  (0.1ms) SAVEPOINT active_record_1
20686
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1091], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20688
+  (0.1ms) SAVEPOINT active_record_1
20689
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1091], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
20690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20691
+ SQL (0.3ms) SELECT "event_publisher_event_trackings".id FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."event_id" = 1091
20692
+  (0.1ms) ROLLBACK
20693
+ Connecting to database specified by database.yml
20694
+  (0.3ms) BEGIN
20695
+ SQL (13.1ms) INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20696
+  (0.7ms) COMMIT
20697
+  (0.3ms) BEGIN
20698
+  (0.2ms) SAVEPOINT active_record_1
20699
+ SQL (1.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20700
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20701
+  (0.2ms) SAVEPOINT active_record_1
20702
+ SQL (1.1ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1092], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20704
+  (0.1ms) ROLLBACK
20705
+  (0.2ms) BEGIN
20706
+  (0.5ms) SAVEPOINT active_record_1
20707
+ User Exists (1.7ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20708
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$0ASX4Mj5Wprfer.NvLIXRer.L2rt.RJMspsPoT19Z/RdjyL9uXNpW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20710
+  (0.6ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20711
+ Processing by ArticlesController#index as HTML
20712
+ Article Load (1.1ms) SELECT "articles".* FROM "articles"
20713
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 457 LIMIT 1
20714
+ EventPublisher::Event Load (0.6ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20715
+  (0.1ms) SAVEPOINT active_record_1
20716
+ SQL (0.4ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20718
+  (0.2ms) SAVEPOINT active_record_1
20719
+ SQL (0.5ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1093], ["ip", nil], ["operation_system", nil], ["trackable_id", 457], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20720
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20721
+ Rendered articles/index.html.erb within layouts/application (0.2ms)
20722
+ Completed 200 OK in 26.8ms (Views: 7.2ms | ActiveRecord: 3.6ms)
20723
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20724
+  (0.2ms) ROLLBACK
20725
+  (0.1ms) BEGIN
20726
+  (0.2ms) SAVEPOINT active_record_1
20727
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20728
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$GBse/dTlAtkzAtnPROTV2uSBLg800mVbKITN3MKtsIZ9MP8C8m0jC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20730
+ Processing by ArticlesController#index as HTML
20731
+ Article Load (0.5ms) SELECT "articles".* FROM "articles"
20732
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 458 LIMIT 1
20733
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20734
+  (0.1ms) SAVEPOINT active_record_1
20735
+ SQL (0.4ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20737
+  (0.1ms) SAVEPOINT active_record_1
20738
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1094], ["ip", nil], ["operation_system", nil], ["trackable_id", 458], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20740
+ Completed 200 OK in 7.7ms (Views: 0.7ms | ActiveRecord: 2.3ms)
20741
+  (0.2ms) ROLLBACK
20742
+  (0.1ms) BEGIN
20743
+  (0.3ms) SAVEPOINT active_record_1
20744
+ User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20745
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$1GnyDm3CGkHZDhYXc4VeaO3JXNynqMpE9b0jp3z4O0g4DC3f93BqW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20747
+  (0.1ms) SAVEPOINT active_record_1
20748
+ SQL (0.3ms) INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20750
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20751
+ Processing by ArticlesController#show as HTML
20752
+ Parameters: {"id"=>"278"}
20753
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 459 LIMIT 1
20754
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1 [["id", "278"]]
20755
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20756
+  (0.1ms) SAVEPOINT active_record_1
20757
+ SQL (0.4ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20759
+  (0.1ms) SAVEPOINT active_record_1
20760
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1095], ["ip", nil], ["operation_system", nil], ["trackable_id", 459], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20761
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20762
+ Completed 200 OK in 7.6ms (Views: 1.3ms | ActiveRecord: 2.5ms)
20763
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20764
+  (0.2ms) ROLLBACK
20765
+  (0.1ms) BEGIN
20766
+  (0.1ms) SAVEPOINT active_record_1
20767
+ User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20768
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$tz1Y679PS2jr/kEGdwD1Yeye1RsEGdfzNU0VJxXbSIzhmM3WAc63C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20770
+ Processing by ArticlesController#show as HTML
20771
+ Parameters: {"id"=>"277"}
20772
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 460 LIMIT 1
20773
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1 [["id", "277"]]
20774
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20775
+  (0.1ms) SAVEPOINT active_record_1
20776
+ SQL (0.4ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20778
+  (0.1ms) SAVEPOINT active_record_1
20779
+ SQL (0.5ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1096], ["ip", nil], ["operation_system", nil], ["trackable_id", 460], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20781
+ Completed 200 OK in 6.7ms (Views: 0.7ms | ActiveRecord: 2.3ms)
20782
+  (0.2ms) ROLLBACK
20783
+  (0.1ms) BEGIN
20784
+  (0.2ms) SAVEPOINT active_record_1
20785
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20786
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$hp.efDOCIjnflysQP55t5Opny2XUoducUWwjfCutXrO4VdQXCyA0i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20788
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20789
+ Processing by ArticlesController#index as HTML
20790
+ Article Load (0.6ms) SELECT "articles".* FROM "articles" 
20791
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 461 LIMIT 1
20792
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20793
+  (0.1ms) SAVEPOINT active_record_1
20794
+ SQL (0.4ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20796
+  (0.2ms) SAVEPOINT active_record_1
20797
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1097], ["ip", nil], ["operation_system", nil], ["trackable_id", 461], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20798
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20799
+ Completed 200 OK in 8.1ms (Views: 0.7ms | ActiveRecord: 2.7ms)
20800
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20801
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20802
+ Processing by ArticlesController#index as HTML
20803
+ Article Load (0.4ms) SELECT "articles".* FROM "articles"
20804
+ EventPublisher::AnonymousUser Load (0.7ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20805
+  (0.2ms) SAVEPOINT active_record_1
20806
+ SQL (0.9ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20807
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20808
+ EventPublisher::Event Load (0.4ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20809
+  (0.3ms) SAVEPOINT active_record_1
20810
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1097], ["ip", nil], ["operation_system", nil], ["trackable_id", 427], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20812
+ Completed 200 OK in 15.5ms (Views: 0.6ms | ActiveRecord: 5.1ms)
20813
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20814
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20815
+ Processing by ArticlesController#index as HTML
20816
+ Article Load (0.4ms) SELECT "articles".* FROM "articles" 
20817
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 427 LIMIT 1
20818
+ EventPublisher::Event Load (0.4ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20819
+  (0.1ms) SAVEPOINT active_record_1
20820
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1097], ["ip", nil], ["operation_system", nil], ["trackable_id", 427], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20821
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20822
+ Completed 200 OK in 6.8ms (Views: 0.7ms | ActiveRecord: 1.9ms)
20823
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20824
+  (0.1ms) ROLLBACK
20825
+  (0.1ms) BEGIN
20826
+  (0.1ms) SAVEPOINT active_record_1
20827
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20828
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$JUfZan9mU7qCXNkDgwB.queMdE5IzbCywB4XGEbW/OBH/0BruzF12"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20830
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20831
+ Processing by ArticlesController#index as HTML
20832
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" 
20833
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 462 LIMIT 1
20834
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20835
+  (0.1ms) SAVEPOINT active_record_1
20836
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20838
+  (0.1ms) SAVEPOINT active_record_1
20839
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1098], ["ip", nil], ["operation_system", nil], ["trackable_id", 462], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20841
+ Completed 200 OK in 7.3ms (Views: 0.7ms | ActiveRecord: 2.1ms)
20842
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20843
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20844
+ Processing by ArticlesController#index as HTML
20845
+ Article Load (0.4ms) SELECT "articles".* FROM "articles"
20846
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 462 LIMIT 1
20847
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20848
+  (0.1ms) SAVEPOINT active_record_1
20849
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1098], ["ip", nil], ["operation_system", nil], ["trackable_id", 462], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
20850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20851
+ Completed 200 OK in 7.1ms (Views: 0.8ms | ActiveRecord: 1.7ms)
20852
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20853
+  (0.1ms) ROLLBACK
20854
+  (0.1ms) BEGIN
20855
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" 
20856
+ Processing by ArticlesController#index as HTML
20857
+ Article Load (0.5ms) SELECT "articles".* FROM "articles"
20858
+ EventPublisher::AnonymousUser Load (0.7ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20859
+  (0.3ms) SAVEPOINT active_record_1
20860
+ SQL (0.5ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20861
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20862
+ EventPublisher::Event Load (0.4ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20863
+  (0.1ms) SAVEPOINT active_record_1
20864
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20866
+  (0.1ms) SAVEPOINT active_record_1
20867
+ SQL (0.5ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1099], ["ip", nil], ["operation_system", nil], ["trackable_id", 428], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20868
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20869
+ Completed 200 OK in 33.5ms (Views: 0.7ms | ActiveRecord: 3.9ms)
20870
+  (0.4ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20871
+  (0.2ms) ROLLBACK
20872
+  (0.1ms) BEGIN
20873
+  (0.2ms) SAVEPOINT active_record_1
20874
+ SQL (0.4ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20875
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20876
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users"
20877
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 429 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20878
+  (0.1ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20879
+ Processing by ArticlesController#index as HTML
20880
+ Article Load (0.5ms) SELECT "articles".* FROM "articles" 
20881
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 429 LIMIT 1
20882
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20883
+  (0.1ms) SAVEPOINT active_record_1
20884
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20886
+  (0.1ms) SAVEPOINT active_record_1
20887
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1100], ["ip", nil], ["operation_system", nil], ["trackable_id", 429], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20889
+ Completed 200 OK in 7.6ms (Views: 0.6ms | ActiveRecord: 2.2ms)
20890
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings"
20891
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20892
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 429 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20893
+  (0.1ms) ROLLBACK
20894
+  (0.1ms) BEGIN
20895
+  (0.2ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20896
+ Processing by ArticlesController#index as HTML
20897
+ Article Load (0.5ms) SELECT "articles".* FROM "articles"
20898
+ EventPublisher::AnonymousUser Load (0.3ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20899
+  (0.2ms) SAVEPOINT active_record_1
20900
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20902
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20903
+  (0.1ms) SAVEPOINT active_record_1
20904
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20906
+  (0.1ms) SAVEPOINT active_record_1
20907
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1101], ["ip", nil], ["operation_system", nil], ["trackable_id", 430], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20909
+ Completed 200 OK in 8.3ms (Views: 0.6ms | ActiveRecord: 2.5ms)
20910
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users"
20911
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20912
+ Processing by ArticlesController#index as HTML
20913
+ Article Load (0.5ms) SELECT "articles".* FROM "articles"
20914
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20915
+  (0.2ms) SAVEPOINT active_record_1
20916
+ SQL (0.4ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20918
+ EventPublisher::Event Load (0.3ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20919
+  (0.1ms) SAVEPOINT active_record_1
20920
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1101], ["ip", nil], ["operation_system", nil], ["trackable_id", 431], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20922
+ Completed 200 OK in 7.5ms (Views: 0.6ms | ActiveRecord: 2.6ms)
20923
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_anonymous_users" 
20924
+  (0.1ms) ROLLBACK
20925
+  (0.1ms) BEGIN
20926
+ Processing by ArticlesController#index as HTML
20927
+ Article Load (0.6ms) SELECT "articles".* FROM "articles"
20928
+ EventPublisher::AnonymousUser Load (0.3ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
20929
+  (0.1ms) SAVEPOINT active_record_1
20930
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20931
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20932
+ EventPublisher::Event Load (0.2ms) SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
20933
+  (0.1ms) SAVEPOINT active_record_1
20934
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20936
+  (0.1ms) SAVEPOINT active_record_1
20937
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1102], ["ip", nil], ["operation_system", nil], ["trackable_id", 432], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20939
+ Completed 200 OK in 8.3ms (Views: 0.6ms | ActiveRecord: 2.5ms)
20940
+  (0.1ms) ROLLBACK
20941
+  (0.1ms) BEGIN
20942
+  (0.1ms) SAVEPOINT active_record_1
20943
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20945
+  (0.1ms) SAVEPOINT active_record_1
20946
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20948
+  (0.1ms) SAVEPOINT active_record_1
20949
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20951
+  (0.1ms) SAVEPOINT active_record_1
20952
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20954
+  (0.1ms) SAVEPOINT active_record_1
20955
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20957
+  (0.1ms) SAVEPOINT active_record_1
20958
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20960
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 433 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20961
+  (0.2ms) SAVEPOINT active_record_1
20962
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
20963
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$SUIcebVHn5o2B/NV6j4Wyu6F/EF9Z3xycrxrrA3Bg1vPI8RKn/Mfi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20964
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20965
+ EventPublisher::AnonymousUser Load (0.4ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 433 LIMIT 1
20966
+ SQL (0.4ms) UPDATE "event_publisher_event_trackings" SET "trackable_type" = 'User', "trackable_id" = 463 WHERE "event_publisher_event_trackings"."trackable_id" = 433 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20967
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 463 AND "event_publisher_event_trackings"."trackable_type" = 'User'
20968
+ EventPublisher::AnonymousUser Load (0.3ms) SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = $1 LIMIT 1 [["id", 433]]
20969
+  (0.3ms) SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 433 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20970
+  (0.1ms) ROLLBACK
20971
+  (0.1ms) BEGIN
20972
+  (0.1ms) SAVEPOINT active_record_1
20973
+ SQL (0.3ms) INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20974
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20975
+  (0.1ms) SAVEPOINT active_record_1
20976
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Login"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20978
+  (0.1ms) SAVEPOINT active_record_1
20979
+ SQL (0.3ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Logout"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20981
+  (0.1ms) SAVEPOINT active_record_1
20982
+ SQL (0.3ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1104], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 434], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20984
+  (0.1ms) SAVEPOINT active_record_1
20985
+ SQL (0.4ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1104], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 434], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20987
+ SQL (0.3ms) SELECT "event_publisher_event_trackings"."id" FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 434 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
20988
+  (0.1ms) ROLLBACK
20989
+  (0.1ms) BEGIN
20990
+  (0.1ms) SAVEPOINT active_record_1
20991
+ SQL (0.2ms) INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20992
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20993
+  (0.1ms) SAVEPOINT active_record_1
20994
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1105], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20996
+  (0.1ms) SAVEPOINT active_record_1
20997
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1105], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
20998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20999
+  (0.1ms) SAVEPOINT active_record_1
21000
+ SQL (0.2ms) INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1105], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
21001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21002
+ SQL (0.3ms) SELECT "event_publisher_event_trackings".id FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."event_id" = 1105
21003
+  (0.1ms) ROLLBACK
@@ -1,23 +1,5 @@
1
1
  require 'rails_helper'
2
2
 
3
- # This spec was generated by rspec-rails when you ran the scaffold generator.
4
- # It demonstrates how one might use RSpec to specify the controller code that
5
- # was generated by Rails when you ran the scaffold generator.
6
- #
7
- # It assumes that the implementation code is generated by the rails scaffold
8
- # generator. If you are using any extension libraries to generate different
9
- # controller code, this generated spec may or may not pass.
10
- #
11
- # It only uses APIs available in rails and/or rspec-rails. There are a number
12
- # of tools you can use to make these specs even more expressive, but we're
13
- # sticking to rails and rspec-rails APIs to keep things simple and stable.
14
- #
15
- # Compared to earlier versions of this generator, there is very limited use of
16
- # stubs and message expectations in this spec. Stubs are only used when there
17
- # is no simpler way to get a handle on the object needed for the example.
18
- # Message expectations are only used when there is no simpler way to specify
19
- # that an instance is receiving a specific message.
20
-
21
3
  RSpec.describe ArticlesController, :type => :controller do
22
4
  shared_examples "setting event publisher cookies" do |action, params|
23
5
  it "should save the cookies of the current logged in user" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamed Magdy