carrierwave-bombshelter 0.1.1.1 → 0.1.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: 10cc0b727b8d44b8f5ac7525f10e97714c49079a
4
- data.tar.gz: 459c940ef1a9441de746408346814161ffbefd2a
3
+ metadata.gz: 67138d49020550bbbfae52968a8f50708411cdf4
4
+ data.tar.gz: 793fbb733abcfb68baaba15a7cd71f7a81776788
5
5
  SHA512:
6
- metadata.gz: c58fe982e5de12c4e8589c40921e128073be27d7c7668bf4bd5238815c36017e7de02fad812dff8effb9f0836ccb489360468b931a05d8ae28595f42c03c1ba1
7
- data.tar.gz: b5c55254d68a0768e4f31b70b61019fc250daee2f54044df34b11fbc334f88309891d0c4726c6ef8421715eec94a790609fa01b78e7345a7324550249e34d5ef
6
+ metadata.gz: 0b1b6323c30074f24836ce4d9a4bcac576e0eb7a0face649b28b6e1fd14b7726694d26b4cbf9023f1639e8e01a5f94e0fb7e031be27eaeea9108bcc1d84f2594
7
+ data.tar.gz: 3b8b82cc956c55a7a011b0eea82f4bc7a04dae7a7300eab79d96e7f0ee0a200d3558d7057f586450e116672c8008997fa6d69bda1762c9fda4e0d571a5e5b06e
@@ -14,7 +14,10 @@ module CarrierWave
14
14
  extend ActiveSupport::Concern
15
15
 
16
16
  included do
17
- before :cache, :protect_from_image_bomb!
17
+ # `before` puts callback in the end of queue, but we need to run this
18
+ # callback first.
19
+ # before :cache, :protect_from_image_bomb!
20
+ _before_callbacks[:cache].unshift(:protect_from_image_bomb!)
18
21
  end
19
22
 
20
23
  def max_pixel_dimensions
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module BombShelter
3
- VERSION = '0.1.1.1'
3
+ VERSION = '0.1.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-bombshelter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.1
4
+ version: 0.1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DarthSim