spider_monkey 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spider_monkey/validator.rb +5 -1
- data/spider_monkey.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad74439c67a176c73c4d73570feaedf219af534f
|
4
|
+
data.tar.gz: 0b41c424676a1d70a3d1b618921e9aabb40218f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa70096e9b457f22f44fe4a5e502e877e1111028a97211b10d515f7208601cb76f79693aa2d96b859e035f18e592459377f43f1217cbcae7827f587c8a81c1ae
|
7
|
+
data.tar.gz: 591c6ea4e4c38c33a40f73882f6b56047dc860bb79dfd4785cc426e0a3f0cfb027b6b23ccebf28b2ca01b1591c0705fabf35d0fecace5c68b3d252d5038e8d8f
|
@@ -42,7 +42,7 @@ module SpiderMonkey
|
|
42
42
|
validate_option(:integer_like, :width, true)
|
43
43
|
validate_option(:integer_like, :height, true)
|
44
44
|
validate_option(:colorspace, :read_colorspace)
|
45
|
-
validate_option(:
|
45
|
+
validate_option(:integer_like_or_auto, :read_density)
|
46
46
|
validate_option(:integer_like, :quality)
|
47
47
|
validate_option(:resize_method, :resize_method)
|
48
48
|
validate_option(:gravity, :resize_gravity)
|
@@ -111,6 +111,10 @@ module SpiderMonkey
|
|
111
111
|
is_integer?(input) || /\A[-+]?\d+\z/ === input
|
112
112
|
end
|
113
113
|
|
114
|
+
def is_integer_like_or_auto?(input)
|
115
|
+
input == "auto" || input == :auto || is_integer_like?(input)
|
116
|
+
end
|
117
|
+
|
114
118
|
def is_integer?(input)
|
115
119
|
input.kind_of? Integer
|
116
120
|
end
|
data/spider_monkey.gemspec
CHANGED