resizor 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,13 @@ module Resizor
27
27
  def has_resizor_asset name, options = {}
28
28
  include InstanceMethods
29
29
 
30
- write_inheritable_attribute(:resizor_assets, {}) if resizor_assets.nil?
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
- read_inheritable_attribute(:resizor_assets)
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
 
@@ -1,3 +1,3 @@
1
1
  module Resizor
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
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.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
  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)
8588
8588
  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)
8589
8589
  Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8590
+ SQL (0.3ms) select sqlite_version(*)
8591
+ SQL (0.1ms) SELECT name
8592
+ FROM sqlite_master
8593
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8594
+ 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) 
8595
+ SQL (0.1ms) SELECT name
8596
+ FROM sqlite_master
8597
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8598
+ 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)
8599
+ SQL (0.1ms) SELECT name
8600
+ FROM sqlite_master
8601
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8602
+ SQL (17.9ms) DROP TABLE "items"
8603
+ 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)
8604
+ 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)
8605
+ SQL (0.1ms) SELECT name
8606
+ FROM sqlite_master
8607
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8608
+ SQL (0.1ms) DROP TABLE "items"
8609
+ 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)
8610
+ 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)
8611
+ 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
8612
+ SQL (0.1ms)  SELECT name
8613
+ FROM sqlite_master
8614
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8615
+ 
8616
+ SQL (0.1ms) DROP TABLE "items"
8617
+ 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) 
8618
+ 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)
8619
+ 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)
8620
+ 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
8621
+ SQL (0.1ms)  SELECT name
8622
+ FROM sqlite_master
8623
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8624
+ 
8625
+ SQL (0.1ms) DROP TABLE "items"
8626
+ 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) 
8627
+ 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)
8628
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8629
+ 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
8630
+ AREL (0.1ms) DELETE FROM "items" WHERE "items"."id" = 1
8631
+ SQL (0.1ms) SELECT name
8632
+ FROM sqlite_master
8633
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8634
+ SQL (0.1ms) DROP TABLE "items"
8635
+ 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)
8636
+ 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)
8637
+ SQL (0.1ms) SELECT name
8638
+ FROM sqlite_master
8639
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8640
+ SQL (0.1ms) DROP TABLE "items"
8641
+ 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)
8642
+ 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)
8643
+ SQL (0.1ms) SELECT name
8644
+ FROM sqlite_master
8645
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8646
+ SQL (0.1ms) DROP TABLE "items"
8647
+ 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)
8648
+ 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)
8649
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8650
+ SQL (0.3ms) select sqlite_version(*)
8651
+ SQL (0.0ms) SELECT name
8652
+ FROM sqlite_master
8653
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8654
+ 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) 
8655
+ SQL (0.1ms) SELECT name
8656
+ FROM sqlite_master
8657
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8658
+ SQL (0.1ms) DROP TABLE "items"
8659
+ 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)
8660
+ SQL (0.1ms)  SELECT name
8661
+ FROM sqlite_master
8662
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8663
+ 
8664
+ SQL (0.1ms) DROP TABLE "items"
8665
+ 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) 
8666
+ SQL (0.1ms) SELECT name
8667
+ FROM sqlite_master
8668
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8669
+ SQL (0.1ms) DROP TABLE "items"
8670
+ 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)
8671
+ SQL (0.1ms)  SELECT name
8672
+ FROM sqlite_master
8673
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8674
+ 
8675
+ SQL (0.1ms) DROP TABLE "items"
8676
+ 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) 
8677
+ SQL (0.1ms) SELECT name
8678
+ FROM sqlite_master
8679
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8680
+ SQL (0.1ms) DROP TABLE "items"
8681
+ 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)
8682
+ SQL (0.1ms)  SELECT name
8683
+ FROM sqlite_master
8684
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8685
+ 
8686
+ SQL (0.1ms) DROP TABLE "items"
8687
+ 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) 
8688
+ SQL (0.1ms) SELECT name
8689
+ FROM sqlite_master
8690
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8691
+ SQL (0.1ms) DROP TABLE "items"
8692
+ 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)
8693
+ SQL (0.3ms) select sqlite_version(*)
8694
+ SQL (0.0ms) SELECT name
8695
+ FROM sqlite_master
8696
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8697
+ 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) 
8698
+ SQL (0.1ms) SELECT name
8699
+ FROM sqlite_master
8700
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8701
+ 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)
8702
+ SQL (0.1ms) SELECT name
8703
+ FROM sqlite_master
8704
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8705
+ SQL (0.1ms) DROP TABLE "items"
8706
+ 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)
8707
+ 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)
8708
+ SQL (0.1ms) SELECT name
8709
+ FROM sqlite_master
8710
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8711
+ SQL (0.1ms) DROP TABLE "items"
8712
+ 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)
8713
+ 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)
8714
+ 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
8715
+ SQL (0.1ms)  SELECT name
8716
+ FROM sqlite_master
8717
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8718
+ 
8719
+ SQL (0.1ms) DROP TABLE "items"
8720
+ 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) 
8721
+ 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)
8722
+ 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)
8723
+ 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
8724
+ SQL (0.1ms)  SELECT name
8725
+ FROM sqlite_master
8726
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8727
+ 
8728
+ SQL (0.1ms) DROP TABLE "items"
8729
+ 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) 
8730
+ 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)
8731
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8732
+ 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
8733
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8734
+ SQL (0.1ms) SELECT name
8735
+ FROM sqlite_master
8736
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8737
+ SQL (0.1ms) DROP TABLE "items"
8738
+ 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)
8739
+ 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)
8740
+ SQL (0.1ms) SELECT name
8741
+ FROM sqlite_master
8742
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8743
+ SQL (0.1ms) DROP TABLE "items"
8744
+ 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)
8745
+ 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)
8746
+ SQL (0.1ms) SELECT name
8747
+ FROM sqlite_master
8748
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8749
+ SQL (0.1ms) DROP TABLE "items"
8750
+ 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)
8751
+ 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)
8752
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8753
+ SQL (0.3ms) select sqlite_version(*)
8754
+ SQL (0.0ms) SELECT name
8755
+ FROM sqlite_master
8756
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8757
+ 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) 
8758
+ SQL (0.1ms) SELECT name
8759
+ FROM sqlite_master
8760
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8761
+ 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)
8762
+ SQL (0.1ms) SELECT name
8763
+ FROM sqlite_master
8764
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8765
+ SQL (0.1ms) DROP TABLE "items"
8766
+ 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)
8767
+ 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)
8768
+ SQL (0.1ms) SELECT name
8769
+ FROM sqlite_master
8770
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8771
+ SQL (0.1ms) DROP TABLE "items"
8772
+ 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)
8773
+ 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)
8774
+ 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
8775
+ SQL (0.1ms)  SELECT name
8776
+ FROM sqlite_master
8777
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8778
+ 
8779
+ SQL (0.1ms) DROP TABLE "items"
8780
+ 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) 
8781
+ 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)
8782
+ 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)
8783
+ 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
8784
+ SQL (0.1ms)  SELECT name
8785
+ FROM sqlite_master
8786
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8787
+ 
8788
+ SQL (0.1ms) DROP TABLE "items"
8789
+ 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) 
8790
+ 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)
8791
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8792
+ 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
8793
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8794
+ SQL (0.1ms) SELECT name
8795
+ FROM sqlite_master
8796
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8797
+ SQL (0.1ms) DROP TABLE "items"
8798
+ 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)
8799
+ 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)
8800
+ SQL (0.1ms) SELECT name
8801
+ FROM sqlite_master
8802
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8803
+ SQL (0.1ms) DROP TABLE "items"
8804
+ 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)
8805
+ 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)
8806
+ SQL (0.1ms) SELECT name
8807
+ FROM sqlite_master
8808
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8809
+ SQL (0.1ms) DROP TABLE "items"
8810
+ 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)
8811
+ 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)
8812
+ Item Load (0.1ms) 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.11
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-01-27 00:00:00.000000000 Z
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: &70169331283240 !ruby/object:Gem::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: *70169331283240
24
+ version_requirements: *70152020515480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70169331282780 !ruby/object:Gem::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: *70169331282780
35
+ version_requirements: *70152020515020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70169331282320 !ruby/object:Gem::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.0
43
+ version: '1.0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70169331282320
46
+ version_requirements: *70152020514560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: shoulda
49
- requirement: &70169331281860 !ruby/object:Gem::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: *70169331281860
57
+ version_requirements: *70152020514100
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: webmock
60
- requirement: &70169331281400 !ruby/object:Gem::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: *70169331281400
68
+ version_requirements: *70152020513640
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activerecord
71
- requirement: &70169331280940 !ruby/object:Gem::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: *70169331280940
79
+ version_requirements: *70152020513180
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rest-client
82
- requirement: &70169331280460 !ruby/object:Gem::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: *70169331280460
90
+ version_requirements: *70152020512700
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: json
93
- requirement: &70169331279980 !ruby/object:Gem::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: *70169331279980
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: -3454473254103819806
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.10
152
+ rubygems_version: 1.8.15
153
153
  signing_key:
154
154
  specification_version: 3
155
155
  summary: Client for Resizor.com API