shrine 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of shrine might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0474d268473ec2255e7710efdc424ea7abcaa129
|
4
|
+
data.tar.gz: 75489de0c246f813fd48fd707e0f9e1355de7f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65de646144983c25c985aaca273c503bff2391c53f3267cae93d4d535ad398ffffb6833f6b3f6d12fb1e8d2fba04aa80c395389c351c808a36d51ea39fe797e9
|
7
|
+
data.tar.gz: d4ebe688c1f33850f0a91df74528b3761aa0e842f9d97aa4b64ab6d9b5bfd3d6f4b1c62f3a32b488b2f2e109cfe009b90c2cc6987c248f9420df77869284fec6
|
@@ -119,7 +119,7 @@ class Shrine
|
|
119
119
|
MAGIC_NUMBER = 256 * 1024
|
120
120
|
|
121
121
|
def initialize(tool)
|
122
|
-
raise ArgumentError, "unsupported mime type
|
122
|
+
raise ArgumentError, "unsupported mime type analysis tool: #{tool}" unless SUPPORTED_TOOLS.include?(tool)
|
123
123
|
|
124
124
|
@tool = tool
|
125
125
|
end
|
@@ -113,7 +113,7 @@ class Shrine
|
|
113
113
|
SUPPORTED_TOOLS = [:fastimage]
|
114
114
|
|
115
115
|
def initialize(tool)
|
116
|
-
raise ArgumentError, "unsupported
|
116
|
+
raise ArgumentError, "unsupported dimensions analysis tool: #{tool}" unless SUPPORTED_TOOLS.include?(tool)
|
117
117
|
|
118
118
|
@tool = tool
|
119
119
|
end
|
data/lib/shrine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shrine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: down
|