- Add option
config.length
for support change number chars. (#57) - Add option
config.strikethrough
for enable or disable strikethrough. (#57)
- Windows support fixed with
send_data
method. (#45)
- Do not change captcha when
HEAD /rucaptcha
.
- Mount engine use
prepend
method to get high priority in config/routes.rb.
-
Mount Router by default, not need config now.
IMPORTANT: Wen you upgrade this version, you need remove
mount RuCaptcha::Engine
line from yourconfig/routes.rb
-
Default use [:file_store, 'tmp/cache/rucaptcha/session'] as RuCaptcha.config.cache_store, now it can work without any configurations.
NOTE: But you still need care about
config.cache_store
to setup on a right way.
- Use
ActiveSupport.on_load
to extend ActionController and ActionView.
- Fix
/rucaptcha
path issue whenconfig.action_controller.asset_host
has setup with CDN url.
Break Changes!
WARNING!: This version have so many break changes!
- Use C ext instead of ImageMagick, now it's no dependencies!
- New captcha style.
- Remove
len
,font_size
,cache_limit
config key, no support now. - Output
GIF
format.
- Add an
:keep_session
option forverify_rucaptcha?
method to giva a way for let you keep session on verify, if true, RuCaptcha will not delete the captcha code session after validation.
- Fix #35 just give a warning message if not setup a right cache_store, only raise on :null_store.
- Fix #34 rucaptcha.root_url -> root_path, to avoid generate a http url in a https application.
- Fix spec to require Ruby 2.0.0, because there have a
Module#prepend
method called.
- Remove inspect log on verify_rucaptcha
- Add
cache_store
config key to setup a cache store location for RuCaptcha. - Store captcha in custom cache store.
- Fix Session replay secure issue that when Rails application use CookieStore.
- Adjust to avoid lighter colors.
- Avoid continuous chars have same color.
- Use same color for each chars in :black_white mode.
- Make sure it will render image when ImageMagick stderr have warning messages. (#26)
- Fix cache with Rails 5.
- Removed
posix-spawn
dependency, used open3 instead (core funciontality), JRuby compatible (#24)
- Remove deprecated
width
,height
config. - Delete session key after verify (#23).
- Lighter text color, improve style.
- Fix NoMethodError bug when params[:_rucaptha] is nil.
- Add error message to resource when captcha code expired.
- Add
config.colorize
option, to allow use black text theme.
- Add
config.expires_in
to allow change captcha code expire time.
- Add Windows development env support.
- Make better render positions;
- Trim blank space.
- More complex Image render: compact text, strong lines, +/-5 rotate...
- [DEPRECATION] config.width, config.height removed, use config.font_size.
- Fix the render position in difference font sizes.
- Fix input field type, and disable autocorrect, autocapitalize, and limit maxlength with char length;
- Add
session[:_rucaptcha]
expire time, for protect Rails CookieSession Replay Attack. - Captcha input field disable autocomplete, and set field type as
email
for shown correct keyboard on mobile view.
- It will raise error when call ImageMagick failed.
- Added locale for pt-BR language; @ramirovjr
- Fix issue when cache dir not exist.
- Added file cache, can setup how many images you want generate by
config.cache_limit
, RuCaptcha will use cache for next requests. When you restart Rails processes it will generate new again and clean the old caches.
- Fix
verify_rucaptcha?
logic in somecase. - Locales fixed.
zh-TW
translate file fixed.- Use xxx_url to fix bad captcha URL for
config.action_controller.asset_host
enabled case.
- No case sensitive;
- Export config.implode;
- Improve image color and style;
- Don't generate chars in 'l,o,0,1'.
- Render lower case chars on image.
- Include default validation I18n messages (en, zh-CN, zh-TW).
- First release.