rucaptcha 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +6 -4
- data/lib/rucaptcha/version.rb +1 -1
- data/lib/rucaptcha/view_helpers.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15f0630f65c56c2c3917cc9f7d4f5f66c77a5432
|
4
|
+
data.tar.gz: 3b09aeb3dc733ccff720442f19b4223d6920235f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fd6b818c4338a7096f5b5e8db2ad84fa2d54a3ad8739fe363cb230078a1d18a89383a0ea6a5f8e7f00d33c869e981fb5dbfb434a6be5ade19796a12b462aa5
|
7
|
+
data.tar.gz: f64425173ea27360a4c6acb2e0b2f6b023bab568cf45474cc5966368d703af1202ec842ef0f3b50abded6f6b2e2b7842a4b7e1ab0dad7242ad8d184abd0822f7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -32,14 +32,16 @@ Create `config/initializers/rucaptcha.rb`
|
|
32
32
|
```rb
|
33
33
|
RuCaptcha.configure do
|
34
34
|
# Color style, default: :colorful, allows: [:colorful, :black_white]
|
35
|
-
|
35
|
+
# self.style = :colorful
|
36
36
|
# Custom captcha code expire time if you need, default: 2 minutes
|
37
37
|
# self.expires_in = 120
|
38
|
-
|
38
|
+
# [Requirement/重要]
|
39
39
|
# Store Captcha code where, this config more like Rails config.cache_store
|
40
|
-
# default: Rails
|
40
|
+
# default: Read config info from `Rails.application.config.cache_store`
|
41
41
|
# But RuCaptcha requirements cache_store not in [:null_store, :memory_store, :file_store]
|
42
|
-
|
42
|
+
# 默认:会从 Rails 配置的 cache_store 里面读取相同的配置信息,用于存储验证码字符
|
43
|
+
# 但如果是 [:null_store, :memory_store, :file_store] 之类的,你可以通过下面的配置项单独给 RuCaptcha 配置 cache_store
|
44
|
+
self.cache_store = :mem_cache_store
|
43
45
|
end
|
44
46
|
```
|
45
47
|
|
data/lib/rucaptcha/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rucaptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -87,6 +87,6 @@ rubyforge_project:
|
|
87
87
|
rubygems_version: 2.5.2
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
|
-
summary: This is a Captcha gem for Rails
|
91
|
-
|
90
|
+
summary: This is a Captcha gem for Rails Applications. It drawing captcha image with
|
91
|
+
C code so it no dependencies.
|
92
92
|
test_files: []
|