resizor 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resizor/railtie.rb +8 -2
- data/lib/resizor/version.rb +1 -1
- data/test/debug.log +60 -0
- metadata +6 -3
data/lib/resizor/railtie.rb
CHANGED
@@ -28,7 +28,7 @@ module Resizor
|
|
28
28
|
include InstanceMethods
|
29
29
|
|
30
30
|
if resizor_assets.nil?
|
31
|
-
if
|
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
|
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
|
data/lib/resizor/version.rb
CHANGED
data/test/debug.log
CHANGED
@@ -8810,3 +8810,63 @@
|
|
8810
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
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
8812
|
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1
|
8813
|
+
[1m[36mSQL (3.8ms)[0m [1mselect sqlite_version(*)[0m
|
8814
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8815
|
+
FROM sqlite_master
|
8816
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8817
|
+
[1m[36mSQL (0.5ms)[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
|
8818
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8819
|
+
FROM sqlite_master
|
8820
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8821
|
+
[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
|
8822
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8823
|
+
FROM sqlite_master
|
8824
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8825
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8826
|
+
[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)
|
8827
|
+
[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
|
8828
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8829
|
+
FROM sqlite_master
|
8830
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8831
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8832
|
+
[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)
|
8833
|
+
[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
|
8834
|
+
[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
|
8835
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8836
|
+
FROM sqlite_master
|
8837
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8838
|
+
[0m
|
8839
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8840
|
+
[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
|
8841
|
+
[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)
|
8842
|
+
[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
|
8843
|
+
[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
|
8844
|
+
[1m[36mSQL (0.1ms)[0m [1m SELECT name
|
8845
|
+
FROM sqlite_master
|
8846
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8847
|
+
[0m
|
8848
|
+
[1m[35mSQL (0.1ms)[0m DROP TABLE "items"
|
8849
|
+
[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
|
8850
|
+
[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)
|
8851
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = 1 LIMIT 1[0m
|
8852
|
+
[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
|
8853
|
+
[1m[36mAREL (0.0ms)[0m [1mDELETE FROM "items" WHERE "items"."id" = 1[0m
|
8854
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8855
|
+
FROM sqlite_master
|
8856
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8857
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8858
|
+
[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)
|
8859
|
+
[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
|
8860
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8861
|
+
FROM sqlite_master
|
8862
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8863
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8864
|
+
[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)
|
8865
|
+
[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
|
8866
|
+
[1m[35mSQL (0.1ms)[0m SELECT name
|
8867
|
+
FROM sqlite_master
|
8868
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
8869
|
+
[1m[36mSQL (0.1ms)[0m [1mDROP TABLE "items"[0m
|
8870
|
+
[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)
|
8871
|
+
[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
|
8872
|
+
[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.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-
|
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.
|
192
|
+
rubygems_version: 1.8.19
|
190
193
|
signing_key:
|
191
194
|
specification_version: 3
|
192
195
|
summary: Client for Resizor.com API
|