saphira 0.0.1 → 0.1.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/saphira/application_controller.rb +1 -1
- data/lib/saphira/version.rb +1 -1
- data/test/dummy/log/test.log +137 -0
- data/test/dummy/system/files/test/2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg +0 -0
- data/test/dummy/system/files/test/2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg.meta +1 -0
- metadata +9 -5
data/lib/saphira/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -360,3 +360,140 @@ Started GET "/admin/saphira/files/my-first-image" for 127.0.0.1 at 2011-09-04 20
|
|
360
360
|
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
361
361
|
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (15.9ms)
|
362
362
|
Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.5ms)
|
363
|
+
|
364
|
+
|
365
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-05 09:42:45 +0200
|
366
|
+
Processing by Saphira::FileItemsController#index as HTML
|
367
|
+
[1m[36mSaphira::FileItem Load (0.1ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
368
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (28.7ms)
|
369
|
+
Completed 200 OK in 116ms (Views: 100.4ms | ActiveRecord: 0.3ms)
|
370
|
+
|
371
|
+
|
372
|
+
Started GET "/admin/saphira/files/new?type=folder" for 127.0.0.1 at 2011-09-05 09:42:45 +0200
|
373
|
+
Processing by Saphira::FileItemsController#new as HTML
|
374
|
+
Parameters: {"type"=>"folder"}
|
375
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.3ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
376
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (262.4ms)
|
377
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_folder.html.erb within layouts/saphira/application (279.0ms)
|
378
|
+
Completed 200 OK in 282ms (Views: 280.1ms | ActiveRecord: 0.8ms)
|
379
|
+
|
380
|
+
|
381
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
382
|
+
Processing by Saphira::FileItemsController#create as HTML
|
383
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first folder", "tag_list"=>"", "item_type"=>"folder", "parent_id"=>""}, "commit"=>"Create"}
|
384
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
385
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-folder' OR "slug" LIKE 'my-first-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
386
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
387
|
+
[1m[35m (0.2ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
388
|
+
[1m[36mSQL (7.0ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 1], ["name", "My first folder"], ["parent_id", nil], ["path", "my-first-folder"], ["rgt", 2], ["slug", "my-first-folder"], ["updated_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00]]
|
389
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
390
|
+
[1m[36mActsAsTaggableOn::Tagging Load (0.1ms)[0m [1mSELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)[0m
|
391
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
392
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-folder
|
393
|
+
Completed 302 Found in 270ms
|
394
|
+
|
395
|
+
|
396
|
+
Started GET "/admin/saphira/files/my-first-folder" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
397
|
+
Processing by Saphira::FileItemsController#show as HTML
|
398
|
+
Parameters: {"id"=>"my-first-folder"}
|
399
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-folder' LIMIT 1[0m
|
400
|
+
[1m[35mSaphira::FileItem Load (0.1ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
401
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" = 1 ORDER BY "lft"[0m
|
402
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (20.2ms)
|
403
|
+
Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.5ms)
|
404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
405
|
+
[1m[36mSaphira::FileItem Load (0.3ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-folder' OR "slug" LIKE 'my-first-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1[0m
|
406
|
+
[1m[35m (0.1ms)[0m SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
|
407
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items" [0m
|
408
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 1], ["name", "My first folder"], ["parent_id", nil], ["path", "my-first-folder"], ["rgt", 2], ["slug", "my-first-folder"], ["updated_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00]]
|
409
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
411
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-second-folder' OR "slug" LIKE 'my-second-folder--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1[0m
|
412
|
+
[1m[35m (0.1ms)[0m SELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My second folder' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1
|
413
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items" [0m
|
414
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00], ["dynamic_attributes", "--- \n"], ["file_name", nil], ["file_uid", nil], ["item_type", "folder"], ["lft", 3], ["name", "My second folder"], ["parent_id", nil], ["path", "my-second-folder"], ["rgt", 4], ["slug", "my-second-folder"], ["updated_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00]]
|
415
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
416
|
+
|
417
|
+
|
418
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
419
|
+
Processing by Saphira::FileItemsController#index as HTML
|
420
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
|
421
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (6.7ms)
|
422
|
+
Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)
|
423
|
+
|
424
|
+
|
425
|
+
Started DELETE "/admin/saphira/files/my-first-folder" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
426
|
+
Processing by Saphira::FileItemsController#destroy as HTML
|
427
|
+
Parameters: {"id"=>"my-first-folder"}
|
428
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-folder' LIMIT 1[0m
|
429
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
430
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "saphira_file_items" WHERE ("lft" > 1 AND "rgt" < 2)[0m
|
431
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "saphira_file_items" SET "lft" = ("lft" - 2) WHERE "saphira_file_items"."id" IN (SELECT "saphira_file_items"."id" FROM "saphira_file_items" WHERE ("lft" > 2) ORDER BY "lft")
|
432
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "saphira_file_items" SET "rgt" = ("rgt" - 2) WHERE "saphira_file_items"."id" IN (SELECT "saphira_file_items"."id" FROM "saphira_file_items" WHERE ("rgt" > 2) ORDER BY "lft")[0m
|
433
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.1ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem'
|
434
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "taggings"."id" AS t0_r0, "taggings"."tag_id" AS t0_r1, "taggings"."taggable_id" AS t0_r2, "taggings"."taggable_type" AS t0_r3, "taggings"."tagger_id" AS t0_r4, "taggings"."tagger_type" AS t0_r5, "taggings"."context" AS t0_r6, "taggings"."created_at" AS t0_r7, "tags"."id" AS t1_r0, "tags"."name" AS t1_r1 FROM "taggings" LEFT OUTER JOIN "tags" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.tag_id = tags.id AND taggings.context = 'tags')[0m
|
435
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "saphira_file_items" WHERE "saphira_file_items"."id" = ? [["id", 1]]
|
436
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
437
|
+
Redirected to http://www.example.com/admin/saphira/files
|
438
|
+
Completed 302 Found in 27ms
|
439
|
+
|
440
|
+
|
441
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
442
|
+
Processing by Saphira::FileItemsController#index as HTML
|
443
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL
|
444
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (4.8ms)
|
445
|
+
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms)
|
446
|
+
|
447
|
+
|
448
|
+
Started GET "/admin/saphira/files" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
449
|
+
Processing by Saphira::FileItemsController#index as HTML
|
450
|
+
[1m[36mSaphira::FileItem Load (0.2ms)[0m [1mSELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL[0m
|
451
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/index.html.erb within layouts/saphira/application (1.2ms)
|
452
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
453
|
+
|
454
|
+
|
455
|
+
Started GET "/admin/saphira/files/new?type=file" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
456
|
+
Processing by Saphira::FileItemsController#new as HTML
|
457
|
+
Parameters: {"type"=>"file"}
|
458
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.2ms)[0m SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
|
459
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/_form.html.erb (4.6ms)
|
460
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/new_file.html.erb within layouts/saphira/application (5.8ms)
|
461
|
+
Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.2ms)
|
462
|
+
|
463
|
+
|
464
|
+
Started POST "/admin/saphira/files" for 127.0.0.1 at 2011-09-05 09:42:46 +0200
|
465
|
+
Processing by Saphira::FileItemsController#create as HTML
|
466
|
+
Parameters: {"utf8"=>"✓", "file_item"=>{"name"=>"My first image", "file"=>#<ActionDispatch::Http::UploadedFile:0x00000104788610 @original_filename="eos-550d-wrong-orientation.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file_item[file]\"; filename=\"eos-550d-wrong-orientation.jpg\"\r\nContent-Type: image/jpeg\r\nContent-Length: 77008\r\n", @tempfile=#<File:/var/folders/j5/j5YeT6owHCOVwWrGfycQx++++TI/-Tmp-/RackMultipart20110905-370-7w5ekg>>, "tag_list"=>"Trash, Orange, Berlin", "item_type"=>"file", "parent_id"=>""}, "commit"=>"Create"}
|
467
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
468
|
+
[1m[35mSaphira::FileItem Load (0.4ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."parent_id" IS NULL AND ("slug" = 'my-first-image' OR "slug" LIKE 'my-first-image--%') ORDER BY LENGTH("slug") DESC, "slug" DESC LIMIT 1
|
469
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "saphira_file_items" WHERE ("saphira_file_items"."name" = 'My first image' AND "saphira_file_items"."parent_id" IS NULL) LIMIT 1[0m
|
470
|
+
[1m[35m (0.4ms)[0m SELECT MAX("saphira_file_items"."rgt") AS max_id FROM "saphira_file_items"
|
471
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "saphira_file_items" ("created_at", "dynamic_attributes", "file_name", "file_uid", "item_type", "lft", "name", "parent_id", "path", "rgt", "slug", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00], ["dynamic_attributes", "--- \n:field_image_capture_date: 2011-08-26 14:04:10 +02:00\n:field_image_exposure_time: !ruby/object:Rational \n denominator: 40\n numerator: 1\n:field_image_f_number: !ruby/object:Rational \n denominator: 1\n numerator: 10\n:field_image_make: Canon\n:field_image_model: Canon EOS 550D\n:field_image_orientation: 8\n:field_image_orientation_transformed: true\n"], ["file_name", "eos-550d-wrong-orientation.jpg"], ["file_uid", "2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg"], ["item_type", "file"], ["lft", 1], ["name", "My first image"], ["parent_id", nil], ["path", "my-first-image"], ["rgt", 2], ["slug", "my-first-image"], ["updated_at", Mon, 05 Sep 2011 07:42:46 UTC +00:00]]
|
472
|
+
[1m[35mActsAsTaggableOn::Tag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE (name LIKE 'Trash' OR name LIKE 'Orange' OR name LIKE 'Berlin')
|
473
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Trash' LIMIT 1[0m
|
474
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Trash"]]
|
475
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Orange' LIMIT 1[0m
|
476
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Orange"]]
|
477
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "tags" WHERE "tags"."name" = 'Berlin' LIMIT 1[0m
|
478
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "tags" ("name") VALUES (?) [["name", "Berlin"]]
|
479
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
480
|
+
[1m[35mActsAsTaggableOn::Tagging Load (0.2ms)[0m SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."tagger_type" IS NULL AND "taggings"."tagger_id" IS NULL AND "taggings"."context" = 'tags' AND "taggings"."tag_id" IN (NULL)
|
481
|
+
[1m[36m (0.2ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
482
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Mon, 05 Sep 2011 07:42:47 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
483
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 2 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
484
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Mon, 05 Sep 2011 07:42:47 UTC +00:00], ["tag_id", 2], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
485
|
+
[1m[36m (0.1ms)[0m [1mSELECT 1 FROM "taggings" WHERE ("taggings"."tag_id" = 3 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1[0m
|
486
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["context", "tags"], ["created_at", Mon, 05 Sep 2011 07:42:47 UTC +00:00], ["tag_id", 3], ["taggable_id", 1], ["taggable_type", "Saphira::FileItem"], ["tagger_id", nil], ["tagger_type", nil]]
|
487
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
488
|
+
Redirected to http://www.example.com/admin/saphira/files/my-first-image
|
489
|
+
Completed 302 Found in 186ms
|
490
|
+
|
491
|
+
|
492
|
+
Started GET "/admin/saphira/files/my-first-image" for 127.0.0.1 at 2011-09-05 09:42:47 +0200
|
493
|
+
Processing by Saphira::FileItemsController#show as HTML
|
494
|
+
Parameters: {"id"=>"my-first-image"}
|
495
|
+
[1m[35mSaphira::FileItem Load (0.5ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."path" = 'my-first-image' LIMIT 1
|
496
|
+
[1m[36mActsAsTaggableOn::Tag Load (0.2ms)[0m [1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Saphira::FileItem' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)[0m
|
497
|
+
[1m[35mSaphira::FileItem Load (0.2ms)[0m SELECT "saphira_file_items".* FROM "saphira_file_items" WHERE "saphira_file_items"."id" IS NULL LIMIT 1
|
498
|
+
Rendered /Users/spieker/Sites/gems-projects/saphira/app/views/saphira/file_items/show.html.erb within layouts/saphira/application (18.3ms)
|
499
|
+
Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.9ms)
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
{: nameI"#eos-550d-wrong-orientation.jpg:ET:model_classI"Saphira::FileItem;F:model_attachment: file
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saphira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.0.
|
4
|
+
prerelease: 6
|
5
|
+
version: 0.1.0.beta1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Paul Spieker
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -130,6 +130,8 @@ files:
|
|
130
130
|
- test/dummy/system/files/development/2011/09/04/20_16_51_527_IMG_0074.JPG.meta
|
131
131
|
- test/dummy/system/files/test/2011/09/04/20_14_52_22_eos_550d_wrong_orientation.jpg
|
132
132
|
- test/dummy/system/files/test/2011/09/04/20_14_52_22_eos_550d_wrong_orientation.jpg.meta
|
133
|
+
- test/dummy/system/files/test/2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg
|
134
|
+
- test/dummy/system/files/test/2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg.meta
|
133
135
|
- test/dummy/tmp/cache/assets/C54/230/sprockets%2F63597bd80af49501176a9c782c200818
|
134
136
|
- test/dummy/tmp/cache/assets/C8A/C90/sprockets%2Fb0034d98e259fe21084231df778476e5
|
135
137
|
- test/dummy/tmp/cache/assets/CBB/220/sprockets%2Fe50398a56291b292932098dbaf6f60e7
|
@@ -180,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
183
|
none: false
|
182
184
|
requirements:
|
183
|
-
- - "
|
185
|
+
- - ">"
|
184
186
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
187
|
+
version: 1.3.1
|
186
188
|
requirements: []
|
187
189
|
|
188
190
|
rubyforge_project:
|
@@ -241,6 +243,8 @@ test_files:
|
|
241
243
|
- test/dummy/system/files/development/2011/09/04/20_16_51_527_IMG_0074.JPG.meta
|
242
244
|
- test/dummy/system/files/test/2011/09/04/20_14_52_22_eos_550d_wrong_orientation.jpg
|
243
245
|
- test/dummy/system/files/test/2011/09/04/20_14_52_22_eos_550d_wrong_orientation.jpg.meta
|
246
|
+
- test/dummy/system/files/test/2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg
|
247
|
+
- test/dummy/system/files/test/2011/09/05/09_42_46_972_eos_550d_wrong_orientation.jpg.meta
|
244
248
|
- test/dummy/tmp/cache/assets/C54/230/sprockets%2F63597bd80af49501176a9c782c200818
|
245
249
|
- test/dummy/tmp/cache/assets/C8A/C90/sprockets%2Fb0034d98e259fe21084231df778476e5
|
246
250
|
- test/dummy/tmp/cache/assets/CBB/220/sprockets%2Fe50398a56291b292932098dbaf6f60e7
|