starburst 0.9.2 → 0.9.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: c5373cdd4b673c3f72d6f1031aa56539e1df9395
4
- data.tar.gz: 57a203a52c6e07d08b1e8b8ffef4612f238d99d3
3
+ metadata.gz: c0dc55f572606e4a1aa369135892152c2a9feb21
4
+ data.tar.gz: f81f93e89f04b2c1c158e54d4929548867c2bb05
5
5
  SHA512:
6
- metadata.gz: 8ed866287b61381d9eb26c6e6198e590c7e70e1e8b1c20572f809447a2bef52254a9e08c9cf6a1af8293d9bc274ce9eac238c4abe6ff740146d17be8b6552a73
7
- data.tar.gz: dfe1466770c8d3a533225daa89764080037fbf9007f578fce3636c89326e544a2b33bddf8215cc0196ccc0b4ab0b8b7f5257c56d079f75927492c57de40e8766
6
+ metadata.gz: 049766a7be19850cbeffaf52da5ad5cbf4854f86777c25748b686bdf26868093adc15097a3cb4ab07ed93bdabf0c66367c9969d930ddc6c09bb57fe338c5ff4f
7
+ data.tar.gz: 0dc8324a603eba539355af49e3158b10dad12fe384c95352b906249c9d56bd2df7c1c3238999f1c7dba617ec0cf3a8434c6e7f83344a8ec5c5d719849dcf4a03
@@ -1,5 +1,8 @@
1
1
  module Starburst
2
2
  class Announcement < ActiveRecord::Base
3
+
4
+ validates :body, presence: true
5
+
3
6
  serialize :limit_to_users
4
7
 
5
8
  if Rails::VERSION::MAJOR < 4
@@ -18,6 +21,10 @@ module Starburst
18
21
  .where("starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL")
19
22
  }
20
23
 
24
+ scope :in_category, lambda{ |category|
25
+ where("category = ?", category)
26
+ }
27
+
21
28
  scope :in_delivery_order, lambda { order("start_delivering_at ASC")}
22
29
 
23
30
  def self.current(current_user = nil)
@@ -28,6 +35,14 @@ module Starburst
28
35
  end
29
36
  end
30
37
 
38
+ def self.current_for_category(current_user = nil, category)
39
+ if current_user
40
+ find_announcement_for_current_user(ready_for_delivery.unread_by(current_user).in_category(category).in_delivery_order, current_user)
41
+ else
42
+ ready_for_delivery.in_category(category).in_delivery_order.first
43
+ end
44
+ end
45
+
31
46
  def self.find_announcement_for_current_user(announcements, user)
32
47
  user_as_array = user.serializable_hash(methods: Starburst.user_instance_methods)
33
48
  announcements.each do |announcement|
@@ -0,0 +1,5 @@
1
+ class AddCategoryToStarburstAnnouncements < ActiveRecord::Migration
2
+ def change
3
+ add_column :starburst_announcements, :category, :text
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Starburst
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
@@ -1425,3 +1425,22 @@ Migrating to CreateUsers (20141004231338)
1425
1425
   (0.2ms) SELECT version FROM "schema_migrations"
1426
1426
   (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141004231338')
1427
1427
   (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141004214002')
1428
+  (1.9ms) CREATE TABLE "starburst_announcement_views" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "announcement_id" integer, "created_at" datetime, "updated_at" datetime) 
1429
+  (1.0ms) CREATE TABLE "starburst_announcements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text, "body" text, "start_delivering_at" datetime, "stop_delivering_at" datetime, "limit_to_users" text, "created_at" datetime, "updated_at" datetime)
1430
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscription" varchar(255), "created_at" datetime, "updated_at" datetime) 
1431
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1432
+  (0.1ms) select sqlite_version(*)
1433
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1434
+  (0.1ms) SELECT version FROM "schema_migrations"
1435
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141004231338')
1436
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1437
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1438
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1439
+  (1.7ms) CREATE TABLE "starburst_announcement_views" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "announcement_id" integer, "created_at" datetime, "updated_at" datetime) 
1440
+  (0.9ms) CREATE TABLE "starburst_announcements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text, "body" text, "start_delivering_at" datetime, "stop_delivering_at" datetime, "limit_to_users" text, "created_at" datetime, "updated_at" datetime)
1441
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "subscription" varchar(255), "created_at" datetime, "updated_at" datetime) 
1442
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1443
+  (0.1ms) select sqlite_version(*)
1444
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1445
+  (0.1ms) SELECT version FROM "schema_migrations"
1446
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141004231338')
@@ -29846,3 +29846,234 @@ Completed 200 OK in 54ms (Views: 53.7ms | ActiveRecord: 0.0ms)
29846
29846
  SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-10-08 00:45:45.119249"], ["limit_to_users", nil], ["updated_at", "2014-10-08 00:45:45.119249"]]
29847
29847
   (0.0ms) RELEASE SAVEPOINT active_record_1
29848
29848
   (0.3ms) rollback transaction
29849
+  (0.3ms) begin transaction
29850
+  (0.1ms) rollback transaction
29851
+  (0.1ms) begin transaction
29852
+  (0.1ms) rollback transaction
29853
+  (0.1ms) begin transaction
29854
+  (0.0ms) rollback transaction
29855
+  (0.1ms) begin transaction
29856
+  (0.0ms) rollback transaction
29857
+  (0.0ms) begin transaction
29858
+  (0.0ms) rollback transaction
29859
+  (0.0ms) begin transaction
29860
+  (0.0ms) rollback transaction
29861
+  (0.0ms) begin transaction
29862
+  (0.0ms) rollback transaction
29863
+  (0.0ms) begin transaction
29864
+  (0.0ms) rollback transaction
29865
+  (0.1ms) begin transaction
29866
+  (0.0ms) rollback transaction
29867
+  (0.1ms) begin transaction
29868
+  (0.0ms) rollback transaction
29869
+  (0.1ms) begin transaction
29870
+  (0.0ms) rollback transaction
29871
+  (0.1ms) begin transaction
29872
+  (0.0ms) rollback transaction
29873
+  (0.1ms) begin transaction
29874
+  (0.0ms) rollback transaction
29875
+  (0.1ms) begin transaction
29876
+  (0.0ms) rollback transaction
29877
+  (0.1ms) begin transaction
29878
+  (0.0ms) rollback transaction
29879
+  (0.1ms) begin transaction
29880
+  (0.0ms) rollback transaction
29881
+  (0.1ms) begin transaction
29882
+  (0.0ms) rollback transaction
29883
+  (0.1ms) begin transaction
29884
+  (0.0ms) rollback transaction
29885
+  (0.0ms) begin transaction
29886
+  (0.0ms) rollback transaction
29887
+  (0.0ms) begin transaction
29888
+  (0.0ms) rollback transaction
29889
+  (0.4ms) begin transaction
29890
+  (0.1ms) SAVEPOINT active_record_1
29891
+ SQL (0.4ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-11-12 14:03:53.295532"], ["limit_to_users", nil], ["updated_at", "2014-11-12 14:03:53.295532"]]
29892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29893
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
29894
+ Parameters: {"id"=>"1"}
29895
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
29896
+  (0.0ms) SAVEPOINT active_record_1
29897
+ SQL (0.4ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-11-12 14:03:53.317796"], ["updated_at", "2014-11-12 14:03:53.317796"], ["user_id", 10]]
29898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29899
+ Completed 200 OK in 20ms (Views: 0.2ms | ActiveRecord: 1.0ms)
29900
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views" ORDER BY "starburst_announcement_views"."id" DESC LIMIT 1
29901
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
29902
+  (0.6ms) rollback transaction
29903
+  (0.1ms) begin transaction
29904
+  (0.1ms) rollback transaction
29905
+  (0.1ms) begin transaction
29906
+  (0.0ms) SAVEPOINT active_record_1
29907
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "Announcement text"], ["created_at", "2014-11-12 14:03:53.328102"], ["limit_to_users", nil], ["updated_at", "2014-11-12 14:03:53.328102"]]
29908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29909
+ Processing by Starburst::AnnouncementsController#mark_as_read as HTML
29910
+ Parameters: {"id"=>"1"}
29911
+ Starburst::Announcement Load (0.0ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE "starburst_announcements"."id" = ? LIMIT 1 [["id", 1]]
29912
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
29913
+ Starburst::AnnouncementView Load (0.1ms) SELECT "starburst_announcement_views".* FROM "starburst_announcement_views"
29914
+  (0.4ms) rollback transaction
29915
+  (0.1ms) begin transaction
29916
+  (0.0ms) SAVEPOINT active_record_1
29917
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-11-12 14:03:53.334157"], ["limit_to_users", nil], ["updated_at", "2014-11-12 14:03:53.334157"]]
29918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29919
+  (0.4ms) rollback transaction
29920
+  (0.1ms) begin transaction
29921
+  (0.0ms) SAVEPOINT active_record_1
29922
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["body", "This is an announcement."], ["created_at", "2014-11-12 14:03:53.336849"], ["limit_to_users", nil], ["title", "Test title"], ["updated_at", "2014-11-12 14:03:53.336849"]]
29923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29924
+  (0.4ms) rollback transaction
29925
+  (0.1ms) begin transaction
29926
+  (0.1ms) SAVEPOINT active_record_1
29927
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.340107"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-11 14:03:53.339374"], ["updated_at", "2014-11-12 14:03:53.340107"]]
29928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29929
+  (0.0ms) SAVEPOINT active_record_1
29930
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.341385"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-12 14:03:53.341150"], ["updated_at", "2014-11-12 14:03:53.341385"]]
29931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29932
+  (0.1ms) SAVEPOINT active_record_1
29933
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.345858"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.345858"]]
29934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29935
+  (0.0ms) SAVEPOINT active_record_1
29936
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-11-12 14:03:53.347413"], ["updated_at", "2014-11-12 14:03:53.347413"], ["user_id", 1]]
29937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29938
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
29939
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
29940
+ starburst_announcement_views.user_id = 1 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
29941
+  (0.6ms) rollback transaction
29942
+  (0.1ms) begin transaction
29943
+  (0.1ms) SAVEPOINT active_record_1
29944
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.358061"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-11 14:03:53.357330"], ["updated_at", "2014-11-12 14:03:53.358061"]]
29945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29946
+  (0.0ms) SAVEPOINT active_record_1
29947
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.359474"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-12 14:03:53.359160"], ["updated_at", "2014-11-12 14:03:53.359474"]]
29948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29949
+  (0.0ms) SAVEPOINT active_record_1
29950
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.361246"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.361246"]]
29951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29952
+  (0.0ms) SAVEPOINT active_record_1
29953
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-11-12 14:03:53.362492"], ["updated_at", "2014-11-12 14:03:53.362492"], ["user_id", 1]]
29954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29955
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
29956
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
29957
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-11-12 14:03:53.363154' OR start_delivering_at IS NULL)
29958
+ AND (stop_delivering_at > '2014-11-12 14:03:53.363156' 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
29959
+  (0.6ms) rollback transaction
29960
+  (0.1ms) begin transaction
29961
+  (0.1ms) SAVEPOINT active_record_1
29962
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.367164"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-11 14:03:53.365856"], ["updated_at", "2014-11-12 14:03:53.367164"]]
29963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29964
+  (0.0ms) SAVEPOINT active_record_1
29965
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.369264"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-12 14:03:53.368939"], ["updated_at", "2014-11-12 14:03:53.369264"]]
29966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29967
+  (0.0ms) SAVEPOINT active_record_1
29968
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.370610"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.370610"]]
29969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29970
+  (0.0ms) SAVEPOINT active_record_1
29971
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.371435"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.371435"]]
29972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29973
+  (0.0ms) SAVEPOINT active_record_1
29974
+ SQL (0.1ms) INSERT INTO "starburst_announcement_views" ("announcement_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["announcement_id", 1], ["created_at", "2014-11-12 14:03:53.372391"], ["updated_at", "2014-11-12 14:03:53.372391"], ["user_id", 1]]
29975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29976
+ Starburst::Announcement Load (0.3ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
29977
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
29978
+ starburst_announcement_views.user_id = 2 WHERE (starburst_announcement_views.announcement_id IS NULL AND starburst_announcement_views.user_id IS NULL)
29979
+  (0.7ms) rollback transaction
29980
+  (0.1ms) begin transaction
29981
+  (0.0ms) SAVEPOINT active_record_1
29982
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.423837"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n :operator: =\n"], ["updated_at", "2014-11-12 14:03:53.423837"]]
29983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29984
+  (0.4ms) rollback transaction
29985
+  (0.1ms) begin transaction
29986
+  (0.1ms) SAVEPOINT active_record_1
29987
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.428006"], ["limit_to_users", "---\n- :field: free?\n :value: true\n"], ["updated_at", "2014-11-12 14:03:53.428006"]]
29988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29989
+  (0.1ms) SAVEPOINT active_record_1
29990
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.430341"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.430341"]]
29991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29992
+  (0.1ms) SAVEPOINT active_record_1
29993
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.432116"], ["subscription", "monthly"], ["updated_at", "2014-11-12 14:03:53.432116"]]
29994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29995
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
29996
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
29997
+  (0.7ms) rollback transaction
29998
+  (0.1ms) begin transaction
29999
+  (0.1ms) SAVEPOINT active_record_1
30000
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.437152"], ["limit_to_users", "---\n- :field: subscription\n :value: ''\n"], ["updated_at", "2014-11-12 14:03:53.437152"]]
30001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30002
+  (0.0ms) SAVEPOINT active_record_1
30003
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.439436"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.439436"]]
30004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30005
+  (0.0ms) SAVEPOINT active_record_1
30006
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.441061"], ["subscription", "monthly"], ["updated_at", "2014-11-12 14:03:53.441061"]]
30007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30008
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
30009
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements"
30010
+  (0.6ms) rollback transaction
30011
+  (0.1ms) begin transaction
30012
+  (0.1ms) SAVEPOINT active_record_1
30013
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.445183"], ["limit_to_users", nil], ["stop_delivering_at", "2014-11-11 14:03:53.444487"], ["updated_at", "2014-11-12 14:03:53.445183"]]
30014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30015
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-11-12 14:03:53.446589' OR start_delivering_at IS NULL)
30016
+ AND (stop_delivering_at > '2014-11-12 14:03:53.446592' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
30017
+  (0.3ms) rollback transaction
30018
+  (0.1ms) begin transaction
30019
+  (0.1ms) SAVEPOINT active_record_1
30020
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.449117"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-12 14:03:53.448404"], ["stop_delivering_at", "2014-11-13 14:03:53.448405"], ["updated_at", "2014-11-12 14:03:53.449117"]]
30021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30022
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-11-12 14:03:53.450315' OR start_delivering_at IS NULL)
30023
+ AND (stop_delivering_at > '2014-11-12 14:03:53.450318' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
30024
+  (0.4ms) rollback transaction
30025
+  (0.1ms) begin transaction
30026
+  (0.1ms) SAVEPOINT active_record_1
30027
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.453378"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-11 14:03:53.452599"], ["updated_at", "2014-11-12 14:03:53.453378"]]
30028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30029
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-11-12 14:03:53.454622' OR start_delivering_at IS NULL)
30030
+ AND (stop_delivering_at > '2014-11-12 14:03:53.454624' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
30031
+  (0.4ms) rollback transaction
30032
+  (0.1ms) begin transaction
30033
+  (0.1ms) SAVEPOINT active_record_1
30034
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.457630"], ["limit_to_users", nil], ["stop_delivering_at", "2014-11-13 14:03:53.456794"], ["updated_at", "2014-11-12 14:03:53.457630"]]
30035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30036
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-11-12 14:03:53.458934' OR start_delivering_at IS NULL)
30037
+ AND (stop_delivering_at > '2014-11-12 14:03:53.458936' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
30038
+  (0.4ms) rollback transaction
30039
+  (0.1ms) begin transaction
30040
+  (0.1ms) SAVEPOINT active_record_1
30041
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.461632"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-13 14:03:53.460932"], ["updated_at", "2014-11-12 14:03:53.461632"]]
30042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30043
+ Starburst::Announcement Load (0.1ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-11-12 14:03:53.462773' OR start_delivering_at IS NULL)
30044
+ AND (stop_delivering_at > '2014-11-12 14:03:53.462775' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
30045
+  (0.4ms) rollback transaction
30046
+  (0.1ms) begin transaction
30047
+  (0.1ms) SAVEPOINT active_record_1
30048
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("created_at", "limit_to_users", "start_delivering_at", "stop_delivering_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-12 14:03:53.465094"], ["limit_to_users", nil], ["start_delivering_at", "2014-11-12 14:03:53.464489"], ["stop_delivering_at", "2014-11-12 14:03:53.464490"], ["updated_at", "2014-11-12 14:03:53.465094"]]
30049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30050
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" WHERE ((start_delivering_at < '2014-11-12 14:03:53.466324' OR start_delivering_at IS NULL)
30051
+ AND (stop_delivering_at > '2014-11-12 14:03:53.466328' OR stop_delivering_at IS NULL)) ORDER BY start_delivering_at ASC LIMIT 1
30052
+  (0.4ms) rollback transaction
30053
+  (0.1ms) begin transaction
30054
+  (0.1ms) SAVEPOINT active_record_1
30055
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "subscription", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-12 14:03:53.470124"], ["subscription", ""], ["updated_at", "2014-11-12 14:03:53.470124"]]
30056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30057
+  (0.1ms) SAVEPOINT active_record_1
30058
+ SQL (0.3ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-11-12 14:03:53.472394"], ["limit_to_users", nil], ["updated_at", "2014-11-12 14:03:53.472394"]]
30059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30060
+ Started GET "/" for 127.0.0.1 at 2014-11-12 09:03:53 -0500
30061
+ Processing by PagesController#home as HTML
30062
+ Starburst::Announcement Load (0.2ms) SELECT "starburst_announcements".* FROM "starburst_announcements" LEFT JOIN starburst_announcement_views ON
30063
+ starburst_announcement_views.announcement_id = starburst_announcements.id AND
30064
+ starburst_announcement_views.user_id = 1 WHERE ((start_delivering_at < '2014-11-12 14:03:53.500053' OR start_delivering_at IS NULL)
30065
+ AND (stop_delivering_at > '2014-11-12 14:03:53.500056' 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
30066
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (4.4ms)
30067
+ Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.2ms)
30068
+  (0.6ms) rollback transaction
30069
+  (0.1ms) begin transaction
30070
+  (0.0ms) rollback transaction
30071
+  (0.1ms) begin transaction
30072
+  (0.1ms) SAVEPOINT active_record_1
30073
+ SQL (0.2ms) INSERT INTO "starburst_announcements" ("body", "created_at", "limit_to_users", "updated_at") VALUES (?, ?, ?, ?) [["body", "My announcement"], ["created_at", "2014-11-12 14:03:53.520132"], ["limit_to_users", nil], ["updated_at", "2014-11-12 14:03:53.520132"]]
30074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30075
+ Started GET "/" for 127.0.0.1 at 2014-11-12 09:03:53 -0500
30076
+ Processing by PagesController#home as HTML
30077
+ Rendered /Users/coreym/Documents/starburst/app/views/announcements/starburst/_announcement_bootstrap.html.erb (0.3ms)
30078
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
30079
+  (0.5ms) 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: 0.9.2
4
+ version: 0.9.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: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2014-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -115,6 +115,7 @@ files:
115
115
  - app/views/layouts/starburst/application.html.erb
116
116
  - config/routes.rb
117
117
  - db/migrate/20141004214002_create_announcement_tables.rb
118
+ - db/migrate/20141112140703_add_category_to_starburst_announcements.rb
118
119
  - lib/helpers/starburst/configuration.rb
119
120
  - lib/starburst/engine.rb
120
121
  - lib/starburst/version.rb