s3_relay 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3_relay/model.rb +1 -1
- data/lib/s3_relay/version.rb +1 -1
- data/test/dummy/log/test.log +388 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa694688acdc03f3739afa1a34306a1e0df9bb7
|
4
|
+
data.tar.gz: 66b81f80265a47492da962115cc212d8a4d18c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 935aec666d163f9659b1d851bf64c58d456803ebb7eb6c42da34c108afa04ab20cd634e5ceb64d3f653bbd52656320b352bfca401101962e36fdd26aa74fe805
|
7
|
+
data.tar.gz: a323b155a06c29dfd165a7d98290b59d40bf728d8188542a653dd4cdefbf9a8d82583af8b2e1636957546d23dd09ad3bc726cc4a9748b72426131e7f91e227ae
|
data/lib/s3_relay/model.rb
CHANGED
data/lib/s3_relay/version.rb
CHANGED
@@ -0,0 +1,388 @@
|
|
1
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2
|
+
[1m[35m (24.0ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
3
|
+
[1m[36m (4.4ms)[0m [1mCREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying(255), "parent_id" integer, "upload_type" character varying(255), "filename" text, "content_type" character varying(255), "state" character varying(255), "data" json DEFAULT '{}', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp) [0m
|
4
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
5
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
7
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141021002149')[0m
|
8
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141009000804')
|
9
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "products" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
|
11
|
+
[1m[36m (1.3ms)[0m [1mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
12
|
+
[1m[35m (3.9ms)[0m TRUNCATE TABLE "products", "s3_relay_uploads" RESTART IDENTITY CASCADE;
|
13
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL[0m
|
14
|
+
[1m[35m (0.2ms)[0m BEGIN
|
15
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
16
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
18
|
+
[1m[35m (0.1ms)[0m BEGIN
|
19
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
20
|
+
[1m[35m (0.1ms)[0m BEGIN
|
21
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-04-14 17:07:11.191017"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.191017"]]
|
23
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
24
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
25
|
+
[1m[36mS3Relay::Upload Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
26
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
27
|
+
:format: 1
|
28
|
+
' LIMIT 1[0m
|
29
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.211393"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.202062"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.211393"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
30
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
31
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
32
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
33
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
34
|
+
:format: 1
|
35
|
+
' LIMIT 1[0m
|
36
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.220267"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.218692"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.220267"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
37
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
38
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
39
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
40
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
41
|
+
:format: 1
|
42
|
+
' LIMIT 1[0m
|
43
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.222586"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.221492"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.222586"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
44
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
45
|
+
[1m[35mS3Relay::Upload Load (0.5ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 1 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
46
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 1 WHERE "s3_relay_uploads"."uuid" IN ('87bcb4f5-3358-414c-9b2b-8d39318e36b1', '87bcb4f5-3358-414c-9b2b-8d39318e36b1') AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
47
|
+
[1m[35mS3Relay::Upload Load (0.6ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 1 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
48
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
49
|
+
[1m[35m (0.1ms)[0m BEGIN
|
50
|
+
-----------------------------------------------------------------------------------
|
51
|
+
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
52
|
+
-----------------------------------------------------------------------------------
|
53
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-04-14 17:07:11.231847"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.231847"]]
|
55
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
58
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
59
|
+
:format: 1
|
60
|
+
' LIMIT 1[0m
|
61
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.234311"], ["filename", "cat.png"], ["parent_id", 2], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.231295"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.234311"], ["upload_type", "FileUpload"], ["uuid", "<36 bytes of binary data>"]]
|
62
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
63
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
64
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
65
|
+
------------------------------------------------------------------------------------------
|
66
|
+
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
67
|
+
------------------------------------------------------------------------------------------
|
68
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
69
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.238876"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.238876"]]
|
70
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
71
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
72
|
+
[1m[35m (0.1ms)[0m BEGIN
|
73
|
+
---------------------------------------------------------------------
|
74
|
+
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
75
|
+
---------------------------------------------------------------------
|
76
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
77
|
+
Processing by S3Relay::UploadsController#create as HTML
|
78
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"1ba7204c-fc7a-4b53-ac3e-85ff8253904c", "filename"=>"cat.png", "content_type"=>"image/png"}
|
79
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
80
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
81
|
+
:value: 1ba7204c-fc7a-4b53-ac3e-85ff8253904c
|
82
|
+
:format: 1
|
83
|
+
' LIMIT 1[0m
|
84
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.247579"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.246158"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.247579"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
85
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
86
|
+
Completed 201 Created in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
87
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
88
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
89
|
+
[1m[35m (0.1ms)[0m BEGIN
|
90
|
+
--------------------------------------------------
|
91
|
+
S3Relay::Upload::#private_url: test_0001_anonymous
|
92
|
+
--------------------------------------------------
|
93
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
94
|
+
[1m[35m (0.1ms)[0m BEGIN
|
95
|
+
-----------------------------------------------
|
96
|
+
S3Relay::Upload::#pending?: test_0001_anonymous
|
97
|
+
-----------------------------------------------
|
98
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
99
|
+
[1m[35m (0.1ms)[0m BEGIN
|
100
|
+
---------------------------------------------------------------------------------------------------------------------
|
101
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
102
|
+
---------------------------------------------------------------------------------------------------------------------
|
103
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
104
|
+
Processing by S3Relay::UploadsController#create as HTML
|
105
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"4ecdbaa8-71fb-4201-8fb1-bd71edcaf96c", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
106
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 10000000 LIMIT 1
|
107
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
108
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
109
|
+
:value: 4ecdbaa8-71fb-4201-8fb1-bd71edcaf96c
|
110
|
+
:format: 1
|
111
|
+
' LIMIT 1
|
112
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.260176"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.259087"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.260176"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
113
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
114
|
+
Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.8ms)
|
115
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
116
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
117
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
118
|
+
-----------------------------------------------------
|
119
|
+
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
120
|
+
-----------------------------------------------------
|
121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
122
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.264415"], ["pending_at", "2016-04-14 17:07:11.264161"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.264415"]]
|
123
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
124
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
125
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-04-14 17:07:11.266297"], ["pending_at", "2016-04-14 17:07:11.265866"], ["state", "imported"], ["updated_at", "2016-04-14 17:07:11.266297"]]
|
126
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
127
|
+
[1m[35mS3Relay::Upload Load (0.3ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'pending'
|
128
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
129
|
+
[1m[35m (0.1ms)[0m BEGIN
|
130
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
131
|
+
[1m[35m (0.1ms)[0m BEGIN
|
132
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
133
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-04-14 17:07:11.271949"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.271949"]]
|
134
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
135
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
136
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
137
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
138
|
+
:format: 1
|
139
|
+
' LIMIT 1[0m
|
140
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.274862"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.273150"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.274862"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
141
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
143
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
144
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
145
|
+
:format: 1
|
146
|
+
' LIMIT 1[0m
|
147
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.277532"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.276429"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.277532"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
148
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
150
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
151
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
152
|
+
:format: 1
|
153
|
+
' LIMIT 1[0m
|
154
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.279566"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.278565"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.279566"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
155
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
156
|
+
[1m[35mS3Relay::Upload Load (0.4ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 4 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1
|
157
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 4 WHERE "s3_relay_uploads"."uuid" = '87bcb4f5-3358-414c-9b2b-8d39318e36b1' AND "s3_relay_uploads"."upload_type" = 'IconUpload'[0m
|
158
|
+
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 4 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1
|
159
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
160
|
+
[1m[35m (0.1ms)[0m BEGIN
|
161
|
+
------------------------------------------------------
|
162
|
+
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
163
|
+
------------------------------------------------------
|
164
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
165
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2016-04-14 17:07:11.284065"], ["pending_at", "2016-04-14 17:07:11.283793"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.284065"]]
|
166
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
167
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
168
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.285393"], ["pending_at", "2016-04-14 17:07:11.285165"], ["state", "imported"], ["updated_at", "2016-04-14 17:07:11.285393"]]
|
169
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
170
|
+
[1m[36mS3Relay::Upload Load (0.3ms)[0m [1mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = 'imported'[0m
|
171
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
172
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
173
|
+
-------------------------------------------------------
|
174
|
+
S3Relay::Upload::upon finalization: test_0001_anonymous
|
175
|
+
-------------------------------------------------------
|
176
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
177
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
178
|
+
-----------------------------------------------
|
179
|
+
S3Relay::Upload::#imported: test_0001_anonymous
|
180
|
+
-----------------------------------------------
|
181
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
182
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
183
|
+
[1m[35m (0.1ms)[0m COMMIT
|
184
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
185
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
186
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
187
|
+
--------------------------------------------------------
|
188
|
+
S3Relay::UploadsController::GET new: test_0001_anonymous
|
189
|
+
--------------------------------------------------------
|
190
|
+
Processing by S3Relay::UploadsController#new as HTML
|
191
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
192
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
193
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
194
|
+
-----------------------------------------------------------------------------------------------------------------
|
195
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
196
|
+
-----------------------------------------------------------------------------------------------------------------
|
197
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
198
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.299020"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.299020"]]
|
199
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 5 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
201
|
+
Processing by S3Relay::UploadsController#create as HTML
|
202
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"d67dbcab-939c-4773-b2c6-4adc53ca149c", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"5"}
|
203
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = 5 LIMIT 1
|
204
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
205
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
206
|
+
:value: d67dbcab-939c-4773-b2c6-4adc53ca149c
|
207
|
+
:format: 1
|
208
|
+
' LIMIT 1
|
209
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.305678"], ["filename", "cat.png"], ["parent_id", 5], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.304312"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.305678"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
210
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
211
|
+
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
212
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 5 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'[0m
|
213
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
214
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
215
|
+
------------------------------------------------------------------------
|
216
|
+
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
217
|
+
------------------------------------------------------------------------
|
218
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
219
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
220
|
+
[1m[35m (0.1ms)[0m BEGIN
|
221
|
+
----------------------------------------------------------
|
222
|
+
S3Relay::Upload::associations::parent: test_0001_anonymous
|
223
|
+
----------------------------------------------------------
|
224
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
225
|
+
[1m[35m (0.1ms)[0m BEGIN
|
226
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
227
|
+
[1m[35m (0.0ms)[0m BEGIN
|
228
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-04-14 17:07:11.318534"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.318534"]]
|
230
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
232
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
233
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
234
|
+
:format: 1
|
235
|
+
' LIMIT 1[0m
|
236
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.321009"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.319654"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.321009"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
237
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
240
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
241
|
+
:format: 1
|
242
|
+
' LIMIT 1[0m
|
243
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.323240"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.322160"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.323240"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
244
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
245
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
246
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
247
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
248
|
+
:format: 1
|
249
|
+
' LIMIT 1[0m
|
250
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.325494"], ["filename", "cat.png"], ["parent_id", 6], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.324400"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.325494"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
251
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252
|
+
[1m[35mS3Relay::Upload Load (0.2ms)[0m SELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 6 AND "s3_relay_uploads"."upload_type" = 'IconUpload' ORDER BY pending_at ASC LIMIT 1
|
253
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
254
|
+
[1m[35m (0.1ms)[0m BEGIN
|
255
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
256
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
257
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
258
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
259
|
+
Processing by S3Relay::UploadsController#create as HTML
|
260
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"f1d98adb-e282-4008-90b4-9e1ae6dd80e5", "filename"=>"cat.png", "content_type"=>"image/png"}
|
261
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
262
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
263
|
+
:value: f1d98adb-e282-4008-90b4-9e1ae6dd80e5
|
264
|
+
:format: 1
|
265
|
+
' LIMIT 1[0m
|
266
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "pending_at", "state", "updated_at", "upload_type", "user_id", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.333409"], ["filename", "cat.png"], ["pending_at", "2016-04-14 17:07:11.332364"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.333409"], ["upload_type", "PhotoUpload"], ["user_id", 123], ["uuid", "<36 bytes of binary data>"]]
|
267
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
268
|
+
Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
269
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "s3_relay_uploads"
|
270
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
271
|
+
[1m[35m (0.1ms)[0m BEGIN
|
272
|
+
-------------------------------------------------------------------
|
273
|
+
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
274
|
+
-------------------------------------------------------------------
|
275
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
276
|
+
Processing by S3Relay::UploadsController#create as HTML
|
277
|
+
Parameters: {"uuid"=>"59afdf63-c475-414f-94fd-041b63cb1e30", "filename"=>"cat.png", "content_type"=>"image/png"}
|
278
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
279
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
280
|
+
:value: 59afdf63-c475-414f-94fd-041b63cb1e30
|
281
|
+
:format: 1
|
282
|
+
' LIMIT 1[0m
|
283
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
284
|
+
Completed 422 Unprocessable Entity in 2ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
285
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
286
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
287
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
288
|
+
----------------------------------------------------------------------
|
289
|
+
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
290
|
+
----------------------------------------------------------------------
|
291
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
292
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
293
|
+
[1m[35m (0.1ms)[0m BEGIN
|
294
|
+
-----------------------------------------------------
|
295
|
+
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
296
|
+
-----------------------------------------------------
|
297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
299
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
300
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
301
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
302
|
+
[1m[35m (0.1ms)[0m COMMIT
|
303
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
304
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
305
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
306
|
+
[1m[35m (0.1ms)[0m COMMIT
|
307
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
308
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
309
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
310
|
+
[1m[35m (0.1ms)[0m COMMIT
|
311
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
312
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
313
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
314
|
+
-----------------------------------------------------------------------------
|
315
|
+
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
316
|
+
-----------------------------------------------------------------------------
|
317
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
318
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.356277"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.356277"]]
|
319
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
320
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
321
|
+
[1m[35m (0.1ms)[0m BEGIN
|
322
|
+
----------------------------------------------------------------
|
323
|
+
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
324
|
+
----------------------------------------------------------------
|
325
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
326
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
327
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
328
|
+
------------------------------------------------------------------
|
329
|
+
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
330
|
+
------------------------------------------------------------------
|
331
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
332
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "s3_relay_uploads" ("created_at", "pending_at", "state", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.361956"], ["pending_at", "2016-04-14 17:07:11.361695"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.361956"]]
|
333
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
334
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
335
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
336
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
337
|
+
---------------------------------------------------------------------------------
|
338
|
+
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
339
|
+
---------------------------------------------------------------------------------
|
340
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
341
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2016-04-14 17:07:11.367148"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.367148"]]
|
342
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
343
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
344
|
+
[1m[35m (0.1ms)[0m BEGIN
|
345
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
346
|
+
[1m[35m (0.1ms)[0m BEGIN
|
347
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
348
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2016-04-14 17:07:11.370704"], ["name", "Flux Capacitor"], ["updated_at", "2016-04-14 17:07:11.370704"]]
|
349
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
350
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
351
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
352
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
353
|
+
:format: 1
|
354
|
+
' LIMIT 1[0m
|
355
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.373006"], ["filename", "cat.png"], ["parent_id", 9], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.371699"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.373006"], ["upload_type", "IconUpload"], ["uuid", "<36 bytes of binary data>"]]
|
356
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
357
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
358
|
+
[1m[36mS3Relay::Upload Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
359
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
360
|
+
:format: 1
|
361
|
+
' LIMIT 1[0m
|
362
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.375200"], ["filename", "cat.png"], ["parent_id", 9], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.374185"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.375200"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
363
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
364
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
365
|
+
[1m[36mS3Relay::Upload Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = '---
|
366
|
+
:value: 87bcb4f5-3358-414c-9b2b-8d39318e36b1
|
367
|
+
:format: 1
|
368
|
+
' LIMIT 1[0m
|
369
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "s3_relay_uploads" ("content_type", "created_at", "filename", "parent_id", "parent_type", "pending_at", "state", "updated_at", "upload_type", "uuid") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["content_type", "image/png"], ["created_at", "2016-04-14 17:07:11.377376"], ["filename", "cat.png"], ["parent_id", 9], ["parent_type", "Product"], ["pending_at", "2016-04-14 17:07:11.376288"], ["state", "pending"], ["updated_at", "2016-04-14 17:07:11.377376"], ["upload_type", "PhotoUpload"], ["uuid", "<36 bytes of binary data>"]]
|
370
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
371
|
+
[1m[35m (0.2ms)[0m SELECT "s3_relay_uploads"."id" FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = 'Product' AND "s3_relay_uploads"."parent_id" = 9 AND "s3_relay_uploads"."upload_type" = 'PhotoUpload'
|
372
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
373
|
+
[1m[35m (0.1ms)[0m BEGIN
|
374
|
+
--------------------------------------------------------------------
|
375
|
+
S3Relay::Upload::validations::filename: test_0001_validates presence
|
376
|
+
--------------------------------------------------------------------
|
377
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1[0m
|
378
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
379
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
380
|
+
[1m[35m (0.1ms)[0m COMMIT
|
381
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
382
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
383
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
384
|
+
-----------------------------------------------------------------------
|
385
|
+
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
386
|
+
-----------------------------------------------------------------------
|
387
|
+
[1m[35mS3Relay::Upload Exists (0.2ms)[0m SELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT 1
|
388
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_relay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenny Johnston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|
@@ -212,6 +212,7 @@ files:
|
|
212
212
|
- test/dummy/config/secrets.yml
|
213
213
|
- test/dummy/db/migrate/20141021002149_create_products.rb
|
214
214
|
- test/dummy/db/schema.rb
|
215
|
+
- test/dummy/log/test.log
|
215
216
|
- test/dummy/public/404.html
|
216
217
|
- test/dummy/public/422.html
|
217
218
|
- test/dummy/public/500.html
|
@@ -245,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
246
|
version: '0'
|
246
247
|
requirements: []
|
247
248
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.
|
249
|
+
rubygems_version: 2.5.1
|
249
250
|
signing_key:
|
250
251
|
specification_version: 4
|
251
252
|
summary: Direct uploads to S3 and ingestion by your Rails app.
|
@@ -281,6 +282,7 @@ test_files:
|
|
281
282
|
- test/dummy/config.ru
|
282
283
|
- test/dummy/db/migrate/20141021002149_create_products.rb
|
283
284
|
- test/dummy/db/schema.rb
|
285
|
+
- test/dummy/log/test.log
|
284
286
|
- test/dummy/public/404.html
|
285
287
|
- test/dummy/public/422.html
|
286
288
|
- test/dummy/public/500.html
|