zencodable 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/zencodable/templates/zencodable_add_tracking_columns_and_tables.rb +1 -1
- data/lib/zencodable/version.rb +1 -1
- data/test/debug.log +118 -0
- data/test/dummy/tmp/db/migrate/{20111205192243_zencodable_add_tracking_columns_and_tables.rb → 20111205194442_zencodable_add_tracking_columns_and_tables.rb} +1 -1
- data/test/zencodable_generators_test.rb +1 -0
- metadata +3 -3
data/lib/zencodable/version.rb
CHANGED
data/test/debug.log
CHANGED
@@ -1255,3 +1255,121 @@ Unfinished job found. Updating details.
|
|
1255
1255
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1256
1256
|
[1m[36m (0.1ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 19:22:43.113256' WHERE "videos"."id" = 1[0m
|
1257
1257
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1258
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1259
|
+
[1m[35mSQL (18.3ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:25 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1260
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1261
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1262
|
+
Origin URL changed. Creating new ZenCoder job.
|
1263
|
+
ZenCoder job created, ID = 123
|
1264
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-05 19:44:25.955224', "updated_at" = '2011-12-05 19:44:25.955445' WHERE "videos"."id" = 1[0m
|
1265
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1266
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1267
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:25 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
|
1268
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1269
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1270
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 19:44:25 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1273
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
|
1274
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1275
|
+
[1m[35mVideoFile Load (0.2ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
|
1276
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1277
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
|
1278
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1279
|
+
Unfinished job found. Updating details.
|
1280
|
+
[1m[35mVideoFile Load (0.1ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1281
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1282
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1283
|
+
[1m[36mVideoFileThumbnail Load (0.1ms)[0m [1mSELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1[0m
|
1284
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1285
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1286
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
1287
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-05 19:44:26.119567' WHERE "videos"."id" = 1[0m
|
1288
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1289
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1290
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1291
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1292
|
+
Unfinished job found. Updating details.
|
1293
|
+
[1m[35mVideoFile Load (0.1ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1294
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1295
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
|
1296
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1297
|
+
[1m[35mVideoFileThumbnail Load (0.1ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1298
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1300
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1301
|
+
[1m[35m (0.2ms)[0m UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 19:44:26.132200' WHERE "videos"."id" = 1
|
1302
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1303
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1304
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1306
|
+
Unfinished job found. Updating details.
|
1307
|
+
[1m[36mVideoFile Load (0.1ms)[0m [1mSELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1[0m
|
1308
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1309
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1310
|
+
[1m[35mVideoFileThumbnail Load (0.2ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1312
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Mon, 05 Dec 2011 19:44:26 UTC +00:00], ["video_id", 1]]
|
1313
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1315
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 19:44:26.156687' WHERE "videos"."id" = 1[0m
|
1316
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1317
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1318
|
+
[1m[35mSQL (17.8ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1319
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1320
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1321
|
+
Origin URL changed. Creating new ZenCoder job.
|
1322
|
+
ZenCoder job created, ID = 123
|
1323
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-05 19:44:41.771820', "updated_at" = '2011-12-05 19:44:41.772041' WHERE "videos"."id" = 1[0m
|
1324
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1326
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
|
1327
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1329
|
+
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
|
1330
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1331
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1332
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
|
1333
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1334
|
+
[1m[35mVideoFile Load (0.2ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
|
1335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1336
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
|
1337
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1338
|
+
Unfinished job found. Updating details.
|
1339
|
+
[1m[35mVideoFile Load (0.1ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1341
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1342
|
+
[1m[36mVideoFileThumbnail Load (0.1ms)[0m [1mSELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1[0m
|
1343
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1344
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1345
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1346
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-05 19:44:41.943182' WHERE "videos"."id" = 1[0m
|
1347
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1348
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1349
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1350
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1351
|
+
Unfinished job found. Updating details.
|
1352
|
+
[1m[35mVideoFile Load (0.2ms)[0m SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
|
1353
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1354
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
|
1355
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1356
|
+
[1m[35mVideoFileThumbnail Load (0.1ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1358
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1360
|
+
[1m[35m (0.1ms)[0m UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 19:44:41.957139' WHERE "videos"."id" = 1
|
1361
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1363
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Mon, 05 Dec 2011 19:44:41 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
|
1364
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1365
|
+
Unfinished job found. Updating details.
|
1366
|
+
[1m[36mVideoFile Load (0.1ms)[0m [1mSELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1[0m
|
1367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1368
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1369
|
+
[1m[35mVideoFileThumbnail Load (0.2ms)[0m SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
|
1370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Dec 2011 19:44:42 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Mon, 05 Dec 2011 19:44:42 UTC +00:00], ["video_id", 1]]
|
1372
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1374
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-05 19:44:42.016219' WHERE "videos"."id" = 1[0m
|
1375
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
@@ -10,6 +10,7 @@ class ZencodableGeneratorTest < Rails::Generators::TestCase
|
|
10
10
|
test "creates a migration for the output files model" do
|
11
11
|
run_generator %w(KittehMovie encoded_kitteh_vids)
|
12
12
|
assert_migration "db/migrate/zencodable_add_tracking_columns_and_tables.rb" do |migration|
|
13
|
+
assert_match /class ZencodableAddTrackingColumnsAndTables /, migration
|
13
14
|
assert_match /create_table "encoded_kitteh_vids"/, migration
|
14
15
|
assert_match /t\.integer\s+\"kitteh_movie_id\"/, migration
|
15
16
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: zencodable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sam Beam
|
@@ -148,7 +148,7 @@ files:
|
|
148
148
|
- test/dummy/public/favicon.ico
|
149
149
|
- test/dummy/Rakefile
|
150
150
|
- test/dummy/script/rails
|
151
|
-
- test/dummy/tmp/db/migrate/
|
151
|
+
- test/dummy/tmp/db/migrate/20111205194442_zencodable_add_tracking_columns_and_tables.rb
|
152
152
|
- test/factories.rb
|
153
153
|
- test/test_helper.rb
|
154
154
|
- test/zencodable_generators_test.rb
|
@@ -223,7 +223,7 @@ test_files:
|
|
223
223
|
- test/dummy/public/favicon.ico
|
224
224
|
- test/dummy/Rakefile
|
225
225
|
- test/dummy/script/rails
|
226
|
-
- test/dummy/tmp/db/migrate/
|
226
|
+
- test/dummy/tmp/db/migrate/20111205194442_zencodable_add_tracking_columns_and_tables.rb
|
227
227
|
- test/factories.rb
|
228
228
|
- test/test_helper.rb
|
229
229
|
- test/zencodable_generators_test.rb
|