social_networking 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af981a22a286ff396ca577f71effc36df7860453
4
- data.tar.gz: 32ee94687c01ab93310b50b4e5d801d6ba005f94
3
+ metadata.gz: d9f4f69260dc950485f417215ec768ac263a9964
4
+ data.tar.gz: 10bc4bef7fd1224d8268fb0b425161d8c4f77314
5
5
  SHA512:
6
- metadata.gz: 2f27a4e50b342a84b8109a7b9aff4ad9e14f5a3d0977c23486a79d97a4f36f0c3869fca1058b0eba9f89e2d0f4a16c58abdd7e2e1b011d5e0b953fc2ba425c2a
7
- data.tar.gz: f8f7c3190a0662a1c33ee035335a977cf9aa9217aeeec373c437ff16909abed674b1b41b3ba7adfca157c93e15c7b57f46fcfb2e6205943cfcb5e15b685925b6
6
+ metadata.gz: cd8f94cd86e1a7b5257c7b652a1011ab56324c6f3eb1c170ffa7669463a8ac7745768ac1d8019ba8e097b783c1254161e8b6d3347b5b9c382b2cfadf10f150a5
7
+ data.tar.gz: 0d0662141384b23b51eb56762dec9c059830b592e1315761558176c2646149cb2b5fea0488b4bfe0ad6990eb542d5b151fad8ce86d5495c4255c8babfce9b2b9
@@ -5,7 +5,7 @@ module SocialNetworking
5
5
  # Displays feed data for profile page.
6
6
  class Feed
7
7
  attr_reader :participant_id, :page
8
- SHARED_ITEM_PAGE_SIZE = 5
8
+ SHARED_ITEM_PAGE_SIZE = 10
9
9
 
10
10
  def initialize(participant_id:, page:)
11
11
  @participant_id = participant_id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # nodoc
3
3
  module SocialNetworking
4
- VERSION = "0.13.0"
4
+ VERSION = "0.13.1"
5
5
  end
@@ -15,34 +15,27 @@ module SocialNetworking
15
15
  page: page).page_items
16
16
  end
17
17
 
18
- describe "when feed items exist" do
18
+ describe "when 12 feed items exist" do
19
19
  before do
20
- allow(Serializers::NudgeSerializer)
21
- .to receive(:from_collection)
22
- .and_return([
23
- { createdAtRaw: "" },
24
- { createdAtRaw: "" }
25
- ])
26
- allow(Serializers::OnTheMindStatementSerializer)
27
- .to receive(:from_collection)
28
- .and_return([
29
- { createdAtRaw: "" },
30
- { createdAtRaw: "" }
31
- ])
32
- allow(Serializers::SharedItemSerializer)
33
- .to receive(:from_collection)
34
- .and_return([
35
- { createdAtRaw: "" },
36
- { createdAtRaw: "" }
37
- ])
20
+ %w(
21
+ NudgeSerializer
22
+ OnTheMindStatementSerializer
23
+ SharedItemSerializer
24
+ ).each do |klass|
25
+ allow("SocialNetworking::Serializers::#{klass}".constantize)
26
+ .to receive(:from_collection)
27
+ .and_return([{ createdAtRaw: "" }] * 4)
28
+ end
38
29
  end
39
30
 
40
- it "returns only 5 items on first request" do
41
- expect(items(0).count).to eq 5
31
+ it "returns 10 items on first request" do
32
+ expect(items(0).count)
33
+ .to eq 10
42
34
  end
43
35
 
44
- it "returns the next item(s) on second request" do
45
- expect(items(1).count).to eq 1
36
+ it "returns the next 2 item(s) on second request" do
37
+ expect(items(1).count)
38
+ .to eq 2
46
39
  end
47
40
  end
48
41
 
@@ -205030,3 +205030,484 @@ Processing by SocialNetworking::SharedItemController#hide as HTML
205030
205030
  Rendered text template (0.0ms)
205031
205031
  Completed 202 Accepted in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
205032
205032
   (0.2ms) ROLLBACK
205033
+  (0.1ms) BEGIN
205034
+  (2.2ms) ROLLBACK
205035
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
205036
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
205037
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
205038
+ Migrating to CreateParticipants (1)
205039
+  (0.1ms) BEGIN
205040
+  (20.6ms) CREATE TABLE "participants" ("id" serial primary key, "email" character varying) 
205041
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "1"]]
205042
+  (0.7ms) COMMIT
205043
+ Migrating to AddParticipantFields (2)
205044
+  (6.0ms) BEGIN
205045
+  (0.5ms) ALTER TABLE "participants" ADD "phone_number" character varying
205046
+  (0.3ms) ALTER TABLE "participants" ADD "contact_preference" character varying
205047
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "2"]]
205048
+  (6.1ms) COMMIT
205049
+ Migrating to CreateArms (3)
205050
+  (0.1ms) BEGIN
205051
+  (14.5ms) CREATE TABLE "arms" ("id" serial primary key, "title" character varying DEFAULT '', "is_social" boolean DEFAULT 'f')
205052
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "3"]]
205053
+  (6.2ms) COMMIT
205054
+ Migrating to AddNullFalseToArms (5)
205055
+  (6.8ms) BEGIN
205056
+  (0.5ms) ALTER TABLE "arms" ALTER "title" SET NOT NULL
205057
+  (0.3ms) ALTER TABLE "arms" ALTER "is_social" SET NOT NULL
205058
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "5"]]
205059
+  (6.1ms) COMMIT
205060
+ Migrating to AddHasWozToArm (6)
205061
+  (0.2ms) BEGIN
205062
+  (15.8ms) ALTER TABLE "arms" ADD "has_woz" boolean DEFAULT 'f'
205063
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "6"]]
205064
+  (6.6ms) COMMIT
205065
+ Migrating to AddStudyidToParticipant (8)
205066
+  (0.2ms) BEGIN
205067
+  (0.3ms) ALTER TABLE "participants" ADD "study_id" character varying
205068
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "8"]]
205069
+  (5.6ms) COMMIT
205070
+ Migrating to CreateSocialNetworkingNudges (20140827154926)
205071
+  (0.2ms) BEGIN
205072
+  (8.1ms) CREATE TABLE "social_networking_nudges" ("id" serial primary key, "initiator_id" integer NOT NULL, "recipient_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
205073
+  (1.8ms) ALTER TABLE social_networking_nudges
205074
+ ADD CONSTRAINT fk_nudges_initiators
205075
+ FOREIGN KEY (initiator_id)
205076
+ REFERENCES participants(id)
205077
+
205078
+  (0.8ms)  ALTER TABLE social_networking_nudges
205079
+ ADD CONSTRAINT fk_nudges_recipients
205080
+ FOREIGN KEY (recipient_id)
205081
+ REFERENCES participants(id)
205082
+ 
205083
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140827154926"]]
205084
+  (6.3ms) COMMIT
205085
+ Migrating to CreateSocialNetworkingLikes (20140827154939)
205086
+  (5.9ms) BEGIN
205087
+  (15.7ms) CREATE TABLE "social_networking_likes" ("id" serial primary key, "participant_id" integer NOT NULL, "item_id" integer NOT NULL, "item_type" character varying NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
205088
+  (2.6ms) ALTER TABLE social_networking_likes
205089
+ ADD CONSTRAINT fk_likes_participants
205090
+ FOREIGN KEY (participant_id)
205091
+ REFERENCES participants(id)
205092
+
205093
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140827154939"]]
205094
+  (0.6ms) COMMIT
205095
+ Migrating to CreateSocialNetworkingComments (20140827154953)
205096
+  (5.7ms) BEGIN
205097
+  (14.5ms) CREATE TABLE "social_networking_comments" ("id" serial primary key, "participant_id" integer NOT NULL, "text" character varying NOT NULL, "item_id" integer NOT NULL, "item_type" character varying NOT NULL, "created_at" timestamp, "updated_at" timestamp)
205098
+  (1.1ms)  ALTER TABLE social_networking_comments
205099
+ ADD CONSTRAINT fk_comments_participants
205100
+ FOREIGN KEY (participant_id)
205101
+ REFERENCES participants(id)
205102
+ 
205103
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140827154953"]]
205104
+  (0.5ms) COMMIT
205105
+ Migrating to CreateSocialNetworkingGoals (20140904201719)
205106
+  (6.0ms) BEGIN
205107
+  (16.7ms) CREATE TABLE "social_networking_goals" ("id" serial primary key, "description" character varying NOT NULL, "participant_id" integer NOT NULL, "is_completed" boolean DEFAULT 'f' NOT NULL, "is_deleted" boolean DEFAULT 'f' NOT NULL, "due_on" date, "created_at" timestamp, "updated_at" timestamp) 
205108
+  (1.0ms) ALTER TABLE social_networking_goals
205109
+ ADD CONSTRAINT fk_goals_participants
205110
+ FOREIGN KEY (participant_id)
205111
+ REFERENCES participants(id)
205112
+
205113
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140904201719"]]
205114
+  (0.5ms) COMMIT
205115
+ Migrating to CreateSocialNetworkingSharedItems (20140910123000)
205116
+  (5.9ms) BEGIN
205117
+  (15.1ms) CREATE TABLE "social_networking_shared_items" ("id" serial primary key, "participant_id" integer NOT NULL, "item_id" integer NOT NULL, "item_type" character varying NOT NULL, "created_at" timestamp, "updated_at" timestamp)
205118
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140910123000"]]
205119
+  (0.6ms) COMMIT
205120
+ Migrating to CreateSocialNetworkingOnTheMindStatements (20140911193832)
205121
+  (5.9ms) BEGIN
205122
+  (16.4ms) CREATE TABLE "social_networking_on_the_mind_statements" ("id" serial primary key, "description" text NOT NULL, "participant_id" integer NOT NULL, "created_at" timestamp, "updated_at" timestamp)
205123
+  (0.9ms)  ALTER TABLE social_networking_on_the_mind_statements
205124
+ ADD CONSTRAINT fk_on_the_mind_participants
205125
+ FOREIGN KEY (participant_id)
205126
+ REFERENCES participants(id)
205127
+ 
205128
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140911193832"]]
205129
+  (0.5ms) COMMIT
205130
+ Migrating to CreateSocialNetworkingProfiles (20140915185648)
205131
+  (5.5ms) BEGIN
205132
+  (7.9ms) CREATE TABLE "social_networking_profiles" ("id" serial primary key, "participant_id" integer NOT NULL, "active" boolean NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
205133
+  (1.1ms) ALTER TABLE social_networking_profiles
205134
+ ADD CONSTRAINT fk_profiles_participants
205135
+ FOREIGN KEY (participant_id)
205136
+ REFERENCES participants(id)
205137
+
205138
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140915185648"]]
205139
+  (5.6ms) COMMIT
205140
+ Migrating to CreateSocialNetworkingProfileQuestions (20140915190627)
205141
+  (6.0ms) BEGIN
205142
+  (17.2ms) CREATE TABLE "social_networking_profile_questions" ("id" serial primary key, "order" integer, "allowed_responses" integer DEFAULT 1 NOT NULL, "question_text" character varying NOT NULL, "deleted" boolean NOT NULL, "created_at" timestamp, "updated_at" timestamp)
205143
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140915190627"]]
205144
+  (0.5ms) COMMIT
205145
+ Migrating to CreateSocialNetworkingProfileAnswers (20140915190633)
205146
+  (6.0ms) BEGIN
205147
+  (14.2ms) CREATE TABLE "social_networking_profile_answers" ("id" serial primary key, "social_networking_profile_question_id" integer NOT NULL, "order" integer, "answer_text" character varying NOT NULL, "created_at" timestamp, "updated_at" timestamp)
205148
+  (1.1ms)  ALTER TABLE social_networking_profile_answers
205149
+ ADD CONSTRAINT fk_profile_answers_profile_questions
205150
+ FOREIGN KEY (social_networking_profile_question_id)
205151
+ REFERENCES social_networking_profile_questions(id)
205152
+ 
205153
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140915190633"]]
205154
+  (0.5ms) COMMIT
205155
+ Migrating to AddProfileToSocialNetworkingProfileAnswers (20140916163621)
205156
+  (5.9ms) BEGIN
205157
+  (0.3ms) ALTER TABLE "social_networking_profile_answers" ADD "social_networking_profile_id" integer
205158
+  (1.0ms) ALTER TABLE social_networking_profile_answers
205159
+ ADD CONSTRAINT fk_profile_answers_profiles
205160
+ FOREIGN KEY (social_networking_profile_id)
205161
+ REFERENCES social_networking_profiles(id)
205162
+
205163
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140916163621"]]
205164
+  (6.6ms) COMMIT
205165
+ Migrating to PopulateProfilesForExistingParticipants (20140917151905)
205166
+  (0.2ms) BEGIN
205167
+ Participant Load (0.4ms) SELECT "participants".* FROM "participants"
205168
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140917151905"]]
205169
+  (5.9ms) COMMIT
205170
+ Migrating to AddUniqueConstraintToProfileAnswers (20140930141007)
205171
+  (0.1ms) BEGIN
205172
+  (7.3ms) CREATE UNIQUE INDEX "profile_answers_unique" ON "social_networking_profile_answers" ("social_networking_profile_id", "social_networking_profile_question_id")
205173
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140930141007"]]
205174
+  (6.0ms) COMMIT
205175
+ Migrating to DropParticipantIdFromSharedItems (20141001130941)
205176
+  (0.3ms) BEGIN
205177
+  (7.3ms) ALTER TABLE "social_networking_shared_items" DROP "participant_id"
205178
+  (14.7ms) ALTER TABLE "social_networking_shared_items" ADD "is_public" boolean DEFAULT 't' NOT NULL
205179
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141001130941"]]
205180
+  (1.1ms) COMMIT
205181
+ Migrating to AddActionTypeToSharedItems (20141003191233)
205182
+  (0.1ms) BEGIN
205183
+  (14.4ms) ALTER TABLE "social_networking_shared_items" ADD "action_type" character varying DEFAULT '' NOT NULL
205184
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141003191233"]]
205185
+  (6.3ms) COMMIT
205186
+ Migrating to AddItemLabelToSharedItems (20141006200325)
205187
+  (0.2ms) BEGIN
205188
+  (0.3ms) ALTER TABLE "social_networking_shared_items" ADD "item_label" character varying
205189
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141006200325"]]
205190
+  (5.7ms) COMMIT
205191
+ Migrating to AddUniquenessConstraintToLikes (20141007141541)
205192
+  (0.1ms) BEGIN
205193
+  (6.9ms) CREATE UNIQUE INDEX "one_like_per_item" ON "social_networking_likes" ("participant_id", "item_id", "item_type")
205194
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141007141541"]]
205195
+  (5.9ms) COMMIT
205196
+ Migrating to AddIconNameToProfiles (20141008150325)
205197
+  (0.1ms) BEGIN
205198
+  (10.7ms) ALTER TABLE "social_networking_profiles" ADD "icon_name" character varying
205199
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141008150325"]]
205200
+  (6.2ms) COMMIT
205201
+ Migrating to RemoveUnusedProfileQuestionColumns (20141015222822)
205202
+  (0.2ms) BEGIN
205203
+  (0.3ms) ALTER TABLE "social_networking_profile_questions" DROP "order"
205204
+  (0.3ms) ALTER TABLE "social_networking_profile_questions" DROP "allowed_responses"
205205
+  (0.2ms) ALTER TABLE "social_networking_profile_questions" DROP "deleted"
205206
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141015222822"]]
205207
+  (6.0ms) COMMIT
205208
+ Migrating to SeedProfileQuestions (20141016015415)
205209
+  (0.1ms) BEGIN
205210
+ SQL (0.4ms) INSERT INTO "social_networking_profile_questions" ("question_text", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["question_text", "What are your favorite hobbies?"], ["created_at", "2016-06-10 20:40:08.899054"], ["updated_at", "2016-06-10 20:40:08.899054"]]
205211
+ SQL (0.2ms) INSERT INTO "social_networking_profile_questions" ("question_text", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["question_text", "What are some thing you do to help yourself feel better?"], ["created_at", "2016-06-10 20:40:08.901027"], ["updated_at", "2016-06-10 20:40:08.901027"]]
205212
+ SQL (0.2ms) INSERT INTO "social_networking_profile_questions" ("question_text", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["question_text", "How do you relax after a long day?"], ["created_at", "2016-06-10 20:40:08.902162"], ["updated_at", "2016-06-10 20:40:08.902162"]]
205213
+ SQL (0.4ms) INSERT INTO "social_networking_profile_questions" ("question_text", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["question_text", "What are 2-3 words you would use to describe yourself?"], ["created_at", "2016-06-10 20:40:08.903664"], ["updated_at", "2016-06-10 20:40:08.903664"]]
205214
+ SQL (0.4ms) INSERT INTO "social_networking_profile_questions" ("question_text", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["question_text", "What's your favorite form of entertainment? (Share your favorite book, movie or tv show!)"], ["created_at", "2016-06-10 20:40:08.905612"], ["updated_at", "2016-06-10 20:40:08.905612"]]
205215
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141016015415"]]
205216
+  (5.6ms) COMMIT
205217
+ Migrating to RemoveActiveFromProfiles (20141016164443)
205218
+  (0.2ms) BEGIN
205219
+  (0.3ms) ALTER TABLE "social_networking_profiles" DROP "active"
205220
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141016164443"]]
205221
+  (6.1ms) COMMIT
205222
+ Migrating to AddActiveToProfiles (20141106102625)
205223
+  (0.1ms) BEGIN
205224
+  (0.3ms) ALTER TABLE "social_networking_profiles" ADD "active" boolean
205225
+ SQL (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141106102625"]]
205226
+  (6.1ms) COMMIT
205227
+ Migrating to SeedActiveFieldOfProfiles (20141106104713)
205228
+  (0.1ms) BEGIN
205229
+ SocialNetworking::Profile Load (0.4ms) SELECT "social_networking_profiles".* FROM "social_networking_profiles"
205230
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141106104713"]]
205231
+  (6.2ms) COMMIT
205232
+ Migrating to AddParticipantIdToSocialNetworkingSharedItems (20141223203142)
205233
+  (0.5ms) BEGIN
205234
+  (0.7ms) ALTER TABLE "social_networking_shared_items" ADD "participant_id" integer
205235
+  (7.5ms) CREATE INDEX "index_social_networking_shared_items_on_participant_id" ON "social_networking_shared_items" ("participant_id")
205236
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141223203142"]]
205237
+  (6.1ms) COMMIT
205238
+ Migrating to AddParticipantIdToSocialNetworkingSharedItemsDataMigration (20141223203721)
205239
+  (0.1ms) BEGIN
205240
+ SocialNetworking::SharedItem Load (0.5ms) SELECT "social_networking_shared_items".* FROM "social_networking_shared_items" WHERE "social_networking_shared_items"."participant_id" IS NULL
205241
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141223203721"]]
205242
+  (5.8ms) COMMIT
205243
+ Migrating to CreateActivities (20150309210518)
205244
+  (0.1ms) BEGIN
205245
+  (8.2ms) CREATE TABLE "activities" ("id" serial primary key, "participant_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
205246
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150309210518"]]
205247
+  (6.1ms) COMMIT
205248
+ Migrating to AddCompletedAtToGoals (20150317173959)
205249
+  (5.8ms) BEGIN
205250
+  (0.3ms) ALTER TABLE "social_networking_goals" ADD "completed_at" timestamp
205251
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317173959"]]
205252
+  (5.9ms) COMMIT
205253
+ Migrating to PopulateCompletedAtInGoals (20150317174425)
205254
+  (0.1ms) BEGIN
205255
+ SocialNetworking::Goal Load (0.4ms) SELECT "social_networking_goals".* FROM "social_networking_goals"
205256
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317174425"]]
205257
+  (8.1ms) COMMIT
205258
+ Migrating to RemoveIsCompletedFromGoals (20150317180057)
205259
+  (0.2ms) BEGIN
205260
+  (0.5ms) ALTER TABLE "social_networking_goals" DROP "is_completed"
205261
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150317180057"]]
205262
+  (6.1ms) COMMIT
205263
+ Migrating to AddDeletedAtToSocialNetworkingGoals (20150318133032)
205264
+  (0.1ms) BEGIN
205265
+  (0.4ms) ALTER TABLE "social_networking_goals" ADD "deleted_at" timestamp
205266
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150318133032"]]
205267
+  (6.1ms) COMMIT
205268
+ Migrating to PopulateDeletedAtInSocialNetworkingGoals (20150318133127)
205269
+  (0.1ms) BEGIN
205270
+ SocialNetworking::Goal Load (0.3ms) SELECT "social_networking_goals".* FROM "social_networking_goals"
205271
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150318133127"]]
205272
+  (6.1ms) COMMIT
205273
+ Migrating to RemoveIsDeletedFromSocialNetworkingGoals (20150318133353)
205274
+  (0.2ms) BEGIN
205275
+  (0.4ms) ALTER TABLE "social_networking_goals" DROP "is_deleted"
205276
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150318133353"]]
205277
+  (6.1ms) COMMIT
205278
+ Migrating to AddIndexToCommentItemsAndItemTypes (20150327143224)
205279
+  (0.3ms) BEGIN
205280
+  (8.2ms) CREATE INDEX "index_social_networking_comments_on_item_id_and_item_type" ON "social_networking_comments" ("item_id", "item_type")
205281
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327143224"]]
205282
+  (6.1ms) COMMIT
205283
+ Migrating to AddIndexToLikeItemIdAndItemTypes (20150327143244)
205284
+  (0.1ms) BEGIN
205285
+  (7.0ms) CREATE INDEX "index_social_networking_likes_on_item_id_and_item_type" ON "social_networking_likes" ("item_id", "item_type")
205286
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327143244"]]
205287
+  (6.2ms) COMMIT
205288
+ Migrating to AddIndicesToOnTheMindStatements (20150327185721)
205289
+  (0.1ms) BEGIN
205290
+  (8.6ms) CREATE INDEX "on_the_mind_participant" ON "social_networking_on_the_mind_statements" ("participant_id")
205291
+  (6.7ms) CREATE INDEX "on_the_mind_created_at" ON "social_networking_on_the_mind_statements" ("created_at")
205292
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327185721"]]
205293
+  (4.7ms) COMMIT
205294
+ Migrating to AddIndicesToNudges (20150327185856)
205295
+  (0.2ms) BEGIN
205296
+  (6.4ms) CREATE INDEX "index_social_networking_nudges_on_initiator_id" ON "social_networking_nudges" ("initiator_id")
205297
+  (6.3ms) CREATE INDEX "index_social_networking_nudges_on_recipient_id" ON "social_networking_nudges" ("recipient_id")
205298
+  (5.4ms) CREATE INDEX "index_social_networking_nudges_on_created_at" ON "social_networking_nudges" ("created_at")
205299
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327185856"]]
205300
+  (0.3ms) COMMIT
205301
+ Migrating to AddIndicesToSharedItems (20150327185919)
205302
+  (0.1ms) BEGIN
205303
+  (6.6ms) CREATE INDEX "index_social_networking_shared_items_on_created_at" ON "social_networking_shared_items" ("created_at")
205304
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150327185919"]]
205305
+  (6.1ms) COMMIT
205306
+ Migrating to ChangeColumnDefaultSocialNetworkingProfilesActiveToFalse (20151211204425)
205307
+  (0.2ms) BEGIN
205308
+  (0.5ms) ALTER TABLE "social_networking_profiles" ALTER COLUMN "active" SET DEFAULT 'f'
205309
+ SocialNetworking::Profile Load (0.4ms) SELECT "social_networking_profiles".* FROM "social_networking_profiles" WHERE "social_networking_profiles"."active" IS NULL
205310
+  (0.3ms) ALTER TABLE "social_networking_profiles" ALTER "active" SET NOT NULL
205311
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151211204425"]]
205312
+  (6.2ms) COMMIT
205313
+ Migrating to ChangeOnTheMindStatementsProfileAnswersCommentsTextLength (20160308201931)
205314
+  (0.3ms) BEGIN
205315
+  (21.0ms) ALTER TABLE "social_networking_comments" ALTER COLUMN "text" TYPE character varying(1000)
205316
+  (3.5ms) ALTER TABLE "social_networking_goals" ALTER COLUMN "description" TYPE character varying(1000)
205317
+  (4.1ms) ALTER TABLE "social_networking_on_the_mind_statements" ALTER COLUMN "description" TYPE character varying(1000)
205318
+  (3.8ms) ALTER TABLE "social_networking_profile_answers" ALTER COLUMN "answer_text" TYPE character varying(1000)
205319
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160308201931"]]
205320
+  (2.6ms) COMMIT
205321
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
205322
+  (2.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205323
+ FROM pg_constraint c
205324
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205325
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205326
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205327
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205328
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205329
+ WHERE c.contype = 'f'
205330
+ AND t1.relname = 'activities'
205331
+ AND t3.nspname = ANY (current_schemas(false))
205332
+ ORDER BY c.conname
205333
+
205334
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205335
+ FROM pg_constraint c
205336
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205337
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205338
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205339
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205340
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205341
+ WHERE c.contype = 'f'
205342
+ AND t1.relname = 'arms'
205343
+ AND t3.nspname = ANY (current_schemas(false))
205344
+ ORDER BY c.conname
205345
+ 
205346
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205347
+ FROM pg_constraint c
205348
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205349
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205350
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205351
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205352
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205353
+ WHERE c.contype = 'f'
205354
+ AND t1.relname = 'participants'
205355
+ AND t3.nspname = ANY (current_schemas(false))
205356
+ ORDER BY c.conname
205357
+
205358
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205359
+ FROM pg_constraint c
205360
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205361
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205362
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205363
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205364
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205365
+ WHERE c.contype = 'f'
205366
+ AND t1.relname = 'social_networking_comments'
205367
+ AND t3.nspname = ANY (current_schemas(false))
205368
+ ORDER BY c.conname
205369
+ 
205370
+  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205371
+ FROM pg_constraint c
205372
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205373
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205374
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205375
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205376
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205377
+ WHERE c.contype = 'f'
205378
+ AND t1.relname = 'social_networking_goals'
205379
+ AND t3.nspname = ANY (current_schemas(false))
205380
+ ORDER BY c.conname
205381
+
205382
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205383
+ FROM pg_constraint c
205384
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205385
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205386
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205387
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205388
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205389
+ WHERE c.contype = 'f'
205390
+ AND t1.relname = 'social_networking_likes'
205391
+ AND t3.nspname = ANY (current_schemas(false))
205392
+ ORDER BY c.conname
205393
+ 
205394
+  (3.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205395
+ FROM pg_constraint c
205396
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205397
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205398
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205399
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205400
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205401
+ WHERE c.contype = 'f'
205402
+ AND t1.relname = 'social_networking_nudges'
205403
+ AND t3.nspname = ANY (current_schemas(false))
205404
+ ORDER BY c.conname
205405
+
205406
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205407
+ FROM pg_constraint c
205408
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205409
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205410
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205411
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205412
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205413
+ WHERE c.contype = 'f'
205414
+ AND t1.relname = 'social_networking_on_the_mind_statements'
205415
+ AND t3.nspname = ANY (current_schemas(false))
205416
+ ORDER BY c.conname
205417
+ 
205418
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205419
+ FROM pg_constraint c
205420
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205421
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205422
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205423
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205424
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205425
+ WHERE c.contype = 'f'
205426
+ AND t1.relname = 'social_networking_profile_answers'
205427
+ AND t3.nspname = ANY (current_schemas(false))
205428
+ ORDER BY c.conname
205429
+
205430
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205431
+ FROM pg_constraint c
205432
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205433
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205434
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205435
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205436
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205437
+ WHERE c.contype = 'f'
205438
+ AND t1.relname = 'social_networking_profile_questions'
205439
+ AND t3.nspname = ANY (current_schemas(false))
205440
+ ORDER BY c.conname
205441
+ 
205442
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205443
+ FROM pg_constraint c
205444
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205445
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205446
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205447
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205448
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205449
+ WHERE c.contype = 'f'
205450
+ AND t1.relname = 'social_networking_profiles'
205451
+ AND t3.nspname = ANY (current_schemas(false))
205452
+ ORDER BY c.conname
205453
+
205454
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205455
+ FROM pg_constraint c
205456
+ JOIN pg_class t1 ON c.conrelid = t1.oid
205457
+ JOIN pg_class t2 ON c.confrelid = t2.oid
205458
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
205459
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
205460
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
205461
+ WHERE c.contype = 'f'
205462
+ AND t1.relname = 'social_networking_shared_items'
205463
+ AND t3.nspname = ANY (current_schemas(false))
205464
+ ORDER BY c.conname
205465
+ 
205466
+  (0.1ms) BEGIN
205467
+  (0.3ms) ROLLBACK
205468
+  (0.1ms) BEGIN
205469
+  (0.4ms) ROLLBACK
205470
+  (0.1ms) BEGIN
205471
+  (0.2ms) ROLLBACK
205472
+  (0.2ms) BEGIN
205473
+  (0.3ms) ROLLBACK
205474
+  (0.1ms) BEGIN
205475
+  (0.4ms) ROLLBACK
205476
+  (0.1ms) BEGIN
205477
+  (0.3ms) ROLLBACK
205478
+  (0.1ms) BEGIN
205479
+  (0.3ms) ROLLBACK
205480
+  (0.1ms) BEGIN
205481
+  (0.2ms) ROLLBACK
205482
+  (0.2ms) BEGIN
205483
+  (0.2ms) ROLLBACK
205484
+  (0.1ms) BEGIN
205485
+  (0.3ms) ROLLBACK
205486
+  (0.1ms) BEGIN
205487
+  (0.5ms) ROLLBACK
205488
+  (0.1ms) BEGIN
205489
+  (0.2ms) ROLLBACK
205490
+  (0.1ms) BEGIN
205491
+  (0.2ms) ROLLBACK
205492
+  (0.1ms) BEGIN
205493
+  (0.2ms) ROLLBACK
205494
+  (0.1ms) BEGIN
205495
+ SocialNetworking::OnTheMindStatement Load (0.9ms) SELECT "social_networking_on_the_mind_statements".* FROM "social_networking_on_the_mind_statements" WHERE "social_networking_on_the_mind_statements"."participant_id" = $1 ORDER BY "social_networking_on_the_mind_statements"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205496
+ SocialNetworking::Nudge Load (0.6ms) SELECT "social_networking_nudges".* FROM "social_networking_nudges" WHERE "social_networking_nudges"."initiator_id" = $1 ORDER BY "social_networking_nudges"."created_at" DESC LIMIT 10 [["initiator_id", 1]]
205497
+ SocialNetworking::SharedItem Load (0.6ms) SELECT "social_networking_shared_items".* FROM "social_networking_shared_items" INNER JOIN "participants" ON "participants"."id" = "social_networking_shared_items"."participant_id" WHERE "social_networking_shared_items"."participant_id" = $1 ORDER BY "social_networking_shared_items"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205498
+ SocialNetworking::OnTheMindStatement Load (0.2ms) SELECT "social_networking_on_the_mind_statements".* FROM "social_networking_on_the_mind_statements" WHERE "social_networking_on_the_mind_statements"."participant_id" = $1 ORDER BY "social_networking_on_the_mind_statements"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205499
+ SocialNetworking::Nudge Load (0.2ms) SELECT "social_networking_nudges".* FROM "social_networking_nudges" WHERE "social_networking_nudges"."initiator_id" = $1 ORDER BY "social_networking_nudges"."created_at" DESC LIMIT 10 [["initiator_id", 1]]
205500
+ SocialNetworking::SharedItem Load (0.2ms) SELECT "social_networking_shared_items".* FROM "social_networking_shared_items" INNER JOIN "participants" ON "participants"."id" = "social_networking_shared_items"."participant_id" WHERE "social_networking_shared_items"."participant_id" = $1 ORDER BY "social_networking_shared_items"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205501
+  (0.2ms) ROLLBACK
205502
+  (0.1ms) BEGIN
205503
+ SocialNetworking::OnTheMindStatement Load (0.5ms) SELECT "social_networking_on_the_mind_statements".* FROM "social_networking_on_the_mind_statements" WHERE "social_networking_on_the_mind_statements"."participant_id" = $1 ORDER BY "social_networking_on_the_mind_statements"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205504
+ SocialNetworking::Nudge Load (0.4ms) SELECT "social_networking_nudges".* FROM "social_networking_nudges" WHERE "social_networking_nudges"."initiator_id" = $1 ORDER BY "social_networking_nudges"."created_at" DESC LIMIT 10 [["initiator_id", 1]]
205505
+ SocialNetworking::SharedItem Load (0.6ms) SELECT "social_networking_shared_items".* FROM "social_networking_shared_items" INNER JOIN "participants" ON "participants"."id" = "social_networking_shared_items"."participant_id" WHERE "social_networking_shared_items"."participant_id" = $1 ORDER BY "social_networking_shared_items"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205506
+ SocialNetworking::OnTheMindStatement Load (0.2ms) SELECT "social_networking_on_the_mind_statements".* FROM "social_networking_on_the_mind_statements" WHERE "social_networking_on_the_mind_statements"."participant_id" = $1 ORDER BY "social_networking_on_the_mind_statements"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205507
+ SocialNetworking::Nudge Load (0.2ms) SELECT "social_networking_nudges".* FROM "social_networking_nudges" WHERE "social_networking_nudges"."initiator_id" = $1 ORDER BY "social_networking_nudges"."created_at" DESC LIMIT 10 [["initiator_id", 1]]
205508
+ SocialNetworking::SharedItem Load (0.2ms) SELECT "social_networking_shared_items".* FROM "social_networking_shared_items" INNER JOIN "participants" ON "participants"."id" = "social_networking_shared_items"."participant_id" WHERE "social_networking_shared_items"."participant_id" = $1 ORDER BY "social_networking_shared_items"."created_at" DESC LIMIT 10 [["participant_id", 1]]
205509
+  (0.1ms) ROLLBACK
205510
+  (0.1ms) BEGIN
205511
+  (0.2ms) ROLLBACK
205512
+  (0.2ms) BEGIN
205513
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_networking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Carty-Fickes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-06-10 00:00:00.000000000 Z
13
+ date: 2016-06-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jquery-rails