resizor 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ module Resizor
28
28
  include InstanceMethods
29
29
 
30
30
  if resizor_assets.nil?
31
- if ActiveSupport::VERSION::MAJOR == 3 && ActiveSupport::VERSION::MINOR > 1
31
+ if active_support_three_dot_one?
32
32
  self.resizor_assets = {}
33
33
  else
34
34
  write_inheritable_attribute(:resizor_assets, {})
@@ -54,13 +54,19 @@ module Resizor
54
54
  end
55
55
 
56
56
  def resizor_assets
57
- if ActiveSupport::VERSION::MAJOR == 3 && ActiveSupport::VERSION::MINOR > 1
57
+ if active_support_three_dot_one?
58
58
  class_attribute(:resizor_assets)
59
59
  self.resizor_assets
60
60
  else
61
61
  read_inheritable_attribute(:resizor_assets)
62
62
  end
63
63
  end
64
+
65
+ def active_support_three_dot_one?
66
+ defined?(ActiveSupport::VERSION) &&
67
+ ActiveSupport::VERSION::MAJOR == 3 &&
68
+ ActiveSupport::VERSION::MINOR > 1
69
+ end
64
70
  end
65
71
 
66
72
  module InstanceMethods
@@ -1,3 +1,3 @@
1
1
  module Resizor
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
data/test/debug.log CHANGED
@@ -8810,3 +8810,63 @@
8810
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
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
8812
  Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8813
+ SQL (3.8ms) select sqlite_version(*)
8814
+ SQL (0.1ms) SELECT name
8815
+ FROM sqlite_master
8816
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8817
+ SQL (0.5ms) 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) 
8818
+ SQL (0.1ms) SELECT name
8819
+ FROM sqlite_master
8820
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8821
+ 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)
8822
+ SQL (0.1ms) SELECT name
8823
+ FROM sqlite_master
8824
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8825
+ SQL (0.1ms) DROP TABLE "items"
8826
+ 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)
8827
+ 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)
8828
+ SQL (0.1ms) SELECT name
8829
+ FROM sqlite_master
8830
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8831
+ SQL (0.1ms) DROP TABLE "items"
8832
+ 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)
8833
+ 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)
8834
+ 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
8835
+ SQL (0.1ms)  SELECT name
8836
+ FROM sqlite_master
8837
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8838
+ 
8839
+ SQL (0.1ms) DROP TABLE "items"
8840
+ 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) 
8841
+ 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)
8842
+ 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)
8843
+ 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
8844
+ SQL (0.1ms)  SELECT name
8845
+ FROM sqlite_master
8846
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8847
+ 
8848
+ SQL (0.1ms) DROP TABLE "items"
8849
+ 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) 
8850
+ 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)
8851
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
8852
+ 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
8853
+ AREL (0.0ms) DELETE FROM "items" WHERE "items"."id" = 1
8854
+ SQL (0.1ms) SELECT name
8855
+ FROM sqlite_master
8856
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8857
+ SQL (0.1ms) DROP TABLE "items"
8858
+ 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)
8859
+ 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)
8860
+ SQL (0.1ms) SELECT name
8861
+ FROM sqlite_master
8862
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8863
+ SQL (0.1ms) DROP TABLE "items"
8864
+ 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)
8865
+ 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)
8866
+ SQL (0.1ms) SELECT name
8867
+ FROM sqlite_master
8868
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
8869
+ SQL (0.1ms) DROP TABLE "items"
8870
+ 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)
8871
+ 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)
8872
+ 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.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-23 00:00:00.000000000 Z
12
+ date: 2012-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -178,6 +178,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  - - ! '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ segments:
182
+ - 0
183
+ hash: 2339798260532016014
181
184
  required_rubygems_version: !ruby/object:Gem::Requirement
182
185
  none: false
183
186
  requirements:
@@ -186,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
189
  version: 1.3.6
187
190
  requirements: []
188
191
  rubyforge_project:
189
- rubygems_version: 1.8.23
192
+ rubygems_version: 1.8.19
190
193
  signing_key:
191
194
  specification_version: 3
192
195
  summary: Client for Resizor.com API