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 +4 -4
- data/lib/dynamic_image/controller.rb +2 -0
- data/lib/dynamic_image/errors.rb +1 -0
- data/lib/dynamic_image/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35a434bf3ccd34a01d237f101581ceeeed54c5cc
|
4
|
+
data.tar.gz: c8f721c53f80dd93cf43500da0f2b732676bc590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/dynamic_image/errors.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
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
|