Change default implode to 0.3, version 0.4.3

This commit is contained in:
Jason Lee 2016-05-20 17:33:28 +08:00
parent b46a4ad0b4
commit d42bf4c8e2
6 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,7 @@
- Remove deprecated `width`, `height` config.
- Delete session key after verify (#23).
- Lighter text color, improve style.
0.4.2
-----

View File

@ -1,7 +1,7 @@
PATH
remote: .
specs:
rucaptcha (0.4.2)
rucaptcha (0.4.3)
posix-spawn (>= 0.3.0)
GEM

View File

@ -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

View File

@ -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 \

View File

@ -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

View File

@ -1,3 +1,3 @@
module RuCaptcha
VERSION = '0.4.2'
VERSION = '0.4.3'
end