Commit Graph

23 Commits

Author SHA1 Message Date
Wayne 66dbac9639 Add skip_cache_store_check configuration 2018-12-22 14:43:42 +08:00
Jason Lee 682aa39ec0 Add for use outline style, and reduce colors down to 5 (red, blue, green, yellow and black). 2018-09-06 19:33:18 +08:00
Jason Lee 0561e88a22 config.line -> config.strikethrough and release version 2.2.0 2017-12-07 17:04:25 +08:00
Rina 3939d1bb02 Allow change chars length and disable strikethrough (#57) 2017-12-07 16:49:42 +08:00
万昭祎 2317eb2bda Update warning message (#50) 2017-06-08 09:36:23 +08:00
Jason Lee bb5b4efb8a - Mount Router by default, not need config now.
- Default use [:file_store, 'tmp/cache/rucaptcha/session'] as RuCaptcha.config.cache_store, now it can work without any configurations.
- Improve README doc.
2017-03-08 11:54:36 +08:00
Jason Lee d15e876ae8 Fix typo, and add test for ActionView 2017-02-15 12:31:25 +08:00
Jason Lee 46ddd15905 Use `ActiveSupport.on_load` to extend ActionController and ActionView.
http://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html
92703a9ea5/actionpack/lib/action_controller/base.rb (L264)
7da8d76206/actionview/lib/action_view/base.rb (L215)
2017-02-15 12:03:24 +08:00
Jason Lee 3b8d33f97a require_relative -> require 2017-02-09 17:40:39 +08:00
Jason Lee 93ac160201 Use C extension to remove ImageMagick dependency (#40) 2017-01-22 10:16:57 +08:00
Jason Lee 58ab0adb75 Fix test case 2016-10-29 11:06:10 +08:00
Jason Lee d0d6718e15 Add config.cache_store config.
Store captcha code in Backend cache.
Not requirement Session store now.
2016-10-29 10:48:05 +08:00
Jason Lee bfc24bc56b Fix cache with Rails 5. 2016-05-25 11:07:26 +08:00
Jason Lee d42bf4c8e2 Change default implode to 0.3, version 0.4.3 2016-05-20 17:33:28 +08:00
Jason Lee b46a4ad0b4 Lighter Text color.
Remove OCR test.
2016-05-20 17:19:27 +08:00
Jason Lee 0a7fa3782b Feature option to change color theme
* Add `config.style` option, to allow use change render style.
2016-04-06 15:50:30 +08:00
tiroc 77ed68d112 Added session[:_rucaptcha] expire time to configuration. 2016-03-14 16:41:27 +08:00
Jason Lee 2760a064b5 Fix default style, version 0.3.1 2015-11-05 18:27:42 +08:00
Jason Lee bcdac25b17 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.
Version 0.3.0
2015-11-05 18:20:41 +08:00
Jason Lee c46f88e84f Added file cache, can setup how many images you want generate by ,
RuCaptcha will use cache for next requests.
  When you restart Rails processes it will generate new again and clean the old caches.
2015-10-30 11:32:02 +08:00
Jason Lee 4ec52d887b Add some test case 2015-10-26 21:55:46 +08:00
Jason Lee 3be8125c40 Update Image style and colors, and fix Captcha class missing bug.
- 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.
2015-10-26 17:40:59 +08:00
Jason Lee 981308e839 First commit. 2015-10-26 14:09:39 +08:00