dynamic_image 2.0.10 → 2.0.11

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: a2be34620d7c053a12bd47d7e2f8c9af08938fdf
4
- data.tar.gz: d61d713d978128293742e0b4ca5c860d8fd4a5c6
3
+ metadata.gz: 35a434bf3ccd34a01d237f101581ceeeed54c5cc
4
+ data.tar.gz: c8f721c53f80dd93cf43500da0f2b732676bc590
5
5
  SHA512:
6
- metadata.gz: a087177590421ff0a00ffc23cee906df22f4032ceace19312b89d26f1448d42bf57a34e98ddd62d240d5bd00d80bba36896680768d7eb61052006e402f9fc2d6
7
- data.tar.gz: 3847bbf4b94ad42a2902084b6faec37e92588b1db0d647ab12b13c89cd04d8aa25f5e98e457b5eea17243cdb16e8f8c0728a445bc42a816f7fa5c37d0896c38a
6
+ metadata.gz: 9a2f09d0a3759f4415dcd270c7e0937aa1ec0c61520c8afbbfad5cef41ccbd0804c94849fb66465ab3d654ea8db77c7f88e1a9213506c779760867f70ce854a6
7
+ data.tar.gz: cd06b2ca1d285c6e6bba49fbcba1acfdd6dfe07ad65fdf0c0ae4195a87dea596d368a0490213a0c050bea1cb208b63e653839fe8f03f8dcfadf837475788bbaf
@@ -95,6 +95,8 @@ module DynamicImage
95
95
  k == :id ? params.require(k).to_i : params.require(k)
96
96
  end.join("-")
97
97
  DynamicImage.digest_verifier.verify(key, params[:digest])
98
+ rescue ActionController::ParameterMissing => e
99
+ raise DynamicImage::Errors::ParameterMissing, e.message
98
100
  end
99
101
  end
100
102
  end
@@ -8,5 +8,6 @@ module DynamicImage
8
8
  class InvalidSignature < DynamicImage::Errors::Error; end
9
9
  class InvalidSizeOptions < DynamicImage::Errors::Error; end
10
10
  class InvalidTransformation < DynamicImage::Errors::Error; end
11
+ class ParameterMissing < DynamicImage::Errors::Error; end
11
12
  end
12
13
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module DynamicImage
4
- VERSION = "2.0.10".freeze
4
+ VERSION = "2.0.11".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2018-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.6.13
158
+ rubygems_version: 2.6.14
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Rails plugin that simplifies image uploading and processing