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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48f8da7f8cc63574dad6a1a0a3ef30299f576535
4
- data.tar.gz: 293fef11bdb1a33eb4e3b808a7155e3fb1d779af
3
+ metadata.gz: 635a29878155e03c0d5142699597f9e67cd89129
4
+ data.tar.gz: aa311b1cc54b289522ad3d517f782c0335310506
5
5
  SHA512:
6
- metadata.gz: 33743ca407ad1198d4ac922543778f8579c0559c2169cf81f14d63820900a4b57530fcf1c661a071b92831b45d19534e23eea5a8da8c2fa43cdd8464f9bda442
7
- data.tar.gz: 2806c2280ec857358c7899f056442a5863385a1c2d5f1c5a8454a0dd19688443b806c4877310e0f1435910b27e2702b46fa5f86e91e79af0f0cb5d9576505f59
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
- resize if (@path.image_path? and resize_request?)
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?
@@ -1,3 +1,3 @@
1
1
  module LightResizer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-21 00:00:00.000000000 Z
12
+ date: 2014-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_magick