rucaptcha 2.5.0 → 2.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a58f20f1ef6086b65e9757fe604e55139a56f44176e4ea46894b8710665d9b5
4
- data.tar.gz: 9442b66aa703b5d1837cb573188f77bd24f15b175be88fc6d6bc8409134de186
3
+ metadata.gz: 1227ac3cddd33c720c502742d2b51f84848095a6900122f514a68f3232180b00
4
+ data.tar.gz: '060499d4233c5582694dbed3777abc379d125bf504146eb76017cba72e0653df'
5
5
  SHA512:
6
- metadata.gz: '0830fbcb86e8a03ab8eda20bcb1256daf86a4c6c57627c56899b7f17c7e8eb7144d2ac434e2e2b6301e7b9767445fe1a9611a752bd3836039b454fbabe9d81c8'
7
- data.tar.gz: f9e747a5adfc9388cb6c45d23088c6f374e45a0fd5d621d1b0dc0f35c3fb08469dc641ceb120a9068cb2aee7a738e22e18d81b61861c196d22f1e80a374d488b
6
+ metadata.gz: 342336cf360865fb339db4d66711c63e6f23a95c653e45959e24dd19958f2136f556f4b192084c6899d89fac5af671eb644cbf85ad05b86b501ab0be50817d2e
7
+ data.tar.gz: f376f57f2cc3fb062dcc41ca608c0d03963447e88ff5edd011c9b0678d82f0cd2554459c284d2611b0e9156fc850a5a85c57d49aae2f35a7730638879c7ac4e9
@@ -1,3 +1,8 @@
1
+ 2.5.1
2
+ -------
3
+
4
+ - Fix invalid module name error. (#78)
5
+
1
6
  2.5.0
2
7
  -------
3
8
 
data/README.md CHANGED
@@ -5,6 +5,9 @@
5
5
 
6
6
  This is a Captcha gem for Rails Applications which generates captcha image by C code.
7
7
 
8
+ > NOTE: According to the use of Ruby China, the verification code looks like has a lower than 5% probability of being parsed by OCR and the verification code is cracked. It is recommended that you use the IP rate limit to enhance the protection.
9
+ > NOTE: 以 Ruby China 的使用来看,验证码似乎有低于 5% 的概率被 OCR 读取解析导致验证码被破解(我们从日志分析绝大多数是成功的,但偶尔一个成功,配合大量机器攻击,导致注册了很多的垃圾账号),建议你额外配合 IP 频率限制的功能来加强保护。
10
+
8
11
  [中文介绍和使用说明](https://ruby-china.org/topics/27832)
9
12
 
10
13
  ## Example
@@ -47,7 +50,7 @@ RuCaptcha.configure do
47
50
  # self.length = 5
48
51
  # enable/disable Strikethrough.
49
52
  # self.strikethrough = true
50
- # enable/disable Outline style, for hard mode
53
+ # enable/disable Outline style
51
54
  # self.outline = false
52
55
  end
53
56
  ```
@@ -1,3 +1,3 @@
1
1
  en:
2
2
  rucaptcha:
3
- invalid: "Captcha invalid!"
3
+ invalid: "The captcha code is incorrect (if you can't read, you can click image to refresh it)"
@@ -1,3 +1,3 @@
1
1
  'zh-CN':
2
2
  rucaptcha:
3
- invalid: "验证码不正确"
3
+ invalid: "验证码不正确(如无法识别,可以点击刷新验证码)"
@@ -1,3 +1,3 @@
1
1
  'zh-TW':
2
2
  rucaptcha:
3
- invalid: "驗證碼不正確"
3
+ invalid: "驗證碼不正確(如無法識別,可以點擊刷新驗證碼)"
@@ -40,7 +40,7 @@ module RuCaptcha
40
40
  length = config.length
41
41
 
42
42
  unless length.in?(3..7)
43
- raise Rucaptcha::Errors::Configuration, 'length config error, value must in 3..7'
43
+ raise RuCaptcha::Errors::Configuration, 'length config error, value must in 3..7'
44
44
  end
45
45
 
46
46
  strikethrough = config.strikethrough ? 1 : 0
@@ -1,4 +1,4 @@
1
- module Rucaptcha
1
+ module RuCaptcha
2
2
  module Errors
3
3
  class Configuration < StandardError; end
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '2.5.0'
2
+ VERSION = '2.5.1'
3
3
  end
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.5.0
4
+ version: 2.5.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: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.0.1
87
+ rubygems_version: 3.0.3
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: This is a Captcha gem for Rails Applications. It drawing captcha image with