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. - Remove deprecated `width`, `height` config.
- Delete session key after verify (#23). - Delete session key after verify (#23).
- Lighter text color, improve style.
0.4.2 0.4.2
----- -----

View File

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

View File

@ -16,7 +16,7 @@ module RuCaptcha
@config = Configuration.new @config = Configuration.new
@config.len = 4 @config.len = 4
@config.font_size = 45 @config.font_size = 45
@config.implode = 0.4 @config.implode = 0.3
@config.cache_limit = 100 @config.cache_limit = 100
@config.expires_in = 2.minutes @config.expires_in = 2.minutes
@config.style = :colorful @config.style = :colorful

View File

@ -61,7 +61,7 @@ module RuCaptcha
#{line_opts.join(' ')} \ #{line_opts.join(' ')} \
-pointsize #{font_size} -weight 500 \ -pointsize #{font_size} -weight 500 \
#{text_opts.join(' ')} \ #{text_opts.join(' ')} \
-wave #{rand(2) + 1}x#{rand(2) + 1} \ -wave #{rand(2) + 3}x#{rand(2) + 1} \
-rotate #{rand(10) - 5} \ -rotate #{rand(10) - 5} \
-gravity NorthWest -sketch 1x10+#{rand(2)} \ -gravity NorthWest -sketch 1x10+#{rand(2)} \
-fill none \ -fill none \

View File

@ -4,7 +4,7 @@ module RuCaptcha
attr_accessor :font_size attr_accessor :font_size
# Number of chars, default 4 # Number of chars, default 4
attr_accessor :len attr_accessor :len
# implode, default 0.4 # implode, default 0.3
attr_accessor :implode attr_accessor :implode
# Number of Captcha codes limit # Number of Captcha codes limit
# set 0 to disable limit and file cache, default: 100 # set 0 to disable limit and file cache, default: 100

View File

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