s3_relay 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/db/migrate/20141009000804_create_s3_relay_uploads.rb +1 -1
- data/lib/s3_relay/version.rb +1 -1
- data/test/dummy/log/development.log +11 -0
- data/test/dummy/log/test.log +318 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ac80b19d5558dd1a3295bef5db612c7c92700fa663a780b527fd61d8173e2ce6
|
4
|
+
data.tar.gz: 3c934826ab7fb3c303701b86c756c79bd9a11fbb424ff95d281865d4419ac60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a9e0bdfeeb2389bece2b48ffc69b9a832ade32e89426c2f1ae9308b38224e6709aac19ae2aad49c3ba74fe9e5dba5c49ac2071eac3989e195a188778c3c562b
|
7
|
+
data.tar.gz: e0b41b0462dd2794dc2217a4f6dd97caa5ae267988db7061904527ff4ef195dbea93a41f45050afb99ae7c40c858a57dde6b12f67ccbcd973c8b71468bf84cc5
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ your Rails app to asynchronously ingest the files.
|
|
9
9
|
## Overview
|
10
10
|
|
11
11
|
This Rails engine allows you to quickly implement direct uploads to Amazon S3
|
12
|
-
from your
|
12
|
+
from your Ruby on Rails application. It does not depend on any specific file
|
13
13
|
upload libraries, UI frameworks or AWS gems, like other solutions tend to.
|
14
14
|
|
15
15
|
It works by utilizing Amazon S3's
|
data/lib/s3_relay/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
[1m[35m (24.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3
|
+
[1m[35m (12.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(5724499521023098410);[0m
|
4
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
|
+
Migrating to CreateS3RelayUploads (20141009000804)
|
6
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
7
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "s3_relay_uploads" ("id" serial NOT NULL PRIMARY KEY, "uuid" bytea, "user_id" integer, "parent_type" character varying, "parent_id" integer, "upload_type" character varying, "filename" text, "content_type" character varying, "state" character varying, "data" json DEFAULT '"{}"', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp)[0m
|
8
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20141009000804"]]
|
9
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
10
|
+
Migrating to CreateProducts (20141021002149)
|
11
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(5724499521023098410)[0m
|
@@ -0,0 +1,318 @@
|
|
1
|
+
[1m[35m (3.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" DISABLE TRIGGER ALL;ALTER TABLE "products" DISABLE TRIGGER ALL[0m
|
4
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
5
|
+
[1m[35m (8.3ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
6
|
+
FROM pg_tables
|
7
|
+
WHERE
|
8
|
+
tablename !~ '_prt_' AND
|
9
|
+
tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
|
10
|
+
schemaname = ANY (current_schemas(false))
|
11
|
+
[0m
|
12
|
+
[1m[35m (7.2ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 's3_relay_test'[0m
|
13
|
+
[1m[35m (13.3ms)[0m [1m[35mTRUNCATE TABLE "public"."s3_relay_uploads", "public"."products" RESTART IDENTITY CASCADE;[0m
|
14
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
15
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "s3_relay_uploads" ENABLE TRIGGER ALL;ALTER TABLE "products" ENABLE TRIGGER ALL[0m
|
16
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
17
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
18
|
+
-----------------------------------------------------------------------------
|
19
|
+
S3Relay::UploadsHelper::#s3_relay_field::without options: test_0001_anonymous
|
20
|
+
-----------------------------------------------------------------------------
|
21
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
22
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:13.872348"], ["updated_at", "2018-03-24 06:53:13.872348"]]
|
23
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
24
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
25
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
26
|
+
-----------------------------------------------------------------------
|
27
|
+
S3Relay::Upload::validations::upload_type: test_0001_validates presence
|
28
|
+
-----------------------------------------------------------------------
|
29
|
+
[1m[36mS3Relay::Upload Exists (2.0ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
30
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
31
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
32
|
+
--------------------------------------------------------
|
33
|
+
S3Relay::UploadsController::GET new: test_0001_anonymous
|
34
|
+
--------------------------------------------------------
|
35
|
+
Started GET "/s3_relay/uploads/new" for 127.0.0.1 at 2018-03-23 23:53:13 -0700
|
36
|
+
Processing by S3Relay::UploadsController#new as HTML
|
37
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
38
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40
|
+
---------------------------------------------------------------------
|
41
|
+
S3Relay::UploadsController::POST create::success: test_0001_anonymous
|
42
|
+
---------------------------------------------------------------------
|
43
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
44
|
+
Started POST "/s3_relay/uploads" for 127.0.0.1 at 2018-03-23 23:53:13 -0700
|
45
|
+
Processing by S3Relay::UploadsController#create as HTML
|
46
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"1f6ce8d0-6d72-4dfa-a381-a20c83adf3aa", "filename"=>"cat.png", "content_type"=>"image/png"}
|
47
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
48
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
49
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.929185"], ["created_at", "2018-03-24 06:53:13.930616"], ["updated_at", "2018-03-24 06:53:13.930616"]]
|
50
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51
|
+
Completed 201 Created in 9ms (Views: 0.3ms | ActiveRecord: 1.1ms)
|
52
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
53
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
54
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
55
|
+
---------------------------------------------------------------------------------------------------------------------
|
56
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::not matching an object: test_0001_anonymous
|
57
|
+
---------------------------------------------------------------------------------------------------------------------
|
58
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
59
|
+
Started POST "/s3_relay/uploads" for 127.0.0.1 at 2018-03-23 23:53:13 -0700
|
60
|
+
Processing by S3Relay::UploadsController#create as HTML
|
61
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"e86fa017-8cda-44c5-8687-b2f491eaae4d", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"10000000"}
|
62
|
+
[1m[36mProduct Load (0.2ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2[0m [["id", 10000000], ["LIMIT", 1]]
|
63
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
65
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.947929"], ["created_at", "2018-03-24 06:53:13.949036"], ["updated_at", "2018-03-24 06:53:13.949036"]]
|
66
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
67
|
+
Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
|
68
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
69
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
70
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
71
|
+
---------------------------------------------------------------------------------
|
72
|
+
S3Relay::UploadsHelper::#s3_relay_field::with multiple: true: test_0001_anonymous
|
73
|
+
---------------------------------------------------------------------------------
|
74
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
75
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:13.954452"], ["updated_at", "2018-03-24 06:53:13.954452"]]
|
76
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
77
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
78
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
79
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
80
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
81
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
82
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:13.958313"], ["updated_at", "2018-03-24 06:53:13.958313"]]
|
83
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
84
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
85
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
86
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "IconUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.959871"], ["created_at", "2018-03-24 06:53:13.961095"], ["updated_at", "2018-03-24 06:53:13.961095"]]
|
87
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
88
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
89
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
90
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.962684"], ["created_at", "2018-03-24 06:53:13.963725"], ["updated_at", "2018-03-24 06:53:13.963725"]]
|
91
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
92
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
93
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
94
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.965102"], ["created_at", "2018-03-24 06:53:13.966147"], ["updated_at", "2018-03-24 06:53:13.966147"]]
|
95
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
96
|
+
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = $1 AND "s3_relay_uploads"."parent_id" = $2 AND "s3_relay_uploads"."upload_type" = $3[0m [["parent_type", "Product"], ["parent_id", 3], ["upload_type", "PhotoUpload"]]
|
97
|
+
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "s3_relay_uploads" SET "parent_type" = 'Product', "parent_id" = 3 WHERE "s3_relay_uploads"."uuid" IN ('\x66366136333930392d306233612d343863332d393462612d366466393638313331643737', '\x33396331333861322d326333382d346230352d616165302d343732643438343463353234') AND "s3_relay_uploads"."upload_type" = $1[0m [["upload_type", "PhotoUpload"]]
|
98
|
+
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = $1 AND "s3_relay_uploads"."parent_id" = $2 AND "s3_relay_uploads"."upload_type" = $3[0m [["parent_type", "Product"], ["parent_id", 3], ["upload_type", "PhotoUpload"]]
|
99
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
100
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
101
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
102
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
103
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
104
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:13.973690"], ["updated_at", "2018-03-24 06:53:13.973690"]]
|
105
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
106
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
107
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
108
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 4], ["upload_type", "IconUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.977086"], ["created_at", "2018-03-24 06:53:13.979153"], ["updated_at", "2018-03-24 06:53:13.979153"]]
|
109
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
110
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
112
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 4], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.981069"], ["created_at", "2018-03-24 06:53:13.982191"], ["updated_at", "2018-03-24 06:53:13.982191"]]
|
113
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
114
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
115
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
116
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 4], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.983737"], ["created_at", "2018-03-24 06:53:13.984834"], ["updated_at", "2018-03-24 06:53:13.984834"]]
|
117
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
118
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads"."id" FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = $1 AND "s3_relay_uploads"."parent_id" = $2 AND "s3_relay_uploads"."upload_type" = $3[0m [["parent_type", "Product"], ["parent_id", 4], ["upload_type", "PhotoUpload"]]
|
119
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
120
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
121
|
+
-----------------------------------------------------------------------------------------------------------------
|
122
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::matching an object: test_0001_anonymous
|
123
|
+
-----------------------------------------------------------------------------------------------------------------
|
124
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
125
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:13.991825"], ["updated_at", "2018-03-24 06:53:13.991825"]]
|
126
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
127
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = $1 AND "s3_relay_uploads"."parent_id" = $2 AND "s3_relay_uploads"."upload_type" = $3[0m [["parent_type", "Product"], ["parent_id", 5], ["upload_type", "PhotoUpload"]]
|
128
|
+
Started POST "/s3_relay/uploads" for 127.0.0.1 at 2018-03-23 23:53:13 -0700
|
129
|
+
Processing by S3Relay::UploadsController#create as HTML
|
130
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"19cb2022-8003-412a-b755-9bbb9a67e3e3", "filename"=>"cat.png", "content_type"=>"image/png", "parent_type"=>"Product", "parent_id"=>"5"}
|
131
|
+
[1m[36mProduct Load (0.5ms)[0m [1m[34mSELECT "products".* FROM "products" WHERE "products"."id" = $1 LIMIT $2[0m [["id", 5], ["LIMIT", 1]]
|
132
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
133
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
134
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 5], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:13.997593"], ["created_at", "2018-03-24 06:53:13.998848"], ["updated_at", "2018-03-24 06:53:13.998848"]]
|
135
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
136
|
+
Completed 201 Created in 5ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
137
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = $1 AND "s3_relay_uploads"."parent_id" = $2 AND "s3_relay_uploads"."upload_type" = $3[0m [["parent_type", "Product"], ["parent_id", 5], ["upload_type", "PhotoUpload"]]
|
138
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
139
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
140
|
+
----------------------------------------------------------
|
141
|
+
S3Relay::Upload::associations::parent: test_0001_anonymous
|
142
|
+
----------------------------------------------------------
|
143
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
144
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
145
|
+
-------------------------------------------------------------------
|
146
|
+
S3Relay::UploadsController::POST create::error: test_0001_anonymous
|
147
|
+
-------------------------------------------------------------------
|
148
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
149
|
+
Started POST "/s3_relay/uploads" for 127.0.0.1 at 2018-03-23 23:53:14 -0700
|
150
|
+
Processing by S3Relay::UploadsController#create as HTML
|
151
|
+
Parameters: {"uuid"=>"c91b893f-c1b7-4468-a497-c3fcb3513153", "filename"=>"cat.png", "content_type"=>"image/png"}
|
152
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
153
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
154
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
155
|
+
Completed 422 Unprocessable Entity in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
156
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
157
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
158
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
159
|
+
------------------------------------------------------------------------
|
160
|
+
S3Relay::Upload::validations::content_type: test_0001_validates presence
|
161
|
+
------------------------------------------------------------------------
|
162
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
163
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
164
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
165
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
166
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
167
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
168
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
169
|
+
-----------------------------------------------------
|
170
|
+
S3Relay::Upload::scopes::pending: test_0001_anonymous
|
171
|
+
-----------------------------------------------------
|
172
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
173
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "FileUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.023458"], ["created_at", "2018-03-24 06:53:14.024473"], ["updated_at", "2018-03-24 06:53:14.024473"]]
|
174
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
175
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
176
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["state", "imported"], ["pending_at", "2018-03-24 06:53:14.027543"], ["created_at", "2018-03-24 06:53:14.027932"], ["updated_at", "2018-03-24 06:53:14.027932"]]
|
177
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
178
|
+
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = $1[0m [["state", "pending"]]
|
179
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
180
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
181
|
+
-----------------------------------------------
|
182
|
+
S3Relay::Upload::#pending?: test_0001_anonymous
|
183
|
+
-----------------------------------------------
|
184
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
185
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
186
|
+
--------------------------------------------------------------------
|
187
|
+
S3Relay::Upload::validations::filename: test_0001_validates presence
|
188
|
+
--------------------------------------------------------------------
|
189
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
190
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
191
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
192
|
+
-----------------------------------------------------
|
193
|
+
S3Relay::Upload::#mark_imported!: test_0001_anonymous
|
194
|
+
-----------------------------------------------------
|
195
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
196
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
197
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
198
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
199
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
200
|
+
-------------------------------------------------------
|
201
|
+
S3Relay::Upload::upon finalization: test_0001_anonymous
|
202
|
+
-------------------------------------------------------
|
203
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
204
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
205
|
+
----------------------------------------------------------------------
|
206
|
+
S3Relay::Upload::validations::pending_at: test_0001_validates presence
|
207
|
+
----------------------------------------------------------------------
|
208
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
209
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
210
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
211
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
212
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
213
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
214
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:14.048484"], ["updated_at", "2018-03-24 06:53:14.048484"]]
|
215
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
216
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
217
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
218
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 6], ["upload_type", "IconUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.050004"], ["created_at", "2018-03-24 06:53:14.051254"], ["updated_at", "2018-03-24 06:53:14.051254"]]
|
219
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
220
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
221
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
222
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 6], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.052844"], ["created_at", "2018-03-24 06:53:14.054127"], ["updated_at", "2018-03-24 06:53:14.054127"]]
|
223
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
224
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
225
|
+
[1m[36mS3Relay::Upload Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
226
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 6], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.055864"], ["created_at", "2018-03-24 06:53:14.059255"], ["updated_at", "2018-03-24 06:53:14.059255"]]
|
227
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
228
|
+
[1m[36mS3Relay::Upload Load (0.5ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."parent_type" = $1 AND "s3_relay_uploads"."parent_id" = $2 AND "s3_relay_uploads"."upload_type" = $3 ORDER BY pending_at ASC LIMIT $4[0m [["parent_type", "Product"], ["parent_id", 6], ["upload_type", "IconUpload"], ["LIMIT", 1]]
|
229
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
230
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
231
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
232
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
233
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
234
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
235
|
+
-----------------------------------------------------------------------------------
|
236
|
+
S3Relay::Upload::#notify_parent::when the parent is associated: test_0001_anonymous
|
237
|
+
-----------------------------------------------------------------------------------
|
238
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
239
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:14.066405"], ["updated_at", "2018-03-24 06:53:14.066405"]]
|
240
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
241
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
242
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
243
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "parent_type", "parent_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["parent_type", "Product"], ["parent_id", 7], ["upload_type", "FileUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.065784"], ["created_at", "2018-03-24 06:53:14.069195"], ["updated_at", "2018-03-24 06:53:14.069195"]]
|
244
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
245
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
246
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
247
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
248
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
249
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
250
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
251
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
252
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
253
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
254
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
255
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
256
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
257
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
258
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
259
|
+
------------------------------------------------------
|
260
|
+
S3Relay::Upload::scopes::imported: test_0001_anonymous
|
261
|
+
------------------------------------------------------
|
262
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
263
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "FileUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.083739"], ["created_at", "2018-03-24 06:53:14.084121"], ["updated_at", "2018-03-24 06:53:14.084121"]]
|
264
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
265
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
266
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["state", "imported"], ["pending_at", "2018-03-24 06:53:14.085836"], ["created_at", "2018-03-24 06:53:14.086195"], ["updated_at", "2018-03-24 06:53:14.086195"]]
|
267
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
268
|
+
[1m[36mS3Relay::Upload Load (0.2ms)[0m [1m[34mSELECT "s3_relay_uploads".* FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."state" = $1[0m [["state", "imported"]]
|
269
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
270
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
271
|
+
------------------------------------------------------------------------------------------
|
272
|
+
S3Relay::UploadsHelper::#s3_relay_field::with disposition: attachment: test_0001_anonymous
|
273
|
+
------------------------------------------------------------------------------------------
|
274
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
275
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "products" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Flux Capacitor"], ["created_at", "2018-03-24 06:53:14.093182"], ["updated_at", "2018-03-24 06:53:14.093182"]]
|
276
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
277
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
278
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
279
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
280
|
+
S3Relay::UploadsController::POST create::success::with parent attributes::with a current_user: test_0001_associates the upload with the user
|
281
|
+
--------------------------------------------------------------------------------------------------------------------------------------------
|
282
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
283
|
+
Started POST "/s3_relay/uploads" for 127.0.0.1 at 2018-03-23 23:53:14 -0700
|
284
|
+
Processing by S3Relay::UploadsController#create as HTML
|
285
|
+
Parameters: {"association"=>"photo_uploads", "uuid"=>"0130ee2b-7bb7-4508-af12-673a1c381a4f", "filename"=>"cat.png", "content_type"=>"image/png"}
|
286
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
287
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
288
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "user_id", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["user_id", 123], ["upload_type", "PhotoUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.100563"], ["created_at", "2018-03-24 06:53:14.101740"], ["updated_at", "2018-03-24 06:53:14.101740"]]
|
289
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
290
|
+
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
291
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "s3_relay_uploads"[0m
|
292
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
293
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
294
|
+
------------------------------------------------------------------
|
295
|
+
S3Relay::Upload::validations::uuid: test_0002_validates uniqueness
|
296
|
+
------------------------------------------------------------------
|
297
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
298
|
+
[1m[36mS3Relay::Upload Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
299
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "s3_relay_uploads" ("uuid", "upload_type", "filename", "content_type", "state", "pending_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["uuid", "<36 bytes of binary data>"], ["upload_type", "FileUpload"], ["filename", "cat.png"], ["content_type", "image/png"], ["state", "pending"], ["pending_at", "2018-03-24 06:53:14.108647"], ["created_at", "2018-03-24 06:53:14.110646"], ["updated_at", "2018-03-24 06:53:14.110646"]]
|
300
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
301
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" = $1 LIMIT $2[0m [["uuid", "<36 bytes of binary data>"], ["LIMIT", 1]]
|
302
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
303
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
304
|
+
----------------------------------------------------------------
|
305
|
+
S3Relay::Upload::validations::uuid: test_0001_validates presence
|
306
|
+
----------------------------------------------------------------
|
307
|
+
[1m[36mS3Relay::Upload Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "s3_relay_uploads" WHERE "s3_relay_uploads"."uuid" IS NULL LIMIT $1[0m [["LIMIT", 1]]
|
308
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
309
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
310
|
+
--------------------------------------------------
|
311
|
+
S3Relay::Upload::#private_url: test_0001_anonymous
|
312
|
+
--------------------------------------------------
|
313
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
314
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
315
|
+
-----------------------------------------------
|
316
|
+
S3Relay::Upload::#imported: test_0001_anonymous
|
317
|
+
-----------------------------------------------
|
318
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[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.6.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2018-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|
@@ -243,6 +243,8 @@ files:
|
|
243
243
|
- test/dummy/db/migrate/20141021002149_create_products.rb
|
244
244
|
- test/dummy/db/schema.rb
|
245
245
|
- test/dummy/db/seeds.rb
|
246
|
+
- test/dummy/log/development.log
|
247
|
+
- test/dummy/log/test.log
|
246
248
|
- test/dummy/package.json
|
247
249
|
- test/dummy/public/404.html
|
248
250
|
- test/dummy/public/422.html
|
@@ -282,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
284
|
version: '0'
|
283
285
|
requirements: []
|
284
286
|
rubyforge_project:
|
285
|
-
rubygems_version: 2.
|
287
|
+
rubygems_version: 2.7.4
|
286
288
|
signing_key:
|
287
289
|
specification_version: 4
|
288
290
|
summary: Direct uploads to S3 and ingestion by your Rails app.
|
@@ -346,6 +348,8 @@ test_files:
|
|
346
348
|
- test/dummy/db/schema.rb
|
347
349
|
- test/dummy/db/seeds.rb
|
348
350
|
- test/dummy/db/migrate/20141021002149_create_products.rb
|
351
|
+
- test/dummy/log/test.log
|
352
|
+
- test/dummy/log/development.log
|
349
353
|
- test/models/s3_relay/upload_test.rb
|
350
354
|
- test/support/database_cleaner.rb
|
351
355
|
- test/factories/uploads.rb
|