lib/simple_captcha.rb in simple_captcha2-0.3.2 vs lib/simple_captcha.rb in simple_captcha2-0.3.3
- old
+ new
@@ -45,16 +45,24 @@
# 'low', 'medium', 'high', 'random'
mattr_accessor :distortion
@@distortion = 'low'
+ # 'none', 'low', 'medium', 'high'
+ mattr_accessor :implode
+ @@implode = SimpleCaptcha::ImageHelpers::DEFAULT_IMPLODE
+
# command path
mattr_accessor :image_magick_path
@@image_magick_path = ''
# tmp directory
mattr_accessor :tmp_path
@@tmp_path = nil
+
+ # additive noise
+ mattr_accessor :noise
+ @@noise = 0
def self.add_image_style(name, params = [])
SimpleCaptcha::ImageHelpers.image_styles.update(name.to_s => params)
end