Skip to content

Commit

Permalink
version 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Jun 9, 2023
1 parent 1af2d54 commit 3aeb228
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,30 @@ 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`
# But RuCaptcha requirements cache_store not in [:null_store, :memory_store, :file_store]
 # 默认:会从 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
```

Expand Down
2 changes: 1 addition & 1 deletion lib/rucaptcha/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RuCaptcha
VERSION = "3.1.4"
VERSION = "3.2.0"
end

0 comments on commit 3aeb228

Please sign in to comment.