diff --git a/README.md b/README.md index d221a24..b68ccd8 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Create `config/initializers/rucaptcha.rb` RuCaptcha.configure do # Custom captcha code expire time if you need, default: 2 minutes # self.expires_in = 120 +  # [Requirement / 重要] # Store Captcha code where, this config more like Rails config.cache_store # default: Read config info from `Rails.application.config.cache_store` @@ -44,10 +45,22 @@ RuCaptcha.configure do  # 默认:会从 Rails 配置的 cache_store 里面读取相同的配置信息,并尝试用可以运行的方式,用于存储验证码字符  # 但如果是 [:null_store, :memory_store, :file_store] 之类的,你可以通过下面的配置项单独给 RuCaptcha 配置 cache_store  self.cache_store = :mem_cache_store + + # If you wants disable `cache_store` check warning, you can do it, default: false # 如果想要 disable cache_store 的 warning,就设置为 true,default false # self.skip_cache_store_check = true + # Chars length, default: 5, allows: [3 - 7] # self.length = 5 + + # Enable or disable Strikethrough, default: true + # self.line = true + + # Enable or disable noise, default: false + # self.noise = false + + # Set the image format, default: png, allows: [jpeg, png, webp] + # self.format = 'png' end ``` diff --git a/lib/rucaptcha/version.rb b/lib/rucaptcha/version.rb index ab019f5..47b3a2b 100644 --- a/lib/rucaptcha/version.rb +++ b/lib/rucaptcha/version.rb @@ -1,3 +1,3 @@ module RuCaptcha - VERSION = "3.1.4" + VERSION = "3.2.0" end