resizor 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resizor/asset.rb +13 -1
- data/lib/resizor/connection.rb +4 -3
- data/lib/resizor/resizor.rb +1 -1
- data/lib/resizor/version.rb +1 -1
- data/resizor.gemspec +15 -13
- data/test/asset_test.rb +28 -4
- data/test/debug.log +300 -0
- data/test/integration_test.rb +0 -1
- data/test/resizor_test.rb +1 -1
- metadata +43 -23
data/lib/resizor/asset.rb
CHANGED
@@ -8,9 +8,10 @@ module Resizor
|
|
8
8
|
|
9
9
|
def url(options={})
|
10
10
|
options = {:size => '200', :format => 'jpg'}.merge(options)
|
11
|
-
|
11
|
+
Resizor.cdn_host ? cdn_compatible_url(options) : query_string_url(options)
|
12
12
|
end
|
13
13
|
|
14
|
+
|
14
15
|
def resize_token_for(options={})
|
15
16
|
options = {:size => '200', :format => 'jpg'}.merge(options)
|
16
17
|
Digest::SHA1.hexdigest("#{Resizor.api_key}-#{id}-#{options[:size]}-#{options[:format]}")
|
@@ -39,6 +40,17 @@ module Resizor
|
|
39
40
|
return true
|
40
41
|
end
|
41
42
|
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def query_string_url(options={})
|
47
|
+
"#{Resizor.api_url(true)}/assets/#{id}.#{options[:format]}?size=#{options[:size]}#{"&cutout="+options[:cutout] if options[:cutout]}&token=#{resize_token_for(options)}"
|
48
|
+
end
|
49
|
+
|
50
|
+
def cdn_compatible_url(options={})
|
51
|
+
"http://#{Resizor.cdn_host}/assets/#{options[:size]}#{"/"+options[:cutout] if options[:cutout]}/#{resize_token_for(options)}/#{id}.#{options[:format]}"
|
52
|
+
end
|
53
|
+
|
42
54
|
end
|
43
55
|
|
44
56
|
class AttachedResizorAsset < Resizor::ResizorAsset
|
data/lib/resizor/connection.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
require 'cgi'
|
2
2
|
module Resizor
|
3
3
|
class ResizorConnection
|
4
|
-
attr_accessor :api_host, :api_port, :api_key, :use_ssl
|
4
|
+
attr_accessor :api_host, :api_port, :api_key, :use_ssl, :cdn_host
|
5
5
|
|
6
6
|
def initialize(options={})
|
7
7
|
@api_host = options[:api_host] || options['api_host'] || 'resizor.com'
|
8
8
|
@api_port = options[:api_port] || options['api_port'] || 80
|
9
|
-
@api_key = options[:api_key]
|
10
|
-
@use_ssl = options[:use_ssl]
|
9
|
+
@api_key = options[:api_key] || options['api_key']
|
10
|
+
@use_ssl = options[:use_ssl] || options['use_ssl'] || true
|
11
|
+
@cdn_host = options[:cdn_host] || options['cdn_host']
|
11
12
|
end
|
12
13
|
|
13
14
|
def get(request_uri, params={}, append_api_key=true)
|
data/lib/resizor/resizor.rb
CHANGED
@@ -6,7 +6,7 @@ module Resizor
|
|
6
6
|
extend self
|
7
7
|
extend Forwardable
|
8
8
|
attr_reader :connection
|
9
|
-
def_delegators :connection, :get, :post, :delete, :api_url, :api_key, :use_ssl
|
9
|
+
def_delegators :connection, :get, :post, :delete, :api_url, :api_key, :use_ssl, :cdn_host
|
10
10
|
|
11
11
|
def configure
|
12
12
|
yield @connection = ResizorConnection.new
|
data/lib/resizor/version.rb
CHANGED
data/resizor.gemspec
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require File.expand_path(
|
2
|
+
require File.expand_path('../lib/resizor/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
|
-
s.name =
|
5
|
+
s.name = 'resizor'
|
6
6
|
s.version = Resizor::VERSION
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
|
-
s.authors = [
|
9
|
-
s.email = [
|
10
|
-
s.homepage =
|
11
|
-
s.summary =
|
12
|
-
s.description =
|
8
|
+
s.authors = ['Oktavilla']
|
9
|
+
s.email = ['hello@resizor.com']
|
10
|
+
s.homepage = 'http://github.org/oktavilla/resizor-gem'
|
11
|
+
s.summary = 'Client for Resizor.com API'
|
12
|
+
s.description = 'Lets you easily interface with the Resizor.com REST API. Includes Rails helpers.'
|
13
13
|
|
14
|
-
s.required_rubygems_version =
|
14
|
+
s.required_rubygems_version = '>= 1.3.6'
|
15
15
|
|
16
|
-
s.add_development_dependency
|
17
|
-
s.add_development_dependency
|
18
|
-
s.add_development_dependency
|
16
|
+
s.add_development_dependency 'rake', '~> 0.9.2'
|
17
|
+
s.add_development_dependency 'sqlite3', '~> 1.3.4'
|
18
|
+
s.add_development_dependency 'bundler', '~> 1.0.0'
|
19
|
+
s.add_development_dependency 'shoulda', '~> 2.11.3'
|
20
|
+
s.add_development_dependency 'webmock', '~> 1.6.2'
|
19
21
|
s.add_development_dependency 'activerecord', '~>3.0.0'
|
20
22
|
|
21
|
-
s.add_dependency(%q<rest-client>, [
|
22
|
-
s.add_dependency(%q<json>, [
|
23
|
+
s.add_dependency(%q<rest-client>, ['>= 1.4.2'])
|
24
|
+
s.add_dependency(%q<json>, ['>= 1.2'])
|
23
25
|
|
24
26
|
s.files = Dir.glob("{test,lib}/**/*") + %w(README.rdoc resizor.gemspec Rakefile Gemfile)
|
25
27
|
s.require_path = 'lib'
|
data/test/asset_test.rb
CHANGED
@@ -11,6 +11,7 @@ class ResizorAssetTest < Test::Unit::TestCase
|
|
11
11
|
:height => 300,
|
12
12
|
:size => 123456)
|
13
13
|
end
|
14
|
+
|
14
15
|
should "have assigned attributes" do
|
15
16
|
assert_equal @asset.id, 10
|
16
17
|
assert_equal @asset.name, 'my_file.jpg'
|
@@ -20,12 +21,35 @@ class ResizorAssetTest < Test::Unit::TestCase
|
|
20
21
|
assert_equal @asset.size, 123456
|
21
22
|
end
|
22
23
|
|
23
|
-
|
24
|
-
|
24
|
+
context 'when no cdn host set' do
|
25
|
+
|
26
|
+
should 'generate url for size c200x300' do
|
27
|
+
assert_equal 'http://resizor.test:80/assets/10.jpg?size=c200x300&token=b8bb7c4c7c4fc1006c904f011f32f50f69730e5e', @asset.url(:size => 'c200x300')
|
28
|
+
end
|
29
|
+
|
30
|
+
should 'generate url for size c200x300 format png' do
|
31
|
+
assert_equal 'http://resizor.test:80/assets/10.png?size=c200x300&token=0cf27070e89c44a40aee85decca2cd2d98af1dc2', @asset.url(:size => 'c200x300', :format => 'png')
|
32
|
+
end
|
33
|
+
|
25
34
|
end
|
26
35
|
|
27
|
-
|
28
|
-
|
36
|
+
context 'when cdn host is set' do
|
37
|
+
|
38
|
+
setup do
|
39
|
+
Resizor.connection.cdn_host = 'abc.cloudfront.com'
|
40
|
+
end
|
41
|
+
|
42
|
+
teardown do
|
43
|
+
Resizor.connection.cdn_host = nil
|
44
|
+
end
|
45
|
+
|
46
|
+
should 'generate url for size c200x300' do
|
47
|
+
assert_equal 'http://abc.cloudfront.com/assets/c200x300/b8bb7c4c7c4fc1006c904f011f32f50f69730e5e/10.jpg', @asset.url(:size => 'c200x300')
|
48
|
+
end
|
49
|
+
|
50
|
+
should 'generate url for size c200x300 format png' do
|
51
|
+
assert_equal 'http://abc.cloudfront.com/assets/c200x300/0cf27070e89c44a40aee85decca2cd2d98af1dc2/10.png', @asset.url(:size => 'c200x300', :format => 'png')
|
52
|
+
end
|
29
53
|
end
|
30
54
|
|
31
55
|
should 'generate resize token for size c200x300 and format jpg' do
|
data/test/debug.log
CHANGED
@@ -7987,3 +7987,303 @@
|
|
7987
7987
|
[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)
|
7988
7988
|
[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
|
7989
7989
|
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
7990
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
7991
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
7992
|
+
FROM sqlite_master
|
7993
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
7994
|
+
[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
|
7995
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
7996
|
+
FROM sqlite_master
|
7997
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
7998
|
+
[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
|
7999
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8000
|
+
FROM sqlite_master
|
8001
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8002
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8003
|
+
[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)
|
8004
|
+
[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
|
8005
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8006
|
+
FROM sqlite_master
|
8007
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8008
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8009
|
+
[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)
|
8010
|
+
[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
|
8011
|
+
[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
|
8012
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8013
|
+
FROM sqlite_master
|
8014
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8015
|
+
[0m
|
8016
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8017
|
+
[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
|
8018
|
+
[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)
|
8019
|
+
[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
|
8020
|
+
[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
|
8021
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8022
|
+
FROM sqlite_master
|
8023
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8024
|
+
[0m
|
8025
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8026
|
+
[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
|
8027
|
+
[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)
|
8028
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8029
|
+
[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
|
8030
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8031
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8032
|
+
FROM sqlite_master
|
8033
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8034
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8035
|
+
[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)
|
8036
|
+
[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
|
8037
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8038
|
+
FROM sqlite_master
|
8039
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8040
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8041
|
+
[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)
|
8042
|
+
[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
|
8043
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8044
|
+
FROM sqlite_master
|
8045
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8046
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8047
|
+
[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)
|
8048
|
+
[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
|
8049
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8050
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8051
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8052
|
+
FROM sqlite_master
|
8053
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8054
|
+
[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
|
8055
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8056
|
+
FROM sqlite_master
|
8057
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8058
|
+
[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
|
8059
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8060
|
+
FROM sqlite_master
|
8061
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8062
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8063
|
+
[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)
|
8064
|
+
[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
|
8065
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8066
|
+
FROM sqlite_master
|
8067
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8068
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8069
|
+
[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)
|
8070
|
+
[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
|
8071
|
+
[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
|
8072
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8073
|
+
FROM sqlite_master
|
8074
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8075
|
+
[0m
|
8076
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8077
|
+
[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
|
8078
|
+
[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)
|
8079
|
+
[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
|
8080
|
+
[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
|
8081
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8082
|
+
FROM sqlite_master
|
8083
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8084
|
+
[0m
|
8085
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8086
|
+
[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
|
8087
|
+
[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)
|
8088
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8089
|
+
[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
|
8090
|
+
[1m[36mAREL (0.1ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8091
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8092
|
+
FROM sqlite_master
|
8093
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8094
|
+
[1m[36mSQL (0.2ms)[0m [1mDROP TABLE "items"[0m
|
8095
|
+
[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)
|
8096
|
+
[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
|
8097
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8098
|
+
FROM sqlite_master
|
8099
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8100
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8101
|
+
[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)
|
8102
|
+
[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
|
8103
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8104
|
+
FROM sqlite_master
|
8105
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8106
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8107
|
+
[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)
|
8108
|
+
[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
|
8109
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8110
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8111
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8112
|
+
FROM sqlite_master
|
8113
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8114
|
+
[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
|
8115
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8116
|
+
FROM sqlite_master
|
8117
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8118
|
+
[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
|
8119
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8120
|
+
FROM sqlite_master
|
8121
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8122
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8123
|
+
[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)
|
8124
|
+
[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
|
8125
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8126
|
+
FROM sqlite_master
|
8127
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8128
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8129
|
+
[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)
|
8130
|
+
[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
|
8131
|
+
[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
|
8132
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8133
|
+
FROM sqlite_master
|
8134
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8135
|
+
[0m
|
8136
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8137
|
+
[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
|
8138
|
+
[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)
|
8139
|
+
[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
|
8140
|
+
[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
|
8141
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8142
|
+
FROM sqlite_master
|
8143
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8144
|
+
[0m
|
8145
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8146
|
+
[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
|
8147
|
+
[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)
|
8148
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8149
|
+
[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
|
8150
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8151
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8152
|
+
FROM sqlite_master
|
8153
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8154
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8155
|
+
[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)
|
8156
|
+
[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
|
8157
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8158
|
+
FROM sqlite_master
|
8159
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8160
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8161
|
+
[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)
|
8162
|
+
[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
|
8163
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8164
|
+
FROM sqlite_master
|
8165
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8166
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8167
|
+
[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)
|
8168
|
+
[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
|
8169
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8170
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8171
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8172
|
+
FROM sqlite_master
|
8173
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8174
|
+
[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
|
8175
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8176
|
+
FROM sqlite_master
|
8177
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8178
|
+
[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
|
8179
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8180
|
+
FROM sqlite_master
|
8181
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8182
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8183
|
+
[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)
|
8184
|
+
[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
|
8185
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8186
|
+
FROM sqlite_master
|
8187
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8188
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8189
|
+
[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)
|
8190
|
+
[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
|
8191
|
+
[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
|
8192
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8193
|
+
FROM sqlite_master
|
8194
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8195
|
+
[0m
|
8196
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8197
|
+
[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
|
8198
|
+
[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)
|
8199
|
+
[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
|
8200
|
+
[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
|
8201
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8202
|
+
FROM sqlite_master
|
8203
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8204
|
+
[0m
|
8205
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8206
|
+
[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
|
8207
|
+
[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)
|
8208
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8209
|
+
[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
|
8210
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8211
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8212
|
+
FROM sqlite_master
|
8213
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8214
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8215
|
+
[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)
|
8216
|
+
[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
|
8217
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8218
|
+
FROM sqlite_master
|
8219
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8220
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8221
|
+
[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)
|
8222
|
+
[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
|
8223
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8224
|
+
FROM sqlite_master
|
8225
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8226
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8227
|
+
[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)
|
8228
|
+
[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
|
8229
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8230
|
+
[1m[36mSQL (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
8231
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8232
|
+
FROM sqlite_master
|
8233
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8234
|
+
[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
|
8235
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8236
|
+
FROM sqlite_master
|
8237
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8238
|
+
[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
|
8239
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8240
|
+
FROM sqlite_master
|
8241
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8242
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8243
|
+
[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)
|
8244
|
+
[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
|
8245
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8246
|
+
FROM sqlite_master
|
8247
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8248
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8249
|
+
[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)
|
8250
|
+
[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
|
8251
|
+
[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
|
8252
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8253
|
+
FROM sqlite_master
|
8254
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8255
|
+
[0m
|
8256
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8257
|
+
[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
|
8258
|
+
[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)
|
8259
|
+
[1m[36mAREL (0.0ms)[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
|
8260
|
+
[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
|
8261
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8262
|
+
FROM sqlite_master
|
8263
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8264
|
+
[0m
|
8265
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8266
|
+
[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
|
8267
|
+
[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)
|
8268
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8269
|
+
[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
|
8270
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8271
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8272
|
+
FROM sqlite_master
|
8273
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8274
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8275
|
+
[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)
|
8276
|
+
[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
|
8277
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8278
|
+
FROM sqlite_master
|
8279
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8280
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8281
|
+
[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)
|
8282
|
+
[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
|
8283
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8284
|
+
FROM sqlite_master
|
8285
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8286
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
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
|
+
[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
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
data/test/integration_test.rb
CHANGED
data/test/resizor_test.rb
CHANGED
@@ -48,7 +48,7 @@ class ResizorTest < Test::Unit::TestCase
|
|
48
48
|
stub_http_request(:delete, "https://resizor.test:443/assets/1.json?api_key=test-api-key")
|
49
49
|
Resizor.delete('/assets/1.json').tap do |r|
|
50
50
|
assert_equal 200, r.code
|
51
|
-
|
51
|
+
assert_equal '', r.body.to_s
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
metadata
CHANGED
@@ -1,53 +1,74 @@
|
|
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.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Oktavilla
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-10-28 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: &70147524350080 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.9.2
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70147524350080
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sqlite3
|
27
|
+
requirement: &70147524361860 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.3.4
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70147524361860
|
15
36
|
- !ruby/object:Gem::Dependency
|
16
37
|
name: bundler
|
17
|
-
requirement: &
|
38
|
+
requirement: &70147524365080 !ruby/object:Gem::Requirement
|
18
39
|
none: false
|
19
40
|
requirements:
|
20
|
-
- -
|
41
|
+
- - ~>
|
21
42
|
- !ruby/object:Gem::Version
|
22
43
|
version: 1.0.0
|
23
44
|
type: :development
|
24
45
|
prerelease: false
|
25
|
-
version_requirements: *
|
46
|
+
version_requirements: *70147524365080
|
26
47
|
- !ruby/object:Gem::Dependency
|
27
48
|
name: shoulda
|
28
|
-
requirement: &
|
49
|
+
requirement: &70147524378680 !ruby/object:Gem::Requirement
|
29
50
|
none: false
|
30
51
|
requirements:
|
31
|
-
- -
|
52
|
+
- - ~>
|
32
53
|
- !ruby/object:Gem::Version
|
33
54
|
version: 2.11.3
|
34
55
|
type: :development
|
35
56
|
prerelease: false
|
36
|
-
version_requirements: *
|
57
|
+
version_requirements: *70147524378680
|
37
58
|
- !ruby/object:Gem::Dependency
|
38
59
|
name: webmock
|
39
|
-
requirement: &
|
60
|
+
requirement: &70147524377060 !ruby/object:Gem::Requirement
|
40
61
|
none: false
|
41
62
|
requirements:
|
42
|
-
- -
|
63
|
+
- - ~>
|
43
64
|
- !ruby/object:Gem::Version
|
44
65
|
version: 1.6.2
|
45
66
|
type: :development
|
46
67
|
prerelease: false
|
47
|
-
version_requirements: *
|
68
|
+
version_requirements: *70147524377060
|
48
69
|
- !ruby/object:Gem::Dependency
|
49
70
|
name: activerecord
|
50
|
-
requirement: &
|
71
|
+
requirement: &70147524376060 !ruby/object:Gem::Requirement
|
51
72
|
none: false
|
52
73
|
requirements:
|
53
74
|
- - ~>
|
@@ -55,10 +76,10 @@ dependencies:
|
|
55
76
|
version: 3.0.0
|
56
77
|
type: :development
|
57
78
|
prerelease: false
|
58
|
-
version_requirements: *
|
79
|
+
version_requirements: *70147524376060
|
59
80
|
- !ruby/object:Gem::Dependency
|
60
81
|
name: rest-client
|
61
|
-
requirement: &
|
82
|
+
requirement: &70147524385300 !ruby/object:Gem::Requirement
|
62
83
|
none: false
|
63
84
|
requirements:
|
64
85
|
- - ! '>='
|
@@ -66,10 +87,10 @@ dependencies:
|
|
66
87
|
version: 1.4.2
|
67
88
|
type: :runtime
|
68
89
|
prerelease: false
|
69
|
-
version_requirements: *
|
90
|
+
version_requirements: *70147524385300
|
70
91
|
- !ruby/object:Gem::Dependency
|
71
92
|
name: json
|
72
|
-
requirement: &
|
93
|
+
requirement: &70147524395040 !ruby/object:Gem::Requirement
|
73
94
|
none: false
|
74
95
|
requirements:
|
75
96
|
- - ! '>='
|
@@ -77,8 +98,8 @@ dependencies:
|
|
77
98
|
version: '1.2'
|
78
99
|
type: :runtime
|
79
100
|
prerelease: false
|
80
|
-
version_requirements: *
|
81
|
-
description: Lets you easily interface with Resizor.com
|
101
|
+
version_requirements: *70147524395040
|
102
|
+
description: Lets you easily interface with the Resizor.com REST API. Includes Rails
|
82
103
|
helpers.
|
83
104
|
email:
|
84
105
|
- hello@resizor.com
|
@@ -105,8 +126,7 @@ files:
|
|
105
126
|
- resizor.gemspec
|
106
127
|
- Rakefile
|
107
128
|
- Gemfile
|
108
|
-
|
109
|
-
homepage: http://github.org/winstondesign/resizor-gem
|
129
|
+
homepage: http://github.org/oktavilla/resizor-gem
|
110
130
|
licenses: []
|
111
131
|
post_install_message:
|
112
132
|
rdoc_options: []
|
@@ -126,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
146
|
version: 1.3.6
|
127
147
|
requirements: []
|
128
148
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.
|
149
|
+
rubygems_version: 1.8.10
|
130
150
|
signing_key:
|
131
151
|
specification_version: 3
|
132
152
|
summary: Client for Resizor.com API
|