rucaptcha 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +26 -2
- data/config/locales/rucaptcha.zh-TW.yml +1 -1
- data/lib/rucaptcha/version.rb +1 -2
- data/lib/rucaptcha/view_helpers.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 712ce2bac91dc2b4f87fceb7bfd7a5766e585b20
|
4
|
+
data.tar.gz: 00e1a973557977e5fc5cbf419d1c94e4acedf62c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75432af6e4122fe48247859a54223884ae772f98b178892d31b9c3653ad6ef7873a266c92864a50022de4dbfea8c5c164cbb8c8885ee03090b5a35d0764fc911
|
7
|
+
data.tar.gz: c0766f05b40f9718a7b27d8e01d4185ee7e5f267278a1cff9838beeb7e76047d2b4dbb672bc2068fda5d44416e8d3ee0635cd500a3f18200d6529b66be861684
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,24 @@
|
|
1
1
|
# RuCaptcha
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/rucaptcha)
|
3
4
|
|
4
|
-
This is a Captcha gem for Rails
|
5
|
+
This is a Captcha gem for Rails Applications. It runs an ImageMagick command to draw Captcha image - so it has NO performance issues or memory leak issues.
|
5
6
|
|
6
|
-
|
7
|
+
**There is NO: RMagick**
|
7
8
|
|
8
9
|
Idea by: https://ruby-china.org/topics/20558#reply4
|
9
10
|
|
11
|
+
[中文介绍和使用说明](https://ruby-china.org/topics/27832)
|
12
|
+
|
10
13
|
### Requirements
|
11
14
|
|
12
15
|
- ImageMagick
|
13
16
|
|
17
|
+
### Example
|
18
|
+
|
19
|
+
 
|
20
|
+
|
21
|
+
|
14
22
|
### Usage
|
15
23
|
|
16
24
|
Put rucaptcha in your `Gemfile`:
|
@@ -60,3 +68,19 @@ View `app/views/account/new.html.erb`
|
|
60
68
|
</form>
|
61
69
|
```
|
62
70
|
|
71
|
+
## Test skip captcha validation
|
72
|
+
|
73
|
+
```rb
|
74
|
+
describe 'sign up and login', type: :feature do
|
75
|
+
before do
|
76
|
+
allow_any_instance_of(ActionController::Base).to receive(:verify_rucaptcha?).and_return(true)
|
77
|
+
end
|
78
|
+
|
79
|
+
it { ... }
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
## TODO
|
84
|
+
|
85
|
+
- Use [rtesseract](https://github.com/dannnylo/rtesseract) to test OCR.
|
86
|
+
|
data/lib/rucaptcha/version.rb
CHANGED