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 CHANGED
@@ -8,9 +8,10 @@ module Resizor
8
8
 
9
9
  def url(options={})
10
10
  options = {:size => '200', :format => 'jpg'}.merge(options)
11
- "#{Resizor.api_url(true)}/assets/#{id}.#{options[:format]}?size=#{options[:size]}#{"&cutout="+options[:cutout] if options[:cutout]}&token=#{resize_token_for(options)}"
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
@@ -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] || options['api_key']
10
- @use_ssl = options[:use_ssl] || options['use_ssl'] || true
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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Resizor
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/resizor.gemspec CHANGED
@@ -1,25 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path("../lib/resizor/version", __FILE__)
2
+ require File.expand_path('../lib/resizor/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "resizor"
5
+ s.name = 'resizor'
6
6
  s.version = Resizor::VERSION
7
7
  s.platform = Gem::Platform::RUBY
8
- s.authors = ["Winston Design"]
9
- s.email = ["hello@resizor.com"]
10
- s.homepage = "http://github.org/winstondesign/resizor-gem"
11
- s.summary = "Client for Resizor.com API"
12
- s.description = "Lets you easily interface with Resizor.com's REST API. Includes Rails helpers."
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 = ">= 1.3.6"
14
+ s.required_rubygems_version = '>= 1.3.6'
15
15
 
16
- s.add_development_dependency "bundler", ">= 1.0.0"
17
- s.add_development_dependency "shoulda", ">= 2.11.3"
18
- s.add_development_dependency "webmock", ">= 1.6.2"
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>, [">= 1.4.2"])
22
- s.add_dependency(%q<json>, [">= 1.2"])
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
- should 'generate url for size c200x300' do
24
- assert_equal 'http://resizor.test:80/assets/10.jpg?size=c200x300&token=b8bb7c4c7c4fc1006c904f011f32f50f69730e5e', @asset.url(:size => 'c200x300')
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
- should 'generate url for size c200x300 format png' do
28
- assert_equal 'http://resizor.test:80/assets/10.png?size=c200x300&token=0cf27070e89c44a40aee85decca2cd2d98af1dc2', @asset.url(:size => 'c200x300', :format => 'png')
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
  SQL (0.2ms) 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
  AREL (0.1ms) 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)
7989
7989
  Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
7990
+ SQL (0.3ms) select sqlite_version(*)
7991
+ SQL (0.1ms) SELECT name
7992
+ FROM sqlite_master
7993
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7994
+ SQL (0.2ms) 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) 
7995
+ SQL (0.1ms) SELECT name
7996
+ FROM sqlite_master
7997
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7998
+ AREL (0.1ms) INSERT 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)
7999
+ SQL (0.1ms) SELECT name
8000
+ FROM sqlite_master
8001
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8002
+ SQL (0.1ms) DROP TABLE "items"
8003
+ SQL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8005
+ SQL (0.1ms) SELECT name
8006
+ FROM sqlite_master
8007
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8008
+ SQL (0.1ms) DROP TABLE "items"
8009
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8011
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8013
+ FROM sqlite_master
8014
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8015
+ 
8016
+ SQL (0.1ms) DROP TABLE "items"
8017
+ SQL (0.1ms) 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) 
8018
+ AREL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8020
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8022
+ FROM sqlite_master
8023
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8024
+ 
8025
+ SQL (0.1ms) DROP TABLE "items"
8026
+ SQL (0.1ms) 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) 
8027
+ AREL (0.1ms) 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
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8029
+ AREL (0.1ms) 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
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8031
+ SQL (0.1ms) SELECT name
8032
+ FROM sqlite_master
8033
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8034
+ SQL (0.1ms) DROP TABLE "items"
8035
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8037
+ SQL (0.1ms) SELECT name
8038
+ FROM sqlite_master
8039
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8040
+ SQL (0.1ms) DROP TABLE "items"
8041
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8043
+ SQL (0.1ms) SELECT name
8044
+ FROM sqlite_master
8045
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8046
+ SQL (0.1ms) DROP TABLE "items"
8047
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8049
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8050
+ SQL (0.3ms) select sqlite_version(*)
8051
+ SQL (0.1ms) SELECT name
8052
+ FROM sqlite_master
8053
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8054
+ SQL (0.2ms) 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) 
8055
+ SQL (0.1ms) SELECT name
8056
+ FROM sqlite_master
8057
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8058
+ AREL (0.1ms) INSERT 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)
8059
+ SQL (0.1ms) SELECT name
8060
+ FROM sqlite_master
8061
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8062
+ SQL (0.1ms) DROP TABLE "items"
8063
+ SQL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8065
+ SQL (0.1ms) SELECT name
8066
+ FROM sqlite_master
8067
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8068
+ SQL (0.1ms) DROP TABLE "items"
8069
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8071
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8073
+ FROM sqlite_master
8074
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8075
+ 
8076
+ SQL (0.1ms) DROP TABLE "items"
8077
+ SQL (0.1ms) 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) 
8078
+ AREL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8080
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8082
+ FROM sqlite_master
8083
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8084
+ 
8085
+ SQL (0.1ms) DROP TABLE "items"
8086
+ SQL (0.1ms) 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) 
8087
+ AREL (0.1ms) 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
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8089
+ AREL (0.1ms) 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
+ AREL (0.1ms) DELETE FROM "items" WHERE "items"."id" = 1
8091
+ SQL (0.1ms) SELECT name
8092
+ FROM sqlite_master
8093
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8094
+ SQL (0.2ms) DROP TABLE "items"
8095
+ SQL (0.2ms) 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
+ AREL (0.1ms) 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)
8097
+ SQL (0.1ms) SELECT name
8098
+ FROM sqlite_master
8099
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8100
+ SQL (0.1ms) DROP TABLE "items"
8101
+ SQL (0.2ms) 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
+ AREL (0.1ms) 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)
8103
+ SQL (0.1ms) SELECT name
8104
+ FROM sqlite_master
8105
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8106
+ SQL (0.1ms) DROP TABLE "items"
8107
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8109
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8110
+ SQL (0.3ms) select sqlite_version(*)
8111
+ SQL (0.0ms) SELECT name
8112
+ FROM sqlite_master
8113
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8114
+ SQL (0.2ms) 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) 
8115
+ SQL (0.1ms) SELECT name
8116
+ FROM sqlite_master
8117
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8118
+ AREL (0.1ms) INSERT 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)
8119
+ SQL (0.1ms) SELECT name
8120
+ FROM sqlite_master
8121
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8122
+ SQL (0.1ms) DROP TABLE "items"
8123
+ SQL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8125
+ SQL (0.1ms) SELECT name
8126
+ FROM sqlite_master
8127
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8128
+ SQL (0.1ms) DROP TABLE "items"
8129
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8131
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8133
+ FROM sqlite_master
8134
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8135
+ 
8136
+ SQL (0.1ms) DROP TABLE "items"
8137
+ SQL (0.1ms) 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) 
8138
+ AREL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8140
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8142
+ FROM sqlite_master
8143
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8144
+ 
8145
+ SQL (0.1ms) DROP TABLE "items"
8146
+ SQL (0.2ms) 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) 
8147
+ AREL (0.1ms) 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
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8149
+ AREL (0.1ms) 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
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8151
+ SQL (0.1ms) SELECT name
8152
+ FROM sqlite_master
8153
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8154
+ SQL (0.1ms) DROP TABLE "items"
8155
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8157
+ SQL (0.1ms) SELECT name
8158
+ FROM sqlite_master
8159
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8160
+ SQL (0.1ms) DROP TABLE "items"
8161
+ SQL (0.2ms) 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
+ AREL (0.1ms) 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)
8163
+ SQL (0.1ms) SELECT name
8164
+ FROM sqlite_master
8165
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8166
+ SQL (0.1ms) DROP TABLE "items"
8167
+ SQL (0.2ms) 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
+ AREL (0.1ms) 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)
8169
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8170
+ SQL (0.3ms) select sqlite_version(*)
8171
+ SQL (0.0ms) SELECT name
8172
+ FROM sqlite_master
8173
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8174
+ SQL (0.2ms) 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) 
8175
+ SQL (0.1ms) SELECT name
8176
+ FROM sqlite_master
8177
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8178
+ AREL (0.1ms) INSERT 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)
8179
+ SQL (0.1ms) SELECT name
8180
+ FROM sqlite_master
8181
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8182
+ SQL (0.1ms) DROP TABLE "items"
8183
+ SQL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8185
+ SQL (0.1ms) SELECT name
8186
+ FROM sqlite_master
8187
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8188
+ SQL (0.1ms) DROP TABLE "items"
8189
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8191
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8193
+ FROM sqlite_master
8194
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8195
+ 
8196
+ SQL (0.1ms) DROP TABLE "items"
8197
+ SQL (0.1ms) 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) 
8198
+ AREL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8200
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8202
+ FROM sqlite_master
8203
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8204
+ 
8205
+ SQL (0.1ms) DROP TABLE "items"
8206
+ SQL (0.2ms) 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) 
8207
+ AREL (0.1ms) 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
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8209
+ AREL (0.1ms) 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
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8211
+ SQL (0.1ms) SELECT name
8212
+ FROM sqlite_master
8213
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8214
+ SQL (0.1ms) DROP TABLE "items"
8215
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8217
+ SQL (0.1ms) SELECT name
8218
+ FROM sqlite_master
8219
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8220
+ SQL (0.1ms) DROP TABLE "items"
8221
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8223
+ SQL (0.1ms) SELECT name
8224
+ FROM sqlite_master
8225
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8226
+ SQL (0.1ms) DROP TABLE "items"
8227
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8229
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8230
+ SQL (0.2ms) select sqlite_version(*)
8231
+ SQL (0.1ms) SELECT name
8232
+ FROM sqlite_master
8233
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8234
+ SQL (0.2ms) 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) 
8235
+ SQL (0.1ms) SELECT name
8236
+ FROM sqlite_master
8237
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8238
+ AREL (0.1ms) INSERT 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)
8239
+ SQL (0.1ms) SELECT name
8240
+ FROM sqlite_master
8241
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8242
+ SQL (0.1ms) DROP TABLE "items"
8243
+ SQL (0.1ms) 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
+ AREL (0.1ms) INSERT 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)
8245
+ SQL (0.1ms) SELECT name
8246
+ FROM sqlite_master
8247
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8248
+ SQL (0.1ms) DROP TABLE "items"
8249
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8251
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8253
+ FROM sqlite_master
8254
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8255
+ 
8256
+ SQL (0.1ms) DROP TABLE "items"
8257
+ SQL (0.1ms) 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) 
8258
+ AREL (0.1ms) 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
+ AREL (0.0ms) INSERT 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)
8260
+ AREL (0.1ms) 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
+ SQL (0.1ms)  SELECT name
8262
+ FROM sqlite_master
8263
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8264
+ 
8265
+ SQL (0.1ms) DROP TABLE "items"
8266
+ SQL (0.1ms) 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) 
8267
+ AREL (0.1ms) 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
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8269
+ AREL (0.1ms) 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
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8271
+ SQL (0.1ms) SELECT name
8272
+ FROM sqlite_master
8273
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8274
+ SQL (0.1ms) DROP TABLE "items"
8275
+ SQL (0.2ms) 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
+ AREL (0.1ms) 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)
8277
+ SQL (0.1ms) SELECT name
8278
+ FROM sqlite_master
8279
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8280
+ SQL (0.1ms) DROP TABLE "items"
8281
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8283
+ SQL (0.1ms) SELECT name
8284
+ FROM sqlite_master
8285
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8286
+ SQL (0.1ms) DROP TABLE "items"
8287
+ SQL (0.1ms) 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
+ AREL (0.1ms) 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)
8289
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
@@ -68,7 +68,6 @@ class IntegrationTest < Test::Unit::TestCase
68
68
  assert @item.image?
69
69
  end
70
70
 
71
-
72
71
  should 'clear asset fields when assets is deleted' do
73
72
  @item.save
74
73
  assert @item.image.destroy
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
- assert !r.body
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.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Winston Design
8
+ - Oktavilla
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-08 00:00:00.000000000 +02:00
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: &2154323140 !ruby/object:Gem::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: *2154323140
46
+ version_requirements: *70147524365080
26
47
  - !ruby/object:Gem::Dependency
27
48
  name: shoulda
28
- requirement: &2154322660 !ruby/object:Gem::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: *2154322660
57
+ version_requirements: *70147524378680
37
58
  - !ruby/object:Gem::Dependency
38
59
  name: webmock
39
- requirement: &2154322140 !ruby/object:Gem::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: *2154322140
68
+ version_requirements: *70147524377060
48
69
  - !ruby/object:Gem::Dependency
49
70
  name: activerecord
50
- requirement: &2154321640 !ruby/object:Gem::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: *2154321640
79
+ version_requirements: *70147524376060
59
80
  - !ruby/object:Gem::Dependency
60
81
  name: rest-client
61
- requirement: &2154321140 !ruby/object:Gem::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: *2154321140
90
+ version_requirements: *70147524385300
70
91
  - !ruby/object:Gem::Dependency
71
92
  name: json
72
- requirement: &2154320600 !ruby/object:Gem::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: *2154320600
81
- description: Lets you easily interface with Resizor.com's REST API. Includes Rails
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
- has_rdoc: true
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.6.2
149
+ rubygems_version: 1.8.10
130
150
  signing_key:
131
151
  specification_version: 3
132
152
  summary: Client for Resizor.com API