resizor 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resizor/railtie.rb +13 -2
- data/lib/resizor/version.rb +1 -1
- data/resizor.gemspec +1 -1
- data/test/debug.log +223 -0
- metadata +21 -21
data/lib/resizor/railtie.rb
CHANGED
@@ -27,7 +27,13 @@ module Resizor
|
|
27
27
|
def has_resizor_asset name, options = {}
|
28
28
|
include InstanceMethods
|
29
29
|
|
30
|
-
|
30
|
+
if resizor_assets.nil?
|
31
|
+
if ActiveSupport::VERSION::MAJOR == 3 && ActiveSupport::VERSION::MINOR > 1
|
32
|
+
self.resizor_assets = {}
|
33
|
+
else
|
34
|
+
write_inheritable_attribute(:resizor_assets, {})
|
35
|
+
end
|
36
|
+
end
|
31
37
|
resizor_assets[name] = options
|
32
38
|
|
33
39
|
before_save :save_attached_files_for_resizor
|
@@ -48,7 +54,12 @@ module Resizor
|
|
48
54
|
end
|
49
55
|
|
50
56
|
def resizor_assets
|
51
|
-
|
57
|
+
if ActiveSupport::VERSION::MAJOR == 3 && ActiveSupport::VERSION::MINOR > 1
|
58
|
+
class_attribute(:resizor_assets)
|
59
|
+
self.resizor_assets
|
60
|
+
else
|
61
|
+
read_inheritable_attribute(:resizor_assets)
|
62
|
+
end
|
52
63
|
end
|
53
64
|
end
|
54
65
|
|
data/lib/resizor/version.rb
CHANGED
data/resizor.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.add_development_dependency 'rake', '~> 0.9.2'
|
17
17
|
s.add_development_dependency 'sqlite3', '~> 1.3.4'
|
18
|
-
s.add_development_dependency 'bundler', '~> 1.0
|
18
|
+
s.add_development_dependency 'bundler', '~> 1.0'
|
19
19
|
s.add_development_dependency 'shoulda', '~> 2.11.3'
|
20
20
|
s.add_development_dependency 'webmock', '~> 1.6.2'
|
21
21
|
s.add_development_dependency 'activerecord', '~>3.0.0'
|
data/test/debug.log
CHANGED
@@ -8587,3 +8587,226 @@
|
|
8587
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
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
8589
|
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8590
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8591
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8592
|
+
FROM sqlite_master
|
8593
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8594
|
+
[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
|
8595
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8596
|
+
FROM sqlite_master
|
8597
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8598
|
+
[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
|
8599
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8600
|
+
FROM sqlite_master
|
8601
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8602
|
+
[1m[36mSQL (17.9ms)[0m [1mDROP TABLE "items"[0m
|
8603
|
+
[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)
|
8604
|
+
[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
|
8605
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8606
|
+
FROM sqlite_master
|
8607
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8608
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8609
|
+
[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)
|
8610
|
+
[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
|
8611
|
+
[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
|
8612
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8613
|
+
FROM sqlite_master
|
8614
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8615
|
+
[0m
|
8616
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8617
|
+
[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
|
8618
|
+
[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)
|
8619
|
+
[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
|
8620
|
+
[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
|
8621
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8622
|
+
FROM sqlite_master
|
8623
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8624
|
+
[0m
|
8625
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8626
|
+
[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
|
8627
|
+
[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)
|
8628
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8629
|
+
[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
|
8630
|
+
[1m[36mAREL (0.1ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8631
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8632
|
+
FROM sqlite_master
|
8633
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8634
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8635
|
+
[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)
|
8636
|
+
[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
|
8637
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8638
|
+
FROM sqlite_master
|
8639
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8640
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8641
|
+
[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)
|
8642
|
+
[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
|
8643
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8644
|
+
FROM sqlite_master
|
8645
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8646
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8647
|
+
[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)
|
8648
|
+
[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
|
8649
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8650
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8651
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8652
|
+
FROM sqlite_master
|
8653
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8654
|
+
[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
|
8655
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8656
|
+
FROM sqlite_master
|
8657
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8658
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8659
|
+
[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)
|
8660
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8661
|
+
FROM sqlite_master
|
8662
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8663
|
+
[0m
|
8664
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8665
|
+
[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
|
8666
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8667
|
+
FROM sqlite_master
|
8668
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8669
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8670
|
+
[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)
|
8671
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8672
|
+
FROM sqlite_master
|
8673
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8674
|
+
[0m
|
8675
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8676
|
+
[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
|
8677
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8678
|
+
FROM sqlite_master
|
8679
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8680
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8681
|
+
[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)
|
8682
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8683
|
+
FROM sqlite_master
|
8684
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8685
|
+
[0m
|
8686
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8687
|
+
[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
|
8688
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8689
|
+
FROM sqlite_master
|
8690
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8691
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8692
|
+
[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)
|
8693
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8694
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8695
|
+
FROM sqlite_master
|
8696
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8697
|
+
[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
|
8698
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8699
|
+
FROM sqlite_master
|
8700
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8701
|
+
[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
|
8702
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8703
|
+
FROM sqlite_master
|
8704
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8705
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8706
|
+
[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)
|
8707
|
+
[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
|
8708
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8709
|
+
FROM sqlite_master
|
8710
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8711
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8712
|
+
[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)
|
8713
|
+
[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
|
8714
|
+
[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
|
8715
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8716
|
+
FROM sqlite_master
|
8717
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8718
|
+
[0m
|
8719
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8720
|
+
[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
|
8721
|
+
[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)
|
8722
|
+
[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
|
8723
|
+
[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
|
8724
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8725
|
+
FROM sqlite_master
|
8726
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8727
|
+
[0m
|
8728
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8729
|
+
[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
|
8730
|
+
[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)
|
8731
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8732
|
+
[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
|
8733
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8734
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8735
|
+
FROM sqlite_master
|
8736
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8737
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8738
|
+
[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)
|
8739
|
+
[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
|
8740
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8741
|
+
FROM sqlite_master
|
8742
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8743
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8744
|
+
[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)
|
8745
|
+
[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
|
8746
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8747
|
+
FROM sqlite_master
|
8748
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8749
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8750
|
+
[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)
|
8751
|
+
[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
|
8752
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8753
|
+
[1m[36mSQL (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
8754
|
+
[1m[35mSQL (0.0ms)[0m SELECT name
|
8755
|
+
FROM sqlite_master
|
8756
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8757
|
+
[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
|
8758
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8759
|
+
FROM sqlite_master
|
8760
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8761
|
+
[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
|
8762
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8763
|
+
FROM sqlite_master
|
8764
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8765
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8766
|
+
[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)
|
8767
|
+
[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
|
8768
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8769
|
+
FROM sqlite_master
|
8770
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8771
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8772
|
+
[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)
|
8773
|
+
[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
|
8774
|
+
[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
|
8775
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8776
|
+
FROM sqlite_master
|
8777
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8778
|
+
[0m
|
8779
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8780
|
+
[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
|
8781
|
+
[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)
|
8782
|
+
[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
|
8783
|
+
[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
|
8784
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8785
|
+
FROM sqlite_master
|
8786
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8787
|
+
[0m
|
8788
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8789
|
+
[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
|
8790
|
+
[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)
|
8791
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8792
|
+
[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
|
8793
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8794
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8795
|
+
FROM sqlite_master
|
8796
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8797
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8798
|
+
[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)
|
8799
|
+
[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
|
8800
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8801
|
+
FROM sqlite_master
|
8802
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8803
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8804
|
+
[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)
|
8805
|
+
[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
|
8806
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8807
|
+
FROM sqlite_master
|
8808
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8809
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8810
|
+
[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)
|
8811
|
+
[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
|
8812
|
+
[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.12
|
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: 2012-
|
12
|
+
date: 2012-02-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70152020515480 !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: *70152020515480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70152020515020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,21 +32,21 @@ dependencies:
|
|
32
32
|
version: 1.3.4
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70152020515020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70152020514560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.0
|
43
|
+
version: '1.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70152020514560
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: shoulda
|
49
|
-
requirement: &
|
49
|
+
requirement: &70152020514100 !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: *70152020514100
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: webmock
|
60
|
-
requirement: &
|
60
|
+
requirement: &70152020513640 !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: *70152020513640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord
|
71
|
-
requirement: &
|
71
|
+
requirement: &70152020513180 !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: *70152020513180
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rest-client
|
82
|
-
requirement: &
|
82
|
+
requirement: &70152020512700 !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: *70152020512700
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: json
|
93
|
-
requirement: &
|
93
|
+
requirement: &70152020512220 !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: *70152020512220
|
102
102
|
description: Lets you easily interface with the Resizor.com REST API. Includes Rails
|
103
103
|
helpers.
|
104
104
|
email:
|
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
segments:
|
142
142
|
- 0
|
143
|
-
hash: -
|
143
|
+
hash: -1361478278770955800
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: 1.3.6
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 1.8.
|
152
|
+
rubygems_version: 1.8.15
|
153
153
|
signing_key:
|
154
154
|
specification_version: 3
|
155
155
|
summary: Client for Resizor.com API
|