starburst 1.0.2 → 1.0.3

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: 9520898935d94d1d4ab56447b19c6c58f878237e
4
- data.tar.gz: 81a074573ce57a124317e4d882ca8a8470f6fc03
3
+ metadata.gz: f4fd7336a37f86aca286cc5cb4a972e33f2a4421
4
+ data.tar.gz: 76ba6e48b48642a27d65b220d86374f2baef98d7
5
5
  SHA512:
6
- metadata.gz: 263481986d19914b4fe6cd900db2200e9a1b93480360d825d3c8e021db102f1390b1fb1d36c9692b6f091459938fc9acb3076ffe0a4971ed8be13541289ec7cc
7
- data.tar.gz: a83f59e3671eecfdc01d14c61a03a9614def0ced391a6b2423048f1dcfffa9340f7cc01b130087c4ffcf9abd603b3ef1766991e3731a276dfae1f2ac61f5e588
6
+ metadata.gz: d323319bc0442bd3ccf355f9b0bcaceef83aebdc31278a0484d4ca9cfcd530983df79dc276ada157e66542b84c2a1c624a86750c8335f69202791809e3201fea
7
+ data.tar.gz: f3092558e4598793394db034bf37e52e837733cc18f3cc0be79afee4ed64b02fa8ff64d1decaf0264443f44adf51c243517f4bb573d6181547f02eb27036010c
@@ -3,7 +3,7 @@ module Starburst
3
3
  def mark_as_read
4
4
  announcement = Announcement.find(params[:id].to_i)
5
5
  if respond_to?(Starburst.current_user_method) && send(Starburst.current_user_method) && announcement
6
- if AnnouncementView.where(user: send(Starburst.current_user_method), announcement: announcement).first_or_create(user: send(Starburst.current_user_method), announcement: announcement)
6
+ if AnnouncementView.where(user_id: send(Starburst.current_user_method).id, announcement_id: announcement.id).first_or_create(user_id: send(Starburst.current_user_method).id, announcement_id: announcement.id)
7
7
  render :json => :ok
8
8
  else
9
9
  render json: nil, :status => :unprocessable_entity
@@ -1,7 +1,7 @@
1
1
  module Starburst
2
2
  class AnnouncementView < ActiveRecord::Base
3
3
  if Rails::VERSION::MAJOR < 4
4
- attr_accessible :announcement, :user
4
+ attr_accessible :announcement_id, :user_id
5
5
  end
6
6
 
7
7
  belongs_to :announcement
@@ -1,3 +1,3 @@
1
1
  module Starburst
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -39353,3 +39353,305 @@ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 1.0ms)
39353
39353
  Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
39354
39354
  Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39355
39355
   (0.7ms) rollback transaction
39356
+  (4.9ms) begin transaction
39357
+  (0.1ms) SAVEPOINT active_record_1
39358
+ SQL (0.5ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2015-03-14 21:39:39.650155"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.650155"]]
39359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39360
+ Started GET "/" for 127.0.0.1 at 2015-03-14 17:39:39 -0400
39361
+ Processing by PagesController#home as HTML
39362
+ Rendered pages/home.html.erb within layouts/application (1.4ms)
39363
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (0.8ms)
39364
+ Completed 200 OK in 74ms (Views: 73.6ms | ActiveRecord: 0.0ms)
39365
+  (0.4ms) rollback transaction
39366
+  (0.1ms) begin transaction
39367
+  (0.1ms) rollback transaction
39368
+  (0.1ms) begin transaction
39369
+  (0.1ms) SAVEPOINT active_record_1
39370
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.755885"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.755885"]]
39371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39372
+  (0.1ms) SAVEPOINT active_record_1
39373
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2015-03-14 21:39:39.758583"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.758583"]]
39374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39375
+ Started GET "/" for 127.0.0.1 at 2015-03-14 17:39:39 -0400
39376
+ Processing by PagesController#home as HTML
39377
+ Rendered pages/home.html.erb within layouts/application (0.2ms)
39378
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39379
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39380
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2015-03-14 21:39:39.764352' OR start_delivering_at IS NULL)
39381
+ AND (stop_delivering_at > '2015-03-14 21:39:39.764354' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39382
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (10.7ms)
39383
+ Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.2ms)
39384
+  (0.1ms) SAVEPOINT active_record_1
39385
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39386
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:39.792639"], ["updated_at", "2015-03-14 21:39:39.792639"], ["user_id", 1]]
39387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39388
+ Started GET "/" for 127.0.0.1 at 2015-03-14 17:39:39 -0400
39389
+ Processing by PagesController#home as HTML
39390
+ Rendered pages/home.html.erb within layouts/application (0.0ms)
39391
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39392
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39393
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2015-03-14 21:39:39.798067' OR start_delivering_at IS NULL)
39394
+ AND (stop_delivering_at > '2015-03-14 21:39:39.798070' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39395
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (1.7ms)
39396
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
39397
+  (0.7ms) rollback transaction
39398
+  (0.1ms) begin transaction
39399
+  (0.1ms) SAVEPOINT active_record_1
39400
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.803807"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.803807"]]
39401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39402
+  (0.1ms) SAVEPOINT active_record_1
39403
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2015-03-14 21:39:39.806245"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.806245"]]
39404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39405
+ Started GET "/" for 127.0.0.1 at 2015-03-14 17:39:39 -0400
39406
+ Processing by PagesController#home as HTML
39407
+ Rendered pages/home.html.erb within layouts/application (0.1ms)
39408
+ Starburst::Announcement Load (0.3ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39409
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39410
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2015-03-14 21:39:39.811441' OR start_delivering_at IS NULL)
39411
+ AND (stop_delivering_at > '2015-03-14 21:39:39.811445' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39412
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (3.9ms)
39413
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
39414
+  (2.4ms) rollback transaction
39415
+  (0.1ms) begin transaction
39416
+  (0.1ms) SAVEPOINT active_record_1
39417
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.821787"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.821787"]]
39418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39419
+  (0.0ms) SAVEPOINT active_record_1
39420
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:39.823735"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.823735"]]
39421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39422
+  (0.0ms) SAVEPOINT active_record_1
39423
+ SQL (0.1ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:39.825381"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.825381"]]
39424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39425
+  (0.1ms) SAVEPOINT active_record_1
39426
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39427
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:39.828761"], ["updated_at", "2015-03-14 21:39:39.828761"], ["user_id", 1]]
39428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39429
+  (0.1ms) SAVEPOINT active_record_1
39430
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
39431
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2015-03-14 21:39:39.832651"], ["updated_at", "2015-03-14 21:39:39.832651"], ["user_id", 1]]
39432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39433
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39434
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
39435
+  (3.8ms) rollback transaction
39436
+  (0.1ms) begin transaction
39437
+  (0.1ms) SAVEPOINT active_record_1
39438
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.842155"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.842155"]]
39439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39440
+  (0.1ms) SAVEPOINT active_record_1
39441
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.844367"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.844367"]]
39442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39443
+  (0.1ms) SAVEPOINT active_record_1
39444
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:39.846984"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.846984"]]
39445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39446
+  (0.1ms) SAVEPOINT active_record_1
39447
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39448
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:39.851281"], ["updated_at", "2015-03-14 21:39:39.851281"], ["user_id", 1]]
39449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39450
+  (0.1ms) SAVEPOINT active_record_1
39451
+ Starburst::AnnouncementView Exists (0.2ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39452
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:39.855553"], ["updated_at", "2015-03-14 21:39:39.855553"], ["user_id", 2]]
39453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39454
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39455
+ Starburst::AnnouncementView Exists (0.3ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 2 AND "starburst_announcement_views"."id" != 2 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39456
+  (0.8ms) rollback transaction
39457
+  (0.1ms) begin transaction
39458
+  (0.1ms) SAVEPOINT active_record_1
39459
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.863764"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.863764"]]
39460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39461
+  (0.1ms) SAVEPOINT active_record_1
39462
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:39.866432"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:39.866432"]]
39463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39464
+  (0.1ms) SAVEPOINT active_record_1
39465
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39466
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:39.870280"], ["updated_at", "2015-03-14 21:39:39.870280"], ["user_id", 1]]
39467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39468
+ Starburst::AnnouncementView Exists (0.2ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."id" != 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39469
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39470
+  (2.0ms) rollback transaction
39471
+  (0.1ms) begin transaction
39472
+  (0.1ms) SAVEPOINT active_record_1
39473
+ SQL (2.9ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.892151"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-14 21:39:39.890331"], ["stop_delivering_at", "2015-03-15 21:39:39.890333"], ["updated_at", "2015-03-14 21:39:39.892151"]]
39474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39475
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2015-03-14 21:39:39.898180' OR start_delivering_at IS NULL)
39476
+ AND (stop_delivering_at > '2015-03-14 21:39:39.898183' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39477
+  (0.5ms) rollback transaction
39478
+  (0.1ms) begin transaction
39479
+  (0.3ms) SAVEPOINT active_record_1
39480
+ SQL (0.6ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.904602"], ["limit_to_users", nil], ["stop_delivering_at", "2015-03-15 21:39:39.903138"], ["updated_at", "2015-03-14 21:39:39.904602"]]
39481
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39482
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2015-03-14 21:39:39.907181' OR start_delivering_at IS NULL)
39483
+ AND (stop_delivering_at > '2015-03-14 21:39:39.907184' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39484
+  (0.5ms) rollback transaction
39485
+  (0.1ms) begin transaction
39486
+  (0.3ms) SAVEPOINT active_record_1
39487
+ SQL (0.6ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.914513"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-15 21:39:39.911086"], ["updated_at", "2015-03-14 21:39:39.914513"]]
39488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39489
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2015-03-14 21:39:39.917401' OR start_delivering_at IS NULL)
39490
+ AND (stop_delivering_at > '2015-03-14 21:39:39.917403' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39491
+  (0.6ms) rollback transaction
39492
+  (0.1ms) begin transaction
39493
+  (0.1ms) SAVEPOINT active_record_1
39494
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.922130"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-14 21:39:39.920962"], ["stop_delivering_at", "2015-03-14 21:39:39.920963"], ["updated_at", "2015-03-14 21:39:39.922130"]]
39495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39496
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2015-03-14 21:39:39.924104' OR start_delivering_at IS NULL)
39497
+ AND (stop_delivering_at > '2015-03-14 21:39:39.924106' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39498
+  (0.5ms) rollback transaction
39499
+  (0.1ms) begin transaction
39500
+  (0.1ms) SAVEPOINT active_record_1
39501
+ SQL (0.5ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.929042"], ["limit_to_users", nil], ["stop_delivering_at", "2015-03-13 21:39:39.926891"], ["updated_at", "2015-03-14 21:39:39.929042"]]
39502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39503
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2015-03-14 21:39:39.931728' OR start_delivering_at IS NULL)
39504
+ AND (stop_delivering_at > '2015-03-14 21:39:39.931731' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39505
+  (0.5ms) rollback transaction
39506
+  (0.1ms) begin transaction
39507
+  (0.1ms) SAVEPOINT active_record_1
39508
+ SQL (0.7ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.936837"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-13 21:39:39.934969"], ["updated_at", "2015-03-14 21:39:39.936837"]]
39509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39510
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2015-03-14 21:39:39.939340' OR start_delivering_at IS NULL)
39511
+ AND (stop_delivering_at > '2015-03-14 21:39:39.939350' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
39512
+  (0.4ms) rollback transaction
39513
+  (0.1ms) begin transaction
39514
+  (0.2ms) SAVEPOINT active_record_1
39515
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.951395"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n"], ["updated_at", "2015-03-14 21:39:39.951395"]]
39516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39517
+  (0.1ms) SAVEPOINT active_record_1
39518
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.956326"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.956326"]]
39519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39520
+  (0.1ms) SAVEPOINT active_record_1
39521
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.959927"], ["subscription", "monthly"], ["updated_at", "2015-03-14 21:39:39.959927"]]
39522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39523
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39524
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39525
+  (1.1ms) rollback transaction
39526
+  (0.2ms) begin transaction
39527
+  (0.1ms) SAVEPOINT active_record_1
39528
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.970131"], ["limit_to_users", "---\n- :field: free?\n :value: true\n"], ["updated_at", "2015-03-14 21:39:39.970131"]]
39529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39530
+  (0.1ms) SAVEPOINT active_record_1
39531
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.972682"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.972682"]]
39532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39533
+  (0.1ms) SAVEPOINT active_record_1
39534
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.974948"], ["subscription", "monthly"], ["updated_at", "2015-03-14 21:39:39.974948"]]
39535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39536
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39537
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
39538
+  (0.8ms) rollback transaction
39539
+  (0.2ms) begin transaction
39540
+  (0.1ms) SAVEPOINT active_record_1
39541
+ SQL (0.5ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.982572"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n :operator: =\n"], ["updated_at", "2015-03-14 21:39:39.982572"]]
39542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39543
+  (0.5ms) rollback transaction
39544
+  (0.1ms) begin transaction
39545
+  (0.1ms) SAVEPOINT active_record_1
39546
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.988637"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-13 21:39:39.987409"], ["updated_at", "2015-03-14 21:39:39.988637"]]
39547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39548
+  (0.1ms) SAVEPOINT active_record_1
39549
+ SQL (0.7ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:39.991091"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-14 21:39:39.990517"], ["updated_at", "2015-03-14 21:39:39.991091"]]
39550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39551
+  (0.1ms) SAVEPOINT active_record_1
39552
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:39.998651"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:39.998651"]]
39553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39554
+  (0.1ms) SAVEPOINT active_record_1
39555
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:40.000341"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:40.000341"]]
39556
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39557
+  (0.1ms) SAVEPOINT active_record_1
39558
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39559
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:40.005912"], ["updated_at", "2015-03-14 21:39:40.005912"], ["user_id", 1]]
39560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39561
+ Starburst::Announcement Load (0.3ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39562
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39563
+ starburst_announcement_views.user_id = 2 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
39564
+  (0.6ms) rollback transaction
39565
+  (0.1ms) begin transaction
39566
+  (0.4ms) SAVEPOINT active_record_1
39567
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:40.015466"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-13 21:39:40.012505"], ["updated_at", "2015-03-14 21:39:40.015466"]]
39568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39569
+  (0.1ms) SAVEPOINT active_record_1
39570
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:40.018142"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-14 21:39:40.017501"], ["updated_at", "2015-03-14 21:39:40.018142"]]
39571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39572
+  (0.1ms) SAVEPOINT active_record_1
39573
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:40.020427"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:40.020427"]]
39574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39575
+  (0.0ms) SAVEPOINT active_record_1
39576
+ Starburst::AnnouncementView Exists (0.2ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39577
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:40.023813"], ["updated_at", "2015-03-14 21:39:40.023813"], ["user_id", 1]]
39578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39579
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39580
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39581
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2015-03-14 21:39:40.025321' OR start_delivering_at IS NULL)
39582
+ AND (stop_delivering_at > '2015-03-14 21:39:40.025324' OR stop_delivering_at IS NULL)) AND (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL) ORDER BY start_delivering_at ASC
39583
+  (3.3ms) rollback transaction
39584
+  (0.1ms) begin transaction
39585
+  (0.1ms) SAVEPOINT active_record_1
39586
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:40.033685"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-13 21:39:40.032464"], ["updated_at", "2015-03-14 21:39:40.033685"]]
39587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39588
+  (0.0ms) SAVEPOINT active_record_1
39589
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "test"], ["created_at", "2015-03-14 21:39:40.036022"], ["limit_to_users", nil], ["start_delivering_at", "2015-03-14 21:39:40.035543"], ["updated_at", "2015-03-14 21:39:40.036022"]]
39590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39591
+  (0.1ms) SAVEPOINT active_record_1
39592
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-03-14 21:39:40.038392"], ["subscription", ""], ["updated_at", "2015-03-14 21:39:40.038392"]]
39593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39594
+  (1.1ms) SAVEPOINT active_record_1
39595
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 1 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39596
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:40.043121"], ["updated_at", "2015-03-14 21:39:40.043121"], ["user_id", 1]]
39597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39598
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
39599
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
39600
+ starburst_announcement_views.user_id = 1 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
39601
+  (1.2ms) rollback transaction
39602
+  (0.1ms) begin transaction
39603
+  (0.1ms) SAVEPOINT active_record_1
39604
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2015-03-14 21:39:40.050378"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:40.050378"]]
39605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39606
+  (3.7ms) rollback transaction
39607
+  (1.9ms) begin transaction
39608
+  (0.1ms) SAVEPOINT active_record_1
39609
+ SQL (0.5ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2015-03-14 21:39:40.061563"], ["limit_to_users", nil], ["title", "Test title"], ["updated_at", "2015-03-14 21:39:40.061563"]]
39610
+  (0.4ms) RELEASE SAVEPOINT active_record_1
39611
+  (0.5ms) rollback transaction
39612
+  (0.3ms) begin transaction
39613
+  (0.1ms) SAVEPOINT active_record_1
39614
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
39615
+  (0.1ms) rollback transaction
39616
+  (0.1ms) begin transaction
39617
+  (0.1ms) SAVEPOINT active_record_1
39618
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:40.080604"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:40.080604"]]
39619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39620
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
39621
+ Parameters: {"id"=>"1"}
39622
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
39623
+ Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
39624
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39625
+  (1.1ms) rollback transaction
39626
+  (0.1ms) begin transaction
39627
+  (0.1ms) rollback transaction
39628
+  (0.1ms) begin transaction
39629
+  (0.1ms) SAVEPOINT active_record_1
39630
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:40.179462"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:40.179462"]]
39631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39632
+  (0.1ms) SAVEPOINT active_record_1
39633
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2015-03-14 21:39:40.182548"], ["limit_to_users", nil], ["updated_at", "2015-03-14 21:39:40.182548"]]
39634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39635
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
39636
+ Parameters: {"id"=>"1"}
39637
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
39638
+ Starburst::AnnouncementView Load (0.2ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" WHERE "starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 1 ORDER BY "starburst_announcement_views"."id" ASC LIMIT 1
39639
+  (0.1ms) SAVEPOINT active_record_1
39640
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 1) LIMIT 1
39641
+ SQL (0.2ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2015-03-14 21:39:40.199882"], ["updated_at", "2015-03-14 21:39:40.199882"], ["user_id", 10]]
39642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39643
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 0.7ms)
39644
+ Starburst::AnnouncementView Load (0.2ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
39645
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39646
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
39647
+ Parameters: {"id"=>"2"}
39648
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 2]]
39649
+ Starburst::AnnouncementView Load (0.2ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" WHERE "starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 2 ORDER BY "starburst_announcement_views"."id" ASC LIMIT 1
39650
+  (0.1ms) SAVEPOINT active_record_1
39651
+ Starburst::AnnouncementView Exists (0.1ms) SELECT 1 AS one FROM "starburst_announcement_views" WHERE ("starburst_announcement_views"."user_id" = 10 AND "starburst_announcement_views"."announcement_id" = 2) LIMIT 1
39652
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 2], ["created_at", "2015-03-14 21:39:40.209737"], ["updated_at", "2015-03-14 21:39:40.209737"], ["user_id", 10]]
39653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39654
+ Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms)
39655
+ Starburst::AnnouncementView Load (0.2ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
39656
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
39657
+  (0.6ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starburst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-11 00:00:00.000000000 Z
11
+ date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails