Change default implode to 0.3, version 0.4.3
This commit is contained in:
parent
b46a4ad0b4
commit
d42bf4c8e2
|
@ -2,6 +2,7 @@
|
|||
|
||||
- Remove deprecated `width`, `height` config.
|
||||
- Delete session key after verify (#23).
|
||||
- Lighter text color, improve style.
|
||||
|
||||
0.4.2
|
||||
-----
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
rucaptcha (0.4.2)
|
||||
rucaptcha (0.4.3)
|
||||
posix-spawn (>= 0.3.0)
|
||||
|
||||
GEM
|
||||
|
|
|
@ -16,7 +16,7 @@ module RuCaptcha
|
|||
@config = Configuration.new
|
||||
@config.len = 4
|
||||
@config.font_size = 45
|
||||
@config.implode = 0.4
|
||||
@config.implode = 0.3
|
||||
@config.cache_limit = 100
|
||||
@config.expires_in = 2.minutes
|
||||
@config.style = :colorful
|
||||
|
|
|
@ -61,7 +61,7 @@ module RuCaptcha
|
|||
#{line_opts.join(' ')} \
|
||||
-pointsize #{font_size} -weight 500 \
|
||||
#{text_opts.join(' ')} \
|
||||
-wave #{rand(2) + 1}x#{rand(2) + 1} \
|
||||
-wave #{rand(2) + 3}x#{rand(2) + 1} \
|
||||
-rotate #{rand(10) - 5} \
|
||||
-gravity NorthWest -sketch 1x10+#{rand(2)} \
|
||||
-fill none \
|
||||
|
|
|
@ -4,7 +4,7 @@ module RuCaptcha
|
|||
attr_accessor :font_size
|
||||
# Number of chars, default 4
|
||||
attr_accessor :len
|
||||
# implode, default 0.4
|
||||
# implode, default 0.3
|
||||
attr_accessor :implode
|
||||
# Number of Captcha codes limit
|
||||
# set 0 to disable limit and file cache, default: 100
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module RuCaptcha
|
||||
VERSION = '0.4.2'
|
||||
VERSION = '0.4.3'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue