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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aede00e4f9c44275ad949e133edd5f90dd61f77a
4
- data.tar.gz: 8a4649fca749bee467eebbc9191b40338c72e905
3
+ metadata.gz: ad74439c67a176c73c4d73570feaedf219af534f
4
+ data.tar.gz: 0b41c424676a1d70a3d1b618921e9aabb40218f0
5
5
  SHA512:
6
- metadata.gz: eb3d2b530ff15ae669724d57410e94876bfe0edf480893cef294bbec59d8fe5a7c6ff76bacc8534dc0dd4d9a11e1fb1a6c377f8de88dbfb779ec443bcc1393b2
7
- data.tar.gz: 9e971b4a2372c4d4abc3c6e9bc1c202b1a42a66bfaac7bb31f011bdf18695c8c25ecce574ad5344320219f3e757118ae2da663b1244cc46ac11c9281d6b8e66c
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(:integer_like, :read_density)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "spider_monkey"
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden