resizor 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -1
- data/lib/resizor/asset.rb +2 -2
- data/lib/resizor/version.rb +1 -1
- data/test/asset_test.rb +12 -1
- data/test/debug.log +300 -0
- metadata +21 -18
data/README.rdoc
CHANGED
@@ -17,7 +17,8 @@ Install resizor gem
|
|
17
17
|
Add a initializer to RAILS_ROOT/config/initializers/resizor.rb
|
18
18
|
|
19
19
|
Resizor.configure do |config|
|
20
|
-
config.api_key = 'my-api-key'
|
20
|
+
config.api_key = 'my-api-key' # find this on the Account screen when logged in on Resizor.com
|
21
|
+
config.cdn_host = 'abc.cloudfront.net' # if you are using CloudFront to cache images generated by Resizor
|
21
22
|
end
|
22
23
|
|
23
24
|
Add Resizor fields to your model
|
data/lib/resizor/asset.rb
CHANGED
@@ -17,9 +17,9 @@ module Resizor
|
|
17
17
|
Digest::SHA1.hexdigest("#{Resizor.api_key}-#{id}-#{options[:size]}-#{options[:format]}")
|
18
18
|
end
|
19
19
|
|
20
|
-
def save_to_resizor
|
20
|
+
def save_to_resizor(params = {})
|
21
21
|
if path && File.exists?(path)
|
22
|
-
ret = Resizor.post('/assets.json', :file => File.open(path, 'rb'))
|
22
|
+
ret = Resizor.post('/assets.json', params.merge(:file => File.open(path, 'rb')))
|
23
23
|
if ret.code == 201
|
24
24
|
@id = ret.body['asset']['id']
|
25
25
|
@name = "#{ret.body['asset']['name']}.#{ret.body['asset']['extension']}"
|
data/lib/resizor/version.rb
CHANGED
data/test/asset_test.rb
CHANGED
@@ -75,10 +75,11 @@ class ResizorAssetTest < Test::Unit::TestCase
|
|
75
75
|
}.
|
76
76
|
to_return(:status => 201,
|
77
77
|
:body => '{"asset": { "id":1, "name":"i", "extension":"jpg", "mime_type":"image/jpeg", "height":7, "width":8, "file_size":9, "created_at":"2010-10-23T13:07:25Z"}}')
|
78
|
-
@asset.save_to_resizor
|
79
78
|
end
|
80
79
|
|
81
80
|
should 'make create call to Resizor on save with file' do
|
81
|
+
@asset.save_to_resizor
|
82
|
+
|
82
83
|
assert_requested(:post, "https://resizor.test:443/assets.json",
|
83
84
|
:times => 1) { |request|
|
84
85
|
request.body.include?("Content-Disposition: form-data; name=\"file\"; filename=\"image.jpg")
|
@@ -86,6 +87,8 @@ class ResizorAssetTest < Test::Unit::TestCase
|
|
86
87
|
end
|
87
88
|
|
88
89
|
should 'assign data for new assets as attributes' do
|
90
|
+
@asset.save_to_resizor
|
91
|
+
|
89
92
|
assert_equal 1, @asset.id
|
90
93
|
assert_equal 'i.jpg', @asset.name
|
91
94
|
assert_equal 'image/jpeg', @asset.mime_type
|
@@ -93,6 +96,14 @@ class ResizorAssetTest < Test::Unit::TestCase
|
|
93
96
|
assert_equal 8, @asset.width
|
94
97
|
assert_equal 9, @asset.size
|
95
98
|
end
|
99
|
+
|
100
|
+
should 'append extra params if supplied' do
|
101
|
+
@asset.save_to_resizor(:right_now => 'rocking-out')
|
102
|
+
assert_requested(:post, "https://resizor.test:443/assets.json",
|
103
|
+
:times => 1) { |request|
|
104
|
+
request.body.match /Content-Disposition: form-data; name=\"right_now\".+rocking-out/m
|
105
|
+
}
|
106
|
+
end
|
96
107
|
end
|
97
108
|
|
98
109
|
context 'on failure' do
|
data/test/debug.log
CHANGED
@@ -8287,3 +8287,303 @@
|
|
8287
8287
|
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8288
8288
|
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8289
8289
|
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8290
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8291
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8292
|
+
FROM sqlite_master
|
8293
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8294
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8295
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8296
|
+
FROM sqlite_master
|
8297
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8298
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8299
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8300
|
+
FROM sqlite_master
|
8301
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8302
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8303
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8304
|
+
[1m[36mAREL (0.0ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8305
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8306
|
+
FROM sqlite_master
|
8307
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8308
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8309
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8310
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8311
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8312
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8313
|
+
FROM sqlite_master
|
8314
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8315
|
+
[0m
|
8316
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8317
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8318
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8319
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('The second item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8320
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = 1, "image_name" = 'i.jpg', "image_mime_type" = 'image/jpeg', "image_size" = 9, "image_width" = 8, "image_height" = 7 WHERE "items"."id" = 2
|
8321
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8322
|
+
FROM sqlite_master
|
8323
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8324
|
+
[0m
|
8325
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8326
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8327
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8328
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8329
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8330
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8331
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8332
|
+
FROM sqlite_master
|
8333
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8334
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8335
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8336
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8337
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8338
|
+
FROM sqlite_master
|
8339
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8340
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8341
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8342
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8343
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8344
|
+
FROM sqlite_master
|
8345
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8346
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8347
|
+
[1m[35mSQL (0.2ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8348
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8349
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8350
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8351
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8352
|
+
FROM sqlite_master
|
8353
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8354
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8355
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8356
|
+
FROM sqlite_master
|
8357
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8358
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8359
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8360
|
+
FROM sqlite_master
|
8361
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8362
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8363
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8364
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8365
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8366
|
+
FROM sqlite_master
|
8367
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8368
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8369
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8370
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8371
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8372
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8373
|
+
FROM sqlite_master
|
8374
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8375
|
+
[0m
|
8376
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8377
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8378
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8379
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('The second item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8380
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = 1, "image_name" = 'i.jpg', "image_mime_type" = 'image/jpeg', "image_size" = 9, "image_width" = 8, "image_height" = 7 WHERE "items"."id" = 2
|
8381
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8382
|
+
FROM sqlite_master
|
8383
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8384
|
+
[0m
|
8385
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8386
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8387
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8388
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8389
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8390
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8391
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8392
|
+
FROM sqlite_master
|
8393
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8394
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8395
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8396
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8397
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8398
|
+
FROM sqlite_master
|
8399
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8400
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8401
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8402
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8403
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8404
|
+
FROM sqlite_master
|
8405
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8406
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8407
|
+
[1m[35mSQL (0.2ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8408
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8409
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8410
|
+
[1m[36mSQL (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
8411
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8412
|
+
FROM sqlite_master
|
8413
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8414
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8415
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8416
|
+
FROM sqlite_master
|
8417
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8418
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8419
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8420
|
+
FROM sqlite_master
|
8421
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8422
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8423
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8424
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8425
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8426
|
+
FROM sqlite_master
|
8427
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8428
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8429
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8430
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8431
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8432
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8433
|
+
FROM sqlite_master
|
8434
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8435
|
+
[0m
|
8436
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8437
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8438
|
+
[1m[35mAREL (0.2ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8439
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('The second item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8440
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = 1, "image_name" = 'i.jpg', "image_mime_type" = 'image/jpeg', "image_size" = 9, "image_width" = 8, "image_height" = 7 WHERE "items"."id" = 2
|
8441
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8442
|
+
FROM sqlite_master
|
8443
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8444
|
+
[0m
|
8445
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8446
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8447
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8448
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8449
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8450
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8451
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8452
|
+
FROM sqlite_master
|
8453
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8454
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8455
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8456
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8457
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8458
|
+
FROM sqlite_master
|
8459
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8460
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8461
|
+
[1m[35mSQL (0.2ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8462
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8463
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8464
|
+
FROM sqlite_master
|
8465
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8466
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8467
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8468
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8469
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8470
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8471
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8472
|
+
FROM sqlite_master
|
8473
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8474
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8475
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8476
|
+
FROM sqlite_master
|
8477
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8478
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8479
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8480
|
+
FROM sqlite_master
|
8481
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8482
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8483
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8484
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8485
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8486
|
+
FROM sqlite_master
|
8487
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8488
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8489
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8490
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8491
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8492
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8493
|
+
FROM sqlite_master
|
8494
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8495
|
+
[0m
|
8496
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8497
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8498
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8499
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('The second item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8500
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = 1, "image_name" = 'i.jpg', "image_mime_type" = 'image/jpeg', "image_size" = 9, "image_width" = 8, "image_height" = 7 WHERE "items"."id" = 2
|
8501
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8502
|
+
FROM sqlite_master
|
8503
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8504
|
+
[0m
|
8505
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8506
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8507
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8508
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8509
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8510
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8511
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8512
|
+
FROM sqlite_master
|
8513
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8514
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8515
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8516
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8517
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8518
|
+
FROM sqlite_master
|
8519
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8520
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8521
|
+
[1m[35mSQL (0.2ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8522
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8523
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8524
|
+
FROM sqlite_master
|
8525
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8526
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8527
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8528
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8529
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8530
|
+
[1m[36mSQL (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
8531
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8532
|
+
FROM sqlite_master
|
8533
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8534
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8535
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8536
|
+
FROM sqlite_master
|
8537
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8538
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8539
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8540
|
+
FROM sqlite_master
|
8541
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8542
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8543
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8544
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8545
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8546
|
+
FROM sqlite_master
|
8547
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8548
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8549
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8550
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8551
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8552
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8553
|
+
FROM sqlite_master
|
8554
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8555
|
+
[0m
|
8556
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8557
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8558
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8559
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('The second item', NULL, NULL, NULL, NULL, NULL, NULL)[0m
|
8560
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = 1, "image_name" = 'i.jpg', "image_mime_type" = 'image/jpeg', "image_size" = 9, "image_width" = 8, "image_height" = 7 WHERE "items"."id" = 2
|
8561
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8562
|
+
FROM sqlite_master
|
8563
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8564
|
+
[0m
|
8565
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8566
|
+
[1m[36mSQL (0.1ms)[0m [1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer) [0m
|
8567
|
+
[1m[35mAREL (0.1ms)[0m INSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)
|
8568
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8569
|
+
[1m[35mAREL (0.1ms)[0m UPDATE "items" SET "image_resizor_id" = NULL, "image_name" = NULL, "image_mime_type" = NULL, "image_size" = NULL, "image_width" = NULL, "image_height" = NULL WHERE "items"."id" = 1
|
8570
|
+
[1m[36mAREL (0.1ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8571
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8572
|
+
FROM sqlite_master
|
8573
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8574
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8575
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8576
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8577
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8578
|
+
FROM sqlite_master
|
8579
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8580
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8581
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8582
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8583
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8584
|
+
FROM sqlite_master
|
8585
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8586
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8587
|
+
[1m[35mSQL (0.1ms)[0m CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "image_resizor_id" varchar(255), "image_name" varchar(255), "image_mime_type" varchar(255), "image_size" integer, "image_width" integer, "image_height" integer)
|
8588
|
+
[1m[36mAREL (0.1ms)[0m [1mINSERT INTO "items" ("name", "image_resizor_id", "image_name", "image_mime_type", "image_size", "image_width", "image_height") VALUES ('my test item', 1, 'i.jpg', 'image/jpeg', 9, 8, 7)[0m
|
8589
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resizor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70169331283240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.9.2
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70169331283240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70169331282780 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.3.4
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70169331282780
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70169331282320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70169331282320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: shoulda
|
49
|
-
requirement: &
|
49
|
+
requirement: &70169331281860 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.11.3
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70169331281860
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: webmock
|
60
|
-
requirement: &
|
60
|
+
requirement: &70169331281400 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.6.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70169331281400
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord
|
71
|
-
requirement: &
|
71
|
+
requirement: &70169331280940 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 3.0.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70169331280940
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rest-client
|
82
|
-
requirement: &
|
82
|
+
requirement: &70169331280460 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 1.4.2
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70169331280460
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: json
|
93
|
-
requirement: &
|
93
|
+
requirement: &70169331279980 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: '1.2'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70169331279980
|
102
102
|
description: Lets you easily interface with the Resizor.com REST API. Includes Rails
|
103
103
|
helpers.
|
104
104
|
email:
|
@@ -138,6 +138,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- - ! '>='
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
hash: -3454473254103819806
|
141
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
145
|
none: false
|
143
146
|
requirements:
|