light_resizer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/light_resizer/middleware.rb +6 -2
- data/lib/light_resizer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 635a29878155e03c0d5142699597f9e67cd89129
|
4
|
+
data.tar.gz: aa311b1cc54b289522ad3d517f782c0335310506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c9e118c322f0ec895d1277384c61db52f61b38a4a484d0c9bd0f4a42014641de038991186b2811d4cae0d4ed3d75865610fafd32a9133c3d2114f41bc43208
|
7
|
+
data.tar.gz: 2825c896f1e8b5c6adb81bf2e2c26fb2fae4a5192e96a4be7e9163222cd7fadc810e78a4a27ecd22bee133fb219cdd33c8156b756a35f847ecbea2a532df8ef0
|
@@ -16,9 +16,13 @@ module LightResizer
|
|
16
16
|
def call(env)
|
17
17
|
@path.request_path = env['PATH_INFO']
|
18
18
|
|
19
|
-
|
19
|
+
if (@path.image_path? and resize_request?)
|
20
|
+
resize
|
21
|
+
Rack::File.new(@image_loader.resized.root_dir).call(env) #todo check
|
22
|
+
else
|
23
|
+
@app.call(env)
|
24
|
+
end
|
20
25
|
|
21
|
-
Rack::File.new(@image_loader.resized.root_dir).call(env)
|
22
26
|
end
|
23
27
|
|
24
28
|
def resize_request?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: light_resizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Sergienko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mini_magick
|