spider_monkey 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spider_monkey/validator.rb +10 -4
- 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: aede00e4f9c44275ad949e133edd5f90dd61f77a
|
4
|
+
data.tar.gz: 8a4649fca749bee467eebbc9191b40338c72e905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb3d2b530ff15ae669724d57410e94876bfe0edf480893cef294bbec59d8fe5a7c6ff76bacc8534dc0dd4d9a11e1fb1a6c377f8de88dbfb779ec443bcc1393b2
|
7
|
+
data.tar.gz: 9e971b4a2372c4d4abc3c6e9bc1c202b1a42a66bfaac7bb31f011bdf18695c8c25ecce574ad5344320219f3e757118ae2da663b1244cc46ac11c9281d6b8e66c
|
@@ -38,18 +38,22 @@ module SpiderMonkey
|
|
38
38
|
@options.delete(:source_bucket)
|
39
39
|
|
40
40
|
|
41
|
+
validate_option(:string, :key, true) # This is the user API key, not the source key. Probably should rename this.
|
42
|
+
validate_option(:integer_like, :width, true)
|
43
|
+
validate_option(:integer_like, :height, true)
|
41
44
|
validate_option(:colorspace, :read_colorspace)
|
42
45
|
validate_option(:integer_like, :read_density)
|
43
46
|
validate_option(:integer_like, :quality)
|
44
|
-
validate_option(:integer_like, :width, true)
|
45
|
-
validate_option(:integer_like, :height, true)
|
46
47
|
validate_option(:resize_method, :resize_method)
|
47
48
|
validate_option(:gravity, :resize_gravity)
|
48
49
|
validate_option(:boolean, :thumbnail)
|
49
50
|
validate_option(:integer_like, :density)
|
50
|
-
validate_option(:string, :key, true)
|
51
51
|
validate_option(:colorspace, :colorspace)
|
52
52
|
validate_option(:color, :background_color)
|
53
|
+
validate_option(:string, :template)
|
54
|
+
|
55
|
+
# Merge Variables
|
56
|
+
@valid_options[:template_merge_variables] = @options[:template_merge_variables] if @options[:template_merge_variables]
|
53
57
|
|
54
58
|
#:annotate,
|
55
59
|
@valid_options[:annotate] = @options[:annotate] if @options[:annotate]
|
@@ -257,7 +261,9 @@ module SpiderMonkey
|
|
257
261
|
:colorspace,
|
258
262
|
:annotate,
|
259
263
|
:composite,
|
260
|
-
:background_color
|
264
|
+
:background_color,
|
265
|
+
:template,
|
266
|
+
:template_merge_variables
|
261
267
|
].include?(symbol)
|
262
268
|
end
|
263
269
|
|
data/spider_monkey.gemspec
CHANGED