spider_monkey 0.0.4 → 0.0.5

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: ca54d3b1d9e3ae2d36c0baff41cec4bf784e8d76
4
- data.tar.gz: 6e72c92b2332feadc22301c34d8979085ecab0d2
3
+ metadata.gz: aede00e4f9c44275ad949e133edd5f90dd61f77a
4
+ data.tar.gz: 8a4649fca749bee467eebbc9191b40338c72e905
5
5
  SHA512:
6
- metadata.gz: 39f64bccf3aa5bb8e57f471a9dc4a2558b5dfeb17ed2b3fe4a75422060f069c0a62e9e8ec2e1d708b8db01a7840283947c1c5745581f0870cc2db425bf6579c6
7
- data.tar.gz: 28ba8f0600e665273eada889d9e6b509c809e77ae50cdbb782703ba81094e0ab1fef9b847404df3cc6bdd7b75eb5dcea6feecf5e760e73da000bfed1a83926e6
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "spider_monkey"
3
- s.version = "0.0.4"
3
+ s.version = "0.0.5"
4
4
  s.platform = Gem::Platform::RUBY
5
5
 
6
6
  s.authors = ["Ben McFadden"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spider_monkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden